mirror of
https://github.com/neilotoole/sq.git
synced 2024-12-25 09:16:59 +03:00
CHANGELOG clarifications
This commit is contained in:
parent
4d46bcebaa
commit
781e7ea235
@ -11,10 +11,10 @@ Breaking changes are annotated with ☢️, and alpha/beta features with 🐥.
|
|||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
- [#270]: Flag `--src.schema` permits switching the source's schema (and catalog)
|
- [#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. It is supported for the
|
for the duration of the command. The flag is supported for the
|
||||||
[`sq`](https://sq.io/docs/cmd/sq), [`sql`](https://sq.io/docs/cmd/sql)
|
[`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/cmd/sq) commands.
|
and [`inspect`](https://sq.io/docs/inspect#override-active-schema) commands.
|
||||||
- New SLQ functions [`catalog()`](https://sq.io/docs/query#catalog) and
|
- 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.
|
[`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`.
|
- The SLQ [`unique`](https://sq.io/docs/query#unique) function now has a synonym `uniq`.
|
||||||
|
@ -54,9 +54,9 @@ flag is set, sq attempts to determine the appropriate mode.`,
|
|||||||
addQueryCmdFlags(cmd)
|
addQueryCmdFlags(cmd)
|
||||||
|
|
||||||
// User explicitly wants to execute the SQL using sql.DB.Query
|
// 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
|
// 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
|
return cmd
|
||||||
}
|
}
|
||||||
|
BIN
drivers/sqlite3/testdata/sakila.db
vendored
BIN
drivers/sqlite3/testdata/sakila.db
vendored
Binary file not shown.
Loading…
Reference in New Issue
Block a user