Documentation
¶
Index ¶
Constants ¶
View Source
const ( CreateTableTableOrReplication = 1 CreateTableNameOrIfNotExists = 2 CreateTableName = 5 CreateTableGroup = -2 CreateTableGroupName = -1 CreateTableShard = -4 CreateTableShardName = -1 )
View Source
const ( AlterTableType = 1 AlterTableName = 2 AlterTableAddDrop = 3 AlterTableGroup = 4 AlterTableGroupName = 5 )
Variables ¶
This section is empty.
Functions ¶
func AlterTable ¶
AlterTable parses a SQL query and creates an appropriate Table(s) object for proposing to the cluster. It accepts a command structure like: ALTER TABLE table_name [ADD|DROP] GROUP
func CreateTable ¶
CreateTable parses a SQL query and creates an appropriate Table(s) object for proposing to the cluster. It accepts a command structure like: CREATE [REPLICATION] TABLE [IF NOT EXISTS] table_name (...) [GROUP group_name] [SHARD BY PRINCIPAL key]
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.