Documentation
¶
Overview ¶
Package schema provides types for representing SQLite database schemas
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Column ¶
type Column struct {
Name string
Type string
NotNull bool
Default *string
PrimaryKey int // 0 = not PK, 1+ = PK position
}
Column represents a table column (from PRAGMA table_info)
type Database ¶
type Database struct {
Tables map[string]*Table
Indexes map[string]*Index
Views map[string]*View
Triggers map[string]*Trigger
}
Database represents a complete SQLite database schema
type Table ¶
Table represents a SQLite table
func (*Table) ColumnNames ¶
ColumnNames returns the column names for a table
Click to show internal directories.
Click to hide internal directories.