Documentation
¶
Index ¶
Constants ¶
View Source
const AccountsTableSchema = `` /* 746-byte string literal not displayed */
AccountsTableSchema is the SQL schema for the accounts table
Variables ¶
This section is empty.
Functions ¶
func CreateAccountsTable ¶
CreateAccountsTable creates the accounts table
func NewInMemory ¶
NewInMemory creates an in-memory SQLite database
Types ¶
type Config ¶
type Config struct {
// Path to the database file (:memory: for in-memory)
Path string
// Mode: ro (read-only), rw (read-write), rwc (read-write-create), memory
Mode string
// Cache: shared or private
Cache string
// Enable foreign keys
ForeignKeys bool
// Journal mode: DELETE, TRUNCATE, PERSIST, MEMORY, WAL, OFF
JournalMode string
// Busy timeout in milliseconds
BusyTimeout int
}
Config represents SQLite-specific configuration
func DefaultConfig ¶
DefaultConfig returns a Config with sensible defaults
Click to show internal directories.
Click to hide internal directories.