sqldb

package
v0.6.9 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteQuery

func ExecuteQuery(_ SQLType, db *sql.DB, query string) ([]json.RawMessage, error)

Types

type SQLType

type SQLType string
const (
	PostgreSQL  SQLType = "postgresql"
	MySQL       SQLType = "mysql"
	Sqlite      SQLType = "sqlite"
	TimescaleDB SQLType = "timescaledb"
	MariaDB     SQLType = "mariadb"
	SQLServer   SQLType = "sqlserver"
	ClickHouse  SQLType = "clickhouse"
)

type Storage

type Storage struct {
	// contains filtered or unexported fields
}

func NewStorage

func NewStorage(dbType SQLType, db *sql.DB, opts *StorageOpts) *Storage

func (*Storage) ExecuteQuery

func (l *Storage) ExecuteQuery(query string) ([]json.RawMessage, error)

func (*Storage) GetType

func (l *Storage) GetType() string

func (*Storage) LoadFixtures

func (l *Storage) LoadFixtures(location string, names []string) error

type StorageOpts

type StorageOpts struct {
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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