Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Statement ¶
type Statement struct {
SQL string // Original sql statement
Verb Verb // A statement type; INSERT, CREATE, etc
}
Statement captures a single sql statement, ie INSERT INTO (...) VALUES (...);
func FromString ¶
FromString constructs a Statement from a string
func (*Statement) Dependencies ¶
Dependencies determines the foreign key dependencies of the table if the statement is a Create Statement
type Statements ¶
type Statements []Statement
Statements type is needed to satisfy the sort interface
func (Statements) Len ¶
func (slice Statements) Len() int
func (Statements) Less ¶
func (slice Statements) Less(i, j int) bool
func (Statements) Swap ¶
func (slice Statements) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.