Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultMinWALCheckpointSize = 1 * (1 << 20) // 1MB DefaultMaxWALCheckpointSize = DefaultMaxWALSize / 2 )
View Source
const DefaultMaxSize = 4 * (1 << 30)
DefaultMaxSize is the default mmap size and therefore the maximum allowed size of the database. The size can be increased by updating the DB.MaxSize and reopening the database. This setting mainly affects virtual space usage.
View Source
const DefaultMaxWALSize = 4 * (1 << 30)
DefaultMaxWALSize is the default mmap size and therefore the maximum allowed size of the WAL. The size can be increased by updating the DB.MaxWALSize and reopening the database. This setting mainly affects virtual space usage.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // The maximum allowed database size. Required by mmap. MaxSize int64 // The maximum allowed WAL size. Required by mmap. MaxWALSize int64 // The minimum WAL size before the WAL is copied to the DB. MinWALCheckpointSize int64 // The maximum WAL size before transactions are halted to allow a checkpoint. MaxWALCheckpointSize int64 // Set before calling db.Open() FsyncEnabled bool // for mmap correctness testing. DoAllocZero bool // CursorCacheSize is the number of copies of Cursor{} to keep in our // readyCursorCh arena to avoid GC pressure. CursorCacheSize int64 }
Config defines externally configurable rbf options. The separate package avoids circular import.
func NewDefaultConfig ¶
func NewDefaultConfig() *Config
func (*Config) DefineFlags ¶
Click to show internal directories.
Click to hide internal directories.