Documentation ¶
Index ¶
Constants ¶
View Source
const ( DELETE = iota TRUNCATE PERSIST MEMORY WAL OFF )
https://www.sqlite.org/pragma.html#pragma_journal_mode
View Source
const ( SHARED = iota PRIVATE )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sqlite ¶
type Sqlite struct {
// contains filtered or unexported fields
}
Sqlite is the externed sqlite type
func NewSqlite ¶
func NewSqlite( ctx context.Context, name string, uuid string, jmode int, cmode int, rcnt int, period int, ) (*Sqlite, error)
NewSqlite returns init. Sqlite instance
ctx: context.Context
name: actor name
uuid: actor uuid
jmode: journal mode
cmode: cache mode
rcnt: 0: no rotation, >0: preserve number of records then rotate.
Click to show internal directories.
Click to hide internal directories.