Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--indent with .schema doesnt work #179

Open
the-shank opened this issue May 29, 2024 · 0 comments
Open

--indent with .schema doesnt work #179

the-shank opened this issue May 29, 2024 · 0 comments

Comments

@the-shank
Copy link

Is there a way to get --indent option to work when printing the schema for a table?

In sqlite3 prompt:

sqlite> .schema runstats --indent
CREATE TABLE IF NOT EXISTS "runstats"(
  "id" INTEGER NOT NULL PRIMARY KEY,
  "run_id" INTEGER NOT NULL,
  "crate_id" INTEGER NOT NULL,
  "functions" INTEGER,
  "functions_converted" INTEGER CHECK(functions >= functions_converted),
  "instances" INTEGER,
  "instances_converted" INTEGER CHECK(instances >= instances_converted),
  "instance_types" INTEGER,
  "instance_types_converted" INTEGER CHECK(instance_types >= instance_types_converted),
  FOREIGN KEY("run_id") REFERENCES "run"("id"),
  FOREIGN KEY("crate_id") REFERENCES "crate"("id")
);
CREATE INDEX "runstats_run_id" ON "runstats"("run_id");
CREATE INDEX "runstats_crate_id" ON "runstats"("crate_id");

In litecli:

❯ litecli aunor.db
LiteCli: 1.11.0 (SQLite: 3.45.3)
GitHub: https://github.com/dbcli/litecli
aunor.db> .schema runstats --indent
Time: 0.000s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant