postgres

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package postgres provides the PostgreSQL database engine implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts engine.Options) (engine.Engine, error)

New creates a new PostgreSQL engine instance.

Types

type Engine

type Engine struct {
	// contains filtered or unexported fields
}

Engine implements the engine.Engine interface for PostgreSQL.

func (*Engine) ConnectionPool

func (e *Engine) ConnectionPool() engine.ConnectionPoolConfig

ConnectionPool returns recommended connection pool settings for PostgreSQL. PostgreSQL benefits from moderate-sized connection pools.

func (*Engine) DefaultDriver

func (e *Engine) DefaultDriver() string

DefaultDriver returns the default Go driver import path for PostgreSQL.

func (*Engine) IsolationLevels

func (e *Engine) IsolationLevels() (supported []engine.IsolationLevel, defaultLevel engine.IsolationLevel)

IsolationLevels returns supported isolation levels for PostgreSQL.

func (*Engine) Name

func (e *Engine) Name() string

Name returns the engine identifier.

func (*Engine) QueryHints

func (e *Engine) QueryHints() []engine.QueryHint

QueryHints returns available query hints for PostgreSQL. PostgreSQL has limited query hint support via optimizer hints extension.

func (*Engine) SQLGenerator

func (e *Engine) SQLGenerator() engine.SQLGenerator

SQLGenerator returns the PostgreSQL SQL generator.

func (*Engine) SchemaParser

func (e *Engine) SchemaParser() diagnostic.SchemaParser

SchemaParser returns the native PostgreSQL schema parser.

func (*Engine) SupportsFeature

func (e *Engine) SupportsFeature(feature engine.Feature) bool

SupportsFeature reports whether PostgreSQL supports a specific feature.

func (*Engine) TypeMapper

func (e *Engine) TypeMapper() engine.TypeMapper

TypeMapper returns the PostgreSQL type mapper.

Jump to

Keyboard shortcuts

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