operations

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2025 License: AGPL-3.0 Imports: 3 Imported by: 0

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

func AlterTable(c commands.Command, existingTable *consensus.Table) ([]*consensus.Table, error)

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

func CreateTable(c commands.Command) ([]*consensus.Table, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL