Documentation
¶
Index ¶
- type Driver
- type SQLLiteDriverConfig
- type SQLiteColumn
- type SQLiteDriver
- type SQLiteIndex
- type SQLiteTable
- func (t *SQLiteTable) ColumnByName(name string) (*SQLiteColumn, bool)
- func (t *SQLiteTable) Copy() *SQLiteTable
- func (t *SQLiteTable) CreateTableOnlyString() string
- func (t *SQLiteTable) IndexByName(name string) (*SQLiteIndex, bool)
- func (t *SQLiteTable) String() string
- func (t *SQLiteTable) TriggerByName(name string) (*SQLiteTrigger, bool)
- type SQLiteTrigger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SQLLiteDriverConfig ¶
type SQLiteColumn ¶
type SQLiteColumn struct {
Name string
Type string
NotNull bool
PrimaryKey bool
Default sql.NullString
}
func (*SQLiteColumn) Copy ¶
func (c *SQLiteColumn) Copy() *SQLiteColumn
func (*SQLiteColumn) HasEqualAttributes ¶
func (c *SQLiteColumn) HasEqualAttributes(other *SQLiteColumn) bool
func (*SQLiteColumn) String ¶
func (c *SQLiteColumn) String() string
type SQLiteDriver ¶
func NewSQLiteDriver ¶
func NewSQLiteDriver(config *SQLLiteDriverConfig) (*SQLiteDriver, error)
func (*SQLiteDriver) Close ¶
func (d *SQLiteDriver) Close() error
type SQLiteIndex ¶
func (*SQLiteIndex) Equal ¶
func (i *SQLiteIndex) Equal(other *SQLiteIndex) bool
func (*SQLiteIndex) String ¶
func (i *SQLiteIndex) String() string
type SQLiteTable ¶
type SQLiteTable struct {
Name string
Columns []*SQLiteColumn
Indexes []*SQLiteIndex
Triggers []*SQLiteTrigger
}
func (*SQLiteTable) ColumnByName ¶
func (t *SQLiteTable) ColumnByName(name string) (*SQLiteColumn, bool)
func (*SQLiteTable) Copy ¶
func (t *SQLiteTable) Copy() *SQLiteTable
func (*SQLiteTable) CreateTableOnlyString ¶
func (t *SQLiteTable) CreateTableOnlyString() string
CreateTableOnlyString returns the CREATE TABLE statement without indexes. (Used for the table-rebuild path so indexes can be recreated after rename.)
func (*SQLiteTable) IndexByName ¶
func (t *SQLiteTable) IndexByName(name string) (*SQLiteIndex, bool)
func (*SQLiteTable) String ¶
func (t *SQLiteTable) String() string
func (*SQLiteTable) TriggerByName ¶
func (t *SQLiteTable) TriggerByName(name string) (*SQLiteTrigger, bool)
type SQLiteTrigger ¶
Click to show internal directories.
Click to hide internal directories.