prepstatement

package
v0.0.0-...-7a0127b Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: PostgreSQL Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PreparedStatementDefinition

type PreparedStatementDefinition struct {
	Name          string
	Query         string
	ParameterOIDs []uint32
}

type PreparedStatementDescriptor

type PreparedStatementDescriptor struct {
	NoData    bool
	ParamDesc *pgproto3.ParameterDescription
	RowDesc   *pgproto3.RowDescription
}

type PreparedStatementHolder

type PreparedStatementHolder interface {
	HasPrepareStatement(hash uint64) (bool, *PreparedStatementDescriptor)
	StorePrepareStatement(hash uint64, d *PreparedStatementDefinition, rd *PreparedStatementDescriptor)
}

type PreparedStatementMapper

type PreparedStatementMapper interface {
	PreparedStatementQueryByName(name string) string
	PreparedStatementDefinitionByName(name string) *PreparedStatementDefinition
	PreparedStatementQueryHashByName(name string) uint64
	StorePreparedStatement(d *PreparedStatementDefinition)
}

Jump to

Keyboard shortcuts

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