decode

package
v0.0.0-...-096c525 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: PostgreSQL Imports: 4 Imported by: 0

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

func KeyRange(krg *kr.KeyRange) string

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.

Jump to

Keyboard shortcuts

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