Documentation
¶
Overview ¶
Package schema reads table and column metadata from a SQLite-compatible database.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrTableNotFound = errors.New("table not found")
Functions ¶
This section is empty.
Types ¶
type Column ¶
func (Column) Affinity ¶
Affinity applies SQLite's rules to the declared type, in SQLite's order: https://www.sqlite.org/datatype3.html#determination_of_column_affinity
func (Column) IsPrimaryKey ¶
type Introspector ¶
type SQLIntrospector ¶
type SQLIntrospector struct {
// contains filtered or unexported fields
}
func NewSQLIntrospector ¶
func NewSQLIntrospector(db Querier) *SQLIntrospector