ds

package module
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2025 License: MIT Imports: 1 Imported by: 1

README

Data storage providers

See pgds/pgds_test.go

Documentation

Overview

Package ds (data storage) implements data storage privider for an application. Required provider must be imported with _ ds/... directive before usage. Provider costructor parameters must be supplied to NewProvider() function.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(name string, provide Provider)

Register makes data storage provider available by the provided name. If Register is called twice with the same name or if driver is nil, it panics.

Types

type Provider

type Provider interface {
	InitProvider(provParams []any) error
}

func NewProvider

func NewProvider(providerName string, provParams ...any) (Provider, error)

NewProvider is a provider construction

Directories

Path Synopsis
pgds package implements postgresql data storage based on pgx driver.
pgds package implements postgresql data storage based on pgx driver.

Jump to

Keyboard shortcuts

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