Versions in this module Expand all Collapse all v1 v1.0.2 Sep 19, 2024 v1.0.1 Sep 19, 2024 Changes in this version + func NamedArg(arg string) (key, val string) + func Unquote(val string) string + type Column struct + CheckExpr string + CollateName string + Comment string + ConstraintName string + DefaultExpr string + ForeignKeyClause *ForeignKey + IsAutoIncrement bool + IsNotNull bool + IsPrimaryKey bool + IsUnique bool + Length string + Name string + NotNullConflictClause ConflictClause + PKConflictClause ConflictClause + PKOrder OrderClause + Type string + UniqueConflictClause ConflictClause + type ConflictClause uint32 + const CONFLICT_ABORT + const CONFLICT_FAIL + const CONFLICT_IGNORE + const CONFLICT_NONE + const CONFLICT_REPLACE + const CONFLICT_ROLLBACK + type FKAction uint32 + const FKACTION_CASCADE + const FKACTION_NOACTION + const FKACTION_NONE + const FKACTION_RESTRICT + const FKACTION_SETDEFAULT + const FKACTION_SETNULL + type FKDefType uint32 + const DEFTYPE_DEFERRABLE + const DEFTYPE_DEFERRABLE_INITIALLY_DEFERRED + const DEFTYPE_DEFERRABLE_INITIALLY_IMMEDIATE + const DEFTYPE_NONE + const DEFTYPE_NOTDEFERRABLE + const DEFTYPE_NOTDEFERRABLE_INITIALLY_DEFERRED + const DEFTYPE_NOTDEFERRABLE_INITIALLY_IMMEDIATE + type ForeignKey struct + Columns []string + Deferrable FKDefType + Match string + OnDelete FKAction + OnUpdate FKAction + Table string + type OrderClause uint32 + const ORDER_ASC + const ORDER_DESC + const ORDER_NONE + type StatementType uint32 + const ALTER_ADD_COLUMN + const ALTER_DROP_COLUMN + const ALTER_RENAME_COLUMN + const ALTER_RENAME_TABLE + const CREATE_TABLE + const CREATE_UNKNOWN + type Table struct + Columns []Column + Comment string + CurrentName string + IsIfNotExists bool + IsStrict bool + IsTemporary bool + IsWithoutRowID bool + Name string + NewName string + Schema string + Type StatementType + func Parse(sql string) (_ *Table, err error)