Documentation ¶
Overview ¶
Package util is used to avoid circular dependencies between packages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NamingStrategy = schema.NamingStrategy{ TablePrefix: os.Getenv("TABLE_PREFIX"), }
NamingStrategy is used to exported here to avoid a circular dependency.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { Driver string DSN string Table string // Don't try to create table NoCreate bool // sqlcipher extension specific Key []byte CipherPageSize uint }
Options are the sqlite datastore options, reexported here for convenience.
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
Queries are the sqlite queries for a given table.
func NewQueries ¶
NewQueries creates a new sqlite set of queries for the passed table.
func (Queries) Offset ¶
Offset returns the sqlite query fragment for returning rows from a given offset.
Click to show internal directories.
Click to hide internal directories.