cockroach

package
v0.0.0-...-8a338e8 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 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) (err error)

func (CockroachDB) Delete

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

func (CockroachDB) Get

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

func (CockroachDB) GetMultiple

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

func (CockroachDB) Update

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

Jump to

Keyboard shortcuts

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