lib

package
v1.0.0-rc.9 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package lib contains the Ferret-facing DB::POSTGRES function bridge.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Begin

func Begin(ctx context.Context, arg runtime.Value) (runtime.Value, error)

Begin starts a Postgres transaction and returns a transaction handle.

func Close

func Close(_ context.Context, arg runtime.Value) (runtime.Value, error)

Close closes a Postgres database handle. Closing an already closed database is idempotent.

func Commit

func Commit(_ context.Context, arg runtime.Value) (runtime.Value, error)

Commit commits a Postgres transaction handle.

func Open

func Open(ctx context.Context, arg runtime.Value) (runtime.Value, error)

Open creates a Postgres database handle from an options object.

func RegisterLib

func RegisterLib(ns runtime.Namespace) error

RegisterLib registers the DB::POSTGRES namespace functions in the provided namespace.

func Rollback

func Rollback(_ context.Context, arg runtime.Value) (runtime.Value, error)

Rollback rolls back a Postgres transaction handle.

Types

This section is empty.

Jump to

Keyboard shortcuts

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