sql

package
v0.0.67 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2025 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CreateLogicalSlot = `SELECT pg_create_logical_replication_slot($1, $2);`
View Source
var CreatePublication = `CREATE PUBLICATION %s FOR ALL TABLES;`
View Source
var InstallExtension = `CREATE EXTENSION IF NOT EXISTS pgcapture;`
View Source
var QueryAttrTypeOID = `` /* 360-byte string literal not displayed */
View Source
var QueryIdentityKeys = `` /* 875-byte string literal not displayed */
View Source
var QueryReplicationSlot = `SELECT confirmed_flush_lsn FROM pg_replication_slots WHERE slot_name = $1;`
View Source
var ServerVersionNum = `SHOW server_version_num;`

Functions

func DeleteQuery

func DeleteQuery(namespace, table string, fields []*pb.Field) string

func InsertQuery

func InsertQuery(opt InsertOption) string

func UpdateQuery

func UpdateQuery(namespace, table string, sets, keys []*pb.Field) string

Types

type InsertOption

type InsertOption struct {
	Namespace string
	Table     string
	Count     int
	Keys      []string
	Fields    []*pb.Field
	PGVersion int64
}

Jump to

Keyboard shortcuts

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