datalayers

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package datalayers provides a factory function for generating a datalayer client. Current supported datalayers are: - PostgreSQL

Index

Constants

This section is empty.

Variables

View Source
var PostgresqlMigrations embed.FS

Functions

func MigrateDatalayer

func MigrateDatalayer(platform string, connStr string) error

func NewDatalayerClient

func NewDatalayerClient(
	ctx context.Context,
	platform Platform,
	connStr string,
) (types.Datalayer, error)

NewDatalayerClient generates a new datalayer client of the specificed type.

Types

type Platform

type Platform string

Platform resprents a database storage platform (e.g. PostgreSQL)

const (
	// PostgreSQL is the postgresql platform
	PostgreSQL Platform = "postgresql"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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