package
Version:
v0.0.0-...-96f772b
Opens a new window with list of versions in this module.
Published: Feb 7, 2016
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type SQLiteTableRow struct {
Field string `db:"name"`
Type string `db:"type"`
}
type Schema struct {
Tables []*Table `db:"Tables"`
Adapter string
}
Schema represents a simplified database schema and possesses a list of Tables
NewSchema returns a new schema pointer with the Tables field initialized
type Table struct {
Name string `db:"Name"`
Rows []*TableRow `db:"Rows"`
}
Table represents a sql Table with a Name and Rows, which give at least a Field Name and Type
type TableRow struct {
Field string `db:"Field"`
Type string `db:"Type"`
Null string `db:"Null"`
Key string `db:"Key"`
Default interface{} `db:"Default"`
}
TableRow represents a single row from a Table
Source Files
¶
Click to show internal directories.
Click to hide internal directories.