Documentation ¶
Index ¶
- Constants
- func CreateTable(queryer db.Queryer, catalog, schema, tableName string, columns []Column, ...) error
- func CreateTableAs(queryer db.Queryer, catalog, schema, tableName string, columns []Column, ...) error
- func CreateView(queryer db.Queryer, catalog, schema, viewName string, query string, ...) error
- func DeleteFrom(queryer db.Queryer, tableName string) error
- func DropTable(queryer db.Queryer, catalog, schema, tableName string, ignoreNotExists bool) error
- func DropView(queryer db.Queryer, catalog, schema, viewName string, ignoreNotExists bool) error
- func FormatInsertQuery(target, query string) string
- func FullyQualifiedTableName(catalog, schema, tableName string) string
- func GenerateGetRowsSQL(tableName string, columns []Column) string
- func GenerateGetRowsSQLWithWhere(tableName string, columns []Column, whereClause string) string
- func GenerateOrderBySQL(columns []Column) string
- func GenerateQuotedColumnsListSQL(columns []Column) string
- func InsertInto(queryer db.Queryer, tableName, query string) error
- type Column
- type PartitionSpec
- type Row
- type TablePartition
Constants ¶
View Source
const (
// TimestampFormat is the time format string used to produce Presto timestamps.
TimestampFormat = "2006-01-02 15:04:05.000"
)
Variables ¶
This section is empty.
Functions ¶
func CreateTable ¶
func CreateTableAs ¶
func CreateView ¶
func FormatInsertQuery ¶
func FullyQualifiedTableName ¶
func GenerateGetRowsSQL ¶
func GenerateOrderBySQL ¶
Types ¶
type PartitionSpec ¶
type Row ¶
type Row map[string]interface{}
func ExecuteSelect ¶
ExecuteSelectQuery performs the query on the table target. It's expected target has the correct schema.
type TablePartition ¶
type TablePartition struct { Location string `json:"location"` PartitionSpec PartitionSpec `json:"partitionSpec"` }
Click to show internal directories.
Click to hide internal directories.