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

Method SQLStart

tools/mage/dev.go:89–97  ·  view source on GitHub ↗

SQLStart starts the SQL database of the development environment.

()

Source from the content-addressed store, hash-verified

87
88// SQLStart starts the SQL database of the development environment.
89func (Dev) SQLStart() error {
90 if mg.Verbose() {
91 fmt.Println("Starting SQL database")
92 }
93 if err := execDockerCompose(append([]string{"up", "-d"}, sqlDatabase)...); err != nil {
94 return err
95 }
96 return execDockerCompose("ps")
97}
98
99// SQLStop stops the SQL database of the development environment.
100func (Dev) SQLStop() error {

Callers

nothing calls this directly

Calls 1

execDockerComposeFunction · 0.85

Tested by

no test coverage detected