diff --git a/CHANGELOG.md b/CHANGELOG.md index 228525b5..e654c371 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,10 +11,10 @@ Breaking changes are annotated with ☢️, and alpha/beta features with 🐥. ### Added -- [#270]: Flag `--src.schema` permits switching the source's schema (and catalog) - for the duration of the command. It is supported for the - [`sq`](https://sq.io/docs/cmd/sq), [`sql`](https://sq.io/docs/cmd/sql) - and [`inspect`](https://sq.io/docs/cmd/sq) commands. +- [#270]: Flag [`--src.schema`](https://sq.io/docs/cmd/sq/#override-active-schema) permits switching the source's schema (and catalog) + for the duration of the command. The flag is supported for the + [`sq`](https://sq.io/docs/cmd/sq#override-active-schema), [`sql`](https://sq.io/docs/cmd/sql/#active-source--schema) + and [`inspect`](https://sq.io/docs/inspect#override-active-schema) commands. - New SLQ functions [`catalog()`](https://sq.io/docs/query#catalog) and [`schema()`](https://sq.io/docs/query#schema) return the catalog and schema of the DB connection. - The SLQ [`unique`](https://sq.io/docs/query#unique) function now has a synonym `uniq`. diff --git a/cli/cmd_sql.go b/cli/cmd_sql.go index d6554804..77562be9 100644 --- a/cli/cmd_sql.go +++ b/cli/cmd_sql.go @@ -54,9 +54,9 @@ flag is set, sq attempts to determine the appropriate mode.`, addQueryCmdFlags(cmd) // User explicitly wants to execute the SQL using sql.DB.Query - cmd.Flags().Bool(flag.SQLQuery, false, flag.SQLQueryUsage) + //cmd.Flags().Bool(flag.SQLQuery, false, flag.SQLQueryUsage) // User explicitly wants to execute the SQL using sql.DB.Exec - cmd.Flags().Bool(flag.SQLExec, false, flag.SQLExecUsage) + //cmd.Flags().Bool(flag.SQLExec, false, flag.SQLExecUsage) return cmd } diff --git a/drivers/sqlite3/testdata/sakila.db b/drivers/sqlite3/testdata/sakila.db index 90be1f6f..0fdbacdc 100644 Binary files a/drivers/sqlite3/testdata/sakila.db and b/drivers/sqlite3/testdata/sakila.db differ