Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DistributedRelation ¶
func DistributedRelation(rel *protos.DistributedRelation, ds string) string
DistributedRelation return query to attach relation to distribution DistributedRelation returns a SQL query to attach a distributed relation to a distribution.
Parameters: - rel (*protos.DistributedRelation): a pointer to a DistributedRelation struct containing the information about the distributed relation. - ds (string): the name of the distribution to attach the relation to.
Returns: - string: the SQL query to attach the relation to the distribution.
func Distribution ¶
func Distribution(ds *protos.Distribution) string
Distribution returns query to create given distribution Distribution creates a SQL query to create a distribution based on the provided Distribution struct.
Parameters: - ds (*protos.Distribution): a pointer to a Distribution struct containing the distribution information. Return type: - string: the SQL query for creating the distribution.
func KeyRange ¶
KeyRange returns query to create given key range KeyRange returns a string representing a SQL query to create a key range.
Parameters: - krg (*protos.KeyRangeInfo): a pointer to a KeyRangeInfo struct containing the information about the key range.
Returns: - string: the SQL query to create the key range.
Types ¶
This section is empty.