MCPcopy
hub / github.com/sourcegraph/checkup / initialize

Method initialize

storage/sql/sql.go:195–204  ·  view source on GitHub ↗

initialize creates the "checks" table in the database.

()

Source from the content-addressed store, hash-verified

193
194// initialize creates the "checks" table in the database.
195func (sql Storage) initialize() error {
196 db, err := sql.dbConnect()
197 if err != nil {
198 return err
199 }
200 defer db.Close()
201
202 _, err = db.Exec(schema)
203 return err
204}

Callers 2

TestSQLFunction · 0.95
s3.jsFile · 0.80

Implementers 5

fakecheckup_test.go
Storagestorage/sql/sql.go
Storagestorage/s3/s3.go
Storagestorage/github/github.go
Storagestorage/fs/fs.go

Calls 1

dbConnectMethod · 0.95

Tested by 1

TestSQLFunction · 0.76