MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / DBSQL

Method DBSQL

tools/mage/dev.go:247–253  ·  view source on GitHub ↗

DBSQL starts an SQL shell.

()

Source from the content-addressed store, hash-verified

245
246// DBSQL starts an SQL shell.
247func (Dev) DBSQL() error {
248 mg.Deps(Dev.DBStart)
249 if mg.Verbose() {
250 fmt.Println("Starting SQL shell")
251 }
252 return execDockerCompose("exec", "postgres", "psql", devDatabaseName)
253}
254
255// DBCreate creates the SQL databases used for unit tests.
256func (Dev) DBCreate() error {

Callers

nothing calls this directly

Calls 2

execDockerComposeFunction · 0.85
DepsMethod · 0.45

Tested by

no test coverage detected