Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DriverName is the unrestricted sqlite3 driver used for the management catalog. DriverName = "sqlite3" // RestrictedDriverName denies ATTACH/DETACH and unsafe PRAGMAs for tenant databases. RestrictedDriverName = "sqlite3_restricted" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
Pool manages SQLite database connections
type PoolConfig ¶
type PoolConfig struct {
MaxOpenConns int
MaxIdleConns int
MaxLifetime time.Duration
BusyTimeout time.Duration
WALMode bool
// Restricted enables the ATTACH/DETACH/PRAGMA authorizer. Tenant DBs should use this.
Restricted bool
}
PoolConfig holds configuration for the SQLite connection pool
func DefaultPoolConfig ¶
func DefaultPoolConfig() PoolConfig
DefaultPoolConfig returns sensible defaults
Click to show internal directories.
Click to hide internal directories.