MCPcopy
hub / github.com/pocketbase/pocketbase / DB

Method DB

core/app.go:157–157  ·  view source on GitHub ↗

--------------------------------------------------------------- DB methods --------------------------------------------------------------- DB returns the default app data.db builder instance. To minimize SQLITE_BUSY errors, it automatically routes the SELECT queries to the underlying concurrent db

()

Source from the content-addressed store, hash-verified

155 // For more finer control over the used connections pools you can
156 // call directly ConcurrentDB() or NonconcurrentDB().
157 DB() dbx.Builder
158
159 // ConcurrentDB returns the concurrent app data.db builder instance.
160 //

Callers 15

TestReloadSettingsFunction · 0.65
isMigrationAppliedFunction · 0.65
initDataDBMethod · 0.65
initAuxDBMethod · 0.65
SyncRecordTableSchemaMethod · 0.65
dropCollectionIndexesFunction · 0.65
createCollectionIndexesFunction · 0.65
CreateBackupMethod · 0.65

Calls

no outgoing calls

Tested by 12

TestReloadSettingsFunction · 0.52
isMigrationAppliedFunction · 0.52
TestBaseAppDBDualBuilderFunction · 0.52
getTotalViewsFunction · 0.52
ensureNoTempViewsFunction · 0.52
TestUniqueIdFunction · 0.52
TestSQLRunFunction · 0.52
TestBindDbxFunction · 0.52