MCPcopy Create free account
hub / github.com/cloudbase/garm / sqlDatabase

Struct sqlDatabase

database/sql/sql.go:136–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136type sqlDatabase struct {
137 conn *gorm.DB
138 sqlDB *sql.DB
139
140 // objectsConn is a separate GORM connection to the objects database
141 objectsConn *gorm.DB
142 objectsSQLDB *sql.DB
143
144 ctx context.Context
145 cfg config.Database
146 producer common.Producer
147}
148
149// startSQLiteMaintenance runs periodic WAL checkpoint and VACUUM on both the
150// main database and the objects database (if present). This reclaims disk space

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected