cockroach

package
v0.0.0-...-94252c1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const Driver = "postgres"

Variables

View Source
var ErrTagNotFound error = errors.New("tag not found")

Functions

This section is empty.

Types

type CockroachDB

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

func Make

func Make(host, port, user, password, dbName string, tracer trace.Tracer) (CockroachDB, error)

func (CockroachDB) Close

func (db CockroachDB) Close() error

func (CockroachDB) Conn

func (db CockroachDB) Conn() *sql.DB

func (CockroachDB) Create

func (db CockroachDB) Create(ctx context.Context, user entity.User) error

func (CockroachDB) Delete

func (db CockroachDB) Delete(ctx context.Context, id string) error

func (CockroachDB) Get

func (db CockroachDB) Get(ctx context.Context, params filter.Filter) (entity.User, error)

func (CockroachDB) GetMultiple

func (db CockroachDB) GetMultiple(ctx context.Context, offset, limit string, params filter.Filter) ([]entity.User, error)

func (CockroachDB) Update

func (db CockroachDB) Update(ctx context.Context, user entity.User) error

Jump to

Keyboard shortcuts

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