Documentation ¶
Index ¶
- Variables
- func IsCacheFull(e error) bool
- func IsDuplicateKey(e error) bool
- func IsNotFound(e error) bool
- func IsPanic(e error) bool
- func IsPrepareConflict(e error) bool
- func IsRollback(e error) bool
- func IsRunRecovery(e error) bool
- func Version() (version string, major int, minor int, patch int)
- type ByteType
- type Checkpoint
- type Compressor
- type Configuration
- func (c *Configuration) Options(opts ...driver.Option) map[string]struct{}
- func (c *Configuration) SetCacheOverhead(n int) driver.Option
- func (c *Configuration) SetCacheSize(n DiskSize) driver.Option
- func (c *Configuration) SetCheckpoint(cp Checkpoint) driver.Option
- func (c *Configuration) SetConfigBase(b bool) driver.Option
- func (c *Configuration) SetCreate(b bool) driver.Option
- func (c *Configuration) SetDebugMode(m DebugMode) driver.Option
- func (c *Configuration) SetEviction(e Eviction) driver.Option
- func (c *Configuration) SetExtensions(s string) driver.Option
- func (c *Configuration) SetFileManager(f FileManger) driver.Option
- func (c *Configuration) SetLog(l Log) driver.Option
- func (c *Configuration) SetSessionMax(n int) driver.Option
- func (c *Configuration) SetStatistics(s []StatisticsPolicy) driver.Option
- func (c *Configuration) SetStatisticsLog(l StatisticsLog) driver.Option
- func (c *Configuration) SetVerbose(s string) driver.Option
- func (c Configuration) String() string
- type DB
- func (db *DB) Close() error
- func (db *DB) CreateField(spec driver.FieldSpec) ([]byte, error)
- func (db *DB) CreateIndex(spec driver.IndexSpec) ([]byte, error)
- func (db *DB) DefaultFieldKey() []byte
- func (db *DB) DefaultIndexKey() []byte
- func (db *DB) Delete(key driver.Key) error
- func (db *DB) Get(key driver.Key) ([]byte, error)
- func (db *DB) GetSchemaSpec() (driver.SchemaSpec, error)
- func (db *DB) GetSnapshot() (driver.Snapshot, error)
- func (db *DB) Has(key driver.Key) (bool, error)
- func (db *DB) InitSchema() error
- func (db *DB) NewBatch() driver.Batching
- func (db *DB) Put(key driver.Key, value driver.Value) error
- func (db *DB) RenameIndex(oldName, newName string) (bool, error)
- func (db *DB) Search(query driver.Query) (c driver.Cursor)
- type DebugMode
- type DiskSize
- type Driver
- type Error
- type Eviction
- type FileManger
- type Log
- type StatisticsLog
- type StatisticsPolicy
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidArgument = NewError(C.EINVAL) ErrBusy = NewError(C.EBUSY) ErrError = NewError(C.WT_ERROR) ErrPanic = NewError(C.WT_PANIC) ErrRollback = NewError(C.WT_ROLLBACK) ErrDuplicateKey = NewError(C.WT_DUPLICATE_KEY) ErrNotFound = NewError(C.WT_NOTFOUND) ErrRunRecovery = NewError(C.WT_RUN_RECOVERY) ErrCacheFull = NewError(C.WT_CACHE_FULL) ErrPrepareConflict = NewError(C.WT_PREPARE_CONFLICT) )
View Source
var ErrCursorHasClosed = errors.New("cursor has closed")
View Source
var (
ErrSessionClosed = errors.New("session has closed")
)
View Source
var ErrSessionHasClosed = errors.New("session has closed")
View Source
var ErrSnapshotReleased = errors.New("wiredtiger: snapshot released")
View Source
var InvalidCursor = &errorCursor{}
Functions ¶
func IsCacheFull ¶
func IsDuplicateKey ¶
func IsNotFound ¶
func IsPrepareConflict ¶
func IsRollback ¶
func IsRunRecovery ¶
Types ¶
type Checkpoint ¶
type Compressor ¶
type Compressor string
const ( NoneCompressor Compressor = "none" LZ4Compressor Compressor = "lz4" SnappyCompressor Compressor = "snappy" ZLibCompressor Compressor = "zlib" ZstdCompressor Compressor = "zstd" )
type Configuration ¶
func (*Configuration) Options ¶
func (c *Configuration) Options(opts ...driver.Option) map[string]struct{}
func (*Configuration) SetCacheOverhead ¶
func (c *Configuration) SetCacheOverhead(n int) driver.Option
func (*Configuration) SetCacheSize ¶
func (c *Configuration) SetCacheSize(n DiskSize) driver.Option
func (*Configuration) SetCheckpoint ¶
func (c *Configuration) SetCheckpoint(cp Checkpoint) driver.Option
func (*Configuration) SetConfigBase ¶
func (c *Configuration) SetConfigBase(b bool) driver.Option
func (*Configuration) SetDebugMode ¶
func (c *Configuration) SetDebugMode(m DebugMode) driver.Option
func (*Configuration) SetEviction ¶
func (c *Configuration) SetEviction(e Eviction) driver.Option
func (*Configuration) SetExtensions ¶
func (c *Configuration) SetExtensions(s string) driver.Option
func (*Configuration) SetFileManager ¶
func (c *Configuration) SetFileManager(f FileManger) driver.Option
func (*Configuration) SetSessionMax ¶
func (c *Configuration) SetSessionMax(n int) driver.Option
func (*Configuration) SetStatistics ¶
func (c *Configuration) SetStatistics(s []StatisticsPolicy) driver.Option
func (*Configuration) SetStatisticsLog ¶
func (c *Configuration) SetStatisticsLog(l StatisticsLog) driver.Option
func (*Configuration) SetVerbose ¶
func (c *Configuration) SetVerbose(s string) driver.Option
func (Configuration) String ¶ added in v1.3.0
func (c Configuration) String() string
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) DefaultFieldKey ¶
func (*DB) DefaultIndexKey ¶
func (*DB) GetSchemaSpec ¶
func (db *DB) GetSchemaSpec() (driver.SchemaSpec, error)
func (*DB) InitSchema ¶
type Driver ¶
type Driver struct{}
Driver is exported to make the driver directly accessible. In general the driver is used via the shed/driver package.
type FileManger ¶
type StatisticsLog ¶
type StatisticsLog struct {
Wait int `key:"wait"`
}
type StatisticsPolicy ¶
type StatisticsPolicy string
const ( StatisticsAll StatisticsPolicy = "all" StatisticsCacheWalk StatisticsPolicy = "cache_walk" StatisticsFast StatisticsPolicy = "fast" )
Click to show internal directories.
Click to hide internal directories.