package sql3util
Import Path
github.com/ncruces/go-sqlite3/util/sql3util (on go.dev)
Dependency Relation
imports 7 packages, and imported by one package
Package-Level Type Names (total 8)
Column holds metadata about a column.
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
const CONFLICT_ABORT
const CONFLICT_FAIL
const CONFLICT_IGNORE
const CONFLICT_NONE
const CONFLICT_REPLACE
const CONFLICT_ROLLBACK
const FKACTION_CASCADE
const FKACTION_NOACTION
const FKACTION_NONE
const FKACTION_RESTRICT
const FKACTION_SETDEFAULT
const FKACTION_SETNULL
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
const ORDER_ASC
const ORDER_DESC
const ORDER_NONE
const ALTER_ADD_COLUMN
const ALTER_DROP_COLUMN
const ALTER_RENAME_COLUMN
const ALTER_RENAME_TABLE
const CREATE_TABLE
const CREATE_UNKNOWN
Table holds metadata about a table.
Columns []Column
Comment string
CurrentName string
IsIfNotExists bool
IsStrict bool
IsTemporary bool
IsWithoutRowID bool
Name string
NewName string
Schema string
Type StatementType
func ParseTable(sql string) (_ *Table, err error)
Package-Level Functions (total 5)
NamedArg splits an named arg into a key and value,
around an equals sign.
Spaces are trimmed around both key and value.
ParseBool parses a boolean.
https://sqlite.org/pragma.html#syntax
ParseTable parses a [CREATE] or [ALTER TABLE] command.
Unquote unquotes a string.
https://sqlite.org/lang_keywords.html
ValidPageSize returns true if s is a valid page size.
https://sqlite.org/fileformat.html#pages
Package-Level Constants (total 28)
const ALTER_ADD_COLUMN StatementType = 4 const ALTER_DROP_COLUMN StatementType = 5 const ALTER_RENAME_COLUMN StatementType = 3 const ALTER_RENAME_TABLE StatementType = 2 const CONFLICT_ABORT ConflictClause = 2 const CONFLICT_FAIL ConflictClause = 3 const CONFLICT_IGNORE ConflictClause = 4 const CONFLICT_NONE ConflictClause = 0 const CONFLICT_REPLACE ConflictClause = 5 const CONFLICT_ROLLBACK ConflictClause = 1 const CREATE_TABLE StatementType = 1 const CREATE_UNKNOWN StatementType = 0 const DEFTYPE_DEFERRABLE FKDefType = 1 const DEFTYPE_NONE FKDefType = 0 const DEFTYPE_NOTDEFERRABLE FKDefType = 4 const FKACTION_CASCADE FKAction = 3 const FKACTION_NOACTION FKAction = 5 const FKACTION_NONE FKAction = 0 const FKACTION_RESTRICT FKAction = 4 const FKACTION_SETDEFAULT FKAction = 2 const FKACTION_SETNULL FKAction = 1 const ORDER_ASC OrderClause = 1 const ORDER_DESC OrderClause = 2 const ORDER_NONE OrderClause = 0![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |