Documentation ¶
Overview ¶
Package parse parses SQL statements for the SimpleDB driver.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Column ¶
type Column struct { ColumnName string // name of associated column Ordinal int // zero-based placeholder ordinal Value *string // if non-nil, then a literal value }
Column represents a column in the query and the placeholder or value it is associated with.
type CreateTableQuery ¶
type CreateTableQuery struct {
TableName string
}
CreateTableQuery is the representation of a create table query.
type DeleteQuery ¶
DeleteQuery is the representation of a delete query.
type DropTableQuery ¶
type DropTableQuery struct {
TableName string
}
DropTableQuery is the representation of a drop table query.
type InsertQuery ¶
InsertQuery is the representation of an insert query.
type Key ¶
type Key struct { Ordinal int // zero-based placeholder ordinal Value *string // if non-nil, then a literal value }
Key represents the primary key of the record being inserted/updated/deleted.
type Query ¶
type Query struct { Select *SelectQuery Insert *InsertQuery Update *UpdateQuery Delete *DeleteQuery CreateTable *CreateTableQuery DropTable *DropTableQuery }
Query is the representation of a single parsed query.
Click to show internal directories.
Click to hide internal directories.