Documentation
¶
Overview ¶
Package database provides SQLite database connection and query functionality
Index ¶
- Constants
- type DB
- func (db *DB) Close() error
- func (db *DB) Execute(statement string, args ...interface{}) (int64, error)
- func (db *DB) GetTableSchema(tableName string) ([]map[string]interface{}, error)
- func (db *DB) GetTables() ([]string, error)
- func (db *DB) Path() string
- func (db *DB) Query(query string, args ...interface{}) ([]map[string]interface{}, error)
Constants ¶
View Source
const (
// InMemoryDB represents the SQLite in-memory database identifier
InMemoryDB = ":memory:"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB wraps a SQLite database connection with common operations
func (*DB) GetTableSchema ¶
GetTableSchema returns the schema information for a specific table
Click to show internal directories.
Click to hide internal directories.