MCPcopy
hub / github.com/mudler/LocalAI / openSQLiteDialector

Function openSQLiteDialector

core/http/auth/db_sqlite.go:13–15  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

11)
12
13func openSQLiteDialector(path string) (gorm.Dialector, error) {
14 return sqlite.Open(buildSQLiteDSN(path)), nil
15}
16
17// buildSQLiteDSN augments a SQLite file path with connection pragmas that make
18// the auth DB resilient on slow or contended storage.

Callers 1

InitDBFunction · 0.70

Calls 1

buildSQLiteDSNFunction · 0.85

Tested by

no test coverage detected