Documentation
¶
Overview ¶
Package sqlitetune applies a consistent SQLite baseline to every physical connection opened through database/sql.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
PageSize int
ForeignKeys bool
BusyTimeout time.Duration
CacheSizeKB int
MMapSizeBytes int64
TempStoreMemory bool
CacheSpill bool
WALAutoCheckpoint int
JournalSizeLimitBytes int64
Synchronous SynchronousMode
}
Options configures the SQLite PRAGMAs applied to every physical connection. WAL mode is always enabled. Zero mmap size explicitly disables memory mapping; it is not treated as an unset value.
type SynchronousMode ¶
type SynchronousMode string
SynchronousMode selects SQLite's synchronous durability mode.
const ( // SynchronousNormal balances write throughput and durability in WAL mode. SynchronousNormal SynchronousMode = "NORMAL" // SynchronousOff favors throughput over durability. SynchronousOff SynchronousMode = "OFF" // SynchronousFull favors durability over write throughput. SynchronousFull SynchronousMode = "FULL" )
Click to show internal directories.
Click to hide internal directories.