MCPcopy Create free account
hub / github.com/CovenantSQL/CovenantSQL / init

Function init

cmd/cql/internal/console.go:77–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75)
76
77func 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

Callers

nothing calls this directly

Calls 2

addCommonFlagsFunction · 0.85
addConfigFlagFunction · 0.85

Tested by

no test coverage detected