postgres

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package postgres implements the s9l driver for PostgreSQL using the pure-Go jackc/pgx stdlib adapter (database/sql, no CGO). It mirrors the SQLite adapter's shape so the core stays driver-agnostic; PostgreSQL-specific dialect (DSN form, $1 placeholders, catalog queries) lives here.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct{}

Driver opens PostgreSQL databases. The DSN is a libpq/URL connection string, e.g. "postgres://user:pass@host:5432/db?sslmode=disable".

func (Driver) Name

func (Driver) Name() string

Name returns the driver identifier (also the DSN scheme).

func (Driver) Open

func (Driver) Open(ctx context.Context, dsn string) (driver.Conn, error)

Open establishes a connection to the PostgreSQL database at dsn.

Jump to

Keyboard shortcuts

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