postgres

package
v0.0.0-...-ef3af43 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Operation

type Operation uint8

Operation represents a postgres query operation supported by our decoder.

const (
	// UnknownOP represents an unknown operation.
	UnknownOP Operation = iota
	// SelectOP represents a SELECT operation.
	SelectOP
	// InsertOP represents an INSERT operation.
	InsertOP
	// UpdateOP represents an UPDATE operation.
	UpdateOP
	// CreateTableOP represents a CREATE TABLE operation.
	CreateTableOP
	// DropTableOP represents a DROP TABLE operation.
	DropTableOP
	// DeleteTableOP represents a DELETE TABLE operation.
	DeleteTableOP
	// AlterTableOP represents an ALTER TABLE operation.
	AlterTableOP
	// TruncateTableOP represents a TRUNCATE operation.
	TruncateTableOP
	// ShowOP represents a command SHOW
	ShowOP
)

func FromString

func FromString(op string) Operation

FromString returns the Operation from a string.

func (Operation) String

func (op Operation) String() string

String returns the string representation of the operation.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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