Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Column ¶
type Column struct {
Name string
Type string
Length string
ConstraintName string
IsPrimaryKey bool
IsAutoincrement bool
IsNotnull bool
IsUnique bool
PkOrder OrderClause
PkConflictClause ConflictClause
NotNullConflictClause ConflictClause
UniqueConflictClause ConflictClause
CheckExpr string
DefaultExpr string
CollateName string
ForeignKeyClause *ForeignKey
}
type ConflictClause ¶
type ConflictClause int
const ( CONFLICT_NONE ConflictClause = iota CONFLICT_ROOLBACK CONFLICT_ABORT CONFLICT_FAIL CONFLICT_IGNORE CONFLICT_REPLACE )
type ConstraintType ¶
type ConstraintType int
const ( TABLECONSTRAINT_PRIMARYKEY ConstraintType = iota TABLECONSTRAINT_UNIQUE TABLECONSTRAINT_CHECK TABLECONSTRAINT_FOREIGNKEY )
type ForeignKey ¶
type IdxColumn ¶
type IdxColumn struct {
Name string
CollateName string
Order OrderClause
}
type OrderClause ¶
type OrderClause int
const ( ORDER_NONE OrderClause = iota ORDER_ASC ORDER_DESC )
type TableConstraint ¶
type TableConstraint struct {
Type ConstraintType
Name string
NumIndexed int
IndexedColumns []IdxColumn
ConflictClause ConflictClause
CheckExpr string
ForeignKeyNum int
ForeignKeyName []string
ForeignKeyClause *ForeignKey
}
Click to show internal directories.
Click to hide internal directories.