Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SideChannel ¶
type SideChannel interface { HasTablePrivilege( username string, entity systemcatalog.SystemEntity, grant TableGrant, ) (access bool, err error) CreatePublication( publicationName string, ) (success bool, err error) ExistsPublication( publicationName string, ) (found bool, err error) DropPublication( publicationName string, ) error ExistsTableInPublication( publicationName, schemaName, tableName string, ) (found bool, err error) GetSystemInformation() ( databaseName, systemId string, timeline int32, err error, ) GetWalLevel() (walLevel string, err error) GetReplicationMarkersEnabled() (enabled bool, err error) GetPostgresVersion() (pgVersion version.PostgresVersion, err error) GetTimescaleDBVersion() (tsdbVersion version.TimescaleVersion, found bool, err error) ReadHypertables( cb func(hypertable *systemcatalog.Hypertable) error, ) error ReadChunks( cb func(chunk *systemcatalog.Chunk) error, ) error ReadVanillaTables( cb func(table *systemcatalog.PgTable) error, ) error ReadHypertableSchema( cb TableSchemaCallback, pgTypeResolver func(oid uint32) (pgtypes.PgType, error), hypertables ...*systemcatalog.Hypertable, ) error ReadVanillaTableSchema( cb TableSchemaCallback, pgTypeResolver func(oid uint32) (pgtypes.PgType, error), tables ...*systemcatalog.PgTable, ) error AttachTablesToPublication( publicationName string, entities ...systemcatalog.SystemEntity, ) error DetachTablesFromPublication( publicationName string, entities ...systemcatalog.SystemEntity, ) error SnapshotChunkTable( rowDecoderFactory pgtypes.RowDecoderFactory, chunk *systemcatalog.Chunk, snapshotBatchSize int, cb SnapshotRowCallback, ) (lsn pgtypes.LSN, err error) FetchTableSnapshotBatch( rowDecoderFactory pgtypes.RowDecoderFactory, table systemcatalog.BaseTable, snapshotName string, snapshotBatchSize int, cb SnapshotRowCallback, ) error ReadSnapshotHighWatermark( rowDecoderFactory pgtypes.RowDecoderFactory, table systemcatalog.BaseTable, snapshotName string, ) (values map[string]any, err error) ReadReplicaIdentity( schemaName, tableName string, ) (identity pgtypes.ReplicaIdentity, err error) ReadContinuousAggregate( materializedHypertableId int32, ) (viewSchema, viewName string, found bool, err error) ReadPublishedTables( publicationName string, ) (entities []systemcatalog.SystemEntity, err error) ReadReplicationSlot( slotName string, ) (pluginName, slotType string, restartLsn, confirmedFlushLsn pgtypes.LSN, err error) ExistsReplicationSlot( slotName string, ) (found bool, err error) ReadPgTypes( factory pgtypes.TypeFactory, cb func(typ pgtypes.PgType) error, oids ...uint32, ) error ReadPgCompositeTypeSchema( oid uint32, compositeColumnFactory pgtypes.CompositeColumnFactory, ) ([]pgtypes.CompositeColumn, error) }
type SnapshotRowCallback ¶
type TableGrant ¶
type TableGrant string
const ( Select TableGrant = "select" Insert TableGrant = "insert" Update TableGrant = "update" Delete TableGrant = "delete" Truncate TableGrant = "truncate" References TableGrant = "references" Trigger TableGrant = "trigger" )
type TableSchemaCallback ¶ added in v0.10.0
type TableSchemaCallback = func( table systemcatalog.SystemEntity, columns []systemcatalog.Column, ) error
Click to show internal directories.
Click to hide internal directories.