Documentation
¶
Index ¶
Constants ¶
View Source
const (
DirectoryPerm = 0o755
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
func NewSQLiteAdapter ¶
NewSQLiteAdapter creates a new SQLite adapter
type DatabaseConnectionError ¶
func (*DatabaseConnectionError) Error ¶
func (e *DatabaseConnectionError) Error() string
type DatabaseDirectoryCreationError ¶
func (*DatabaseDirectoryCreationError) Error ¶
func (e *DatabaseDirectoryCreationError) Error() string
type DatabaseNotFoundError ¶
type DatabaseNotFoundError struct {
DBFilePath string
}
func (*DatabaseNotFoundError) Error ¶
func (e *DatabaseNotFoundError) Error() string
type QueryExecutionError ¶
func (*QueryExecutionError) Error ¶
func (e *QueryExecutionError) Error() string
type SQLiteAdapter ¶
type SQLiteAdapter struct {
// contains filtered or unexported fields
}
SQLiteAdapter represents a connection to a SQLite database
func (*SQLiteAdapter) BeginTx ¶
func (a *SQLiteAdapter) BeginTx() (*sql.Tx, error)
BeginTx starts a new transaction
func (*SQLiteAdapter) Close ¶
func (a *SQLiteAdapter) Close() error
Close closes the database connection
func (*SQLiteAdapter) GetDB ¶
func (a *SQLiteAdapter) GetDB() Driver
GetDB returns the database connection
func (*SQLiteAdapter) Open ¶
func (a *SQLiteAdapter) Open() error
Open opens the database connection and initializes the schema if needed
type SchemaInitializationError ¶
func (*SchemaInitializationError) Error ¶
func (e *SchemaInitializationError) Error() string
Click to show internal directories.
Click to hide internal directories.