postgres

package
v0.0.0-...-bb05487 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureSchemaDriverRegistered

func EnsureSchemaDriverRegistered()

EnsureSchemaDriverRegistered registers the postgresschema driver when [database] SCHEMA is set.

Types

type Backend

type Backend struct{}

Backend is the PostgreSQL metadata store implementation (xorm + lib/pq).

func New

func New() *Backend

New returns a PostgreSQL metadata Backend.

func (*Backend) Init

func (*Backend) Init(ctx context.Context) error

Init implements metadatastore.Backend.

func (*Backend) InitWithMigration

func (*Backend) InitWithMigration(ctx context.Context, migrateFunc func(context.Context, *xorm.Engine) error) error

InitWithMigration implements metadatastore.Backend.

func (*Backend) Unset

func (*Backend) Unset()

Unset implements metadatastore.Backend.

Jump to

Keyboard shortcuts

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