()
| 75 | ) |
| 76 | |
| 77 | func init() { |
| 78 | CmdConsole.Run = runConsole |
| 79 | |
| 80 | addCommonFlags(CmdConsole) |
| 81 | addConfigFlag(CmdConsole) |
| 82 | CmdConsole.Flag.Var(&variables, "variable", "Set variable") |
| 83 | CmdConsole.Flag.StringVar(&outFile, "out", "", "Record stdout to file") |
| 84 | CmdConsole.Flag.BoolVar(&noRC, "no-rc", false, "Do not read start up file") |
| 85 | CmdConsole.Flag.BoolVar(&singleTransaction, "single-transaction", false, "Execute as a single transaction (if non-interactive)") |
| 86 | CmdConsole.Flag.StringVar(&command, "command", "", "Run only single command (SQL or usql internal command) and exit") |
| 87 | CmdConsole.Flag.StringVar(&adapterAddr, "adapter", "", "Address to serve a database chain adapter, e.g. :7784") |
| 88 | CmdConsole.Flag.StringVar(&explorerAddr, "explorer", "", "Address serve a database chain explorer, e.g. :8546") |
| 89 | } |
| 90 | |
| 91 | // SqTime provides a type that will correctly scan the various timestamps |
| 92 | // values stored by the github.com/mattn/go-sqlite3 driver for time.Time |
nothing calls this directly
no test coverage detected