Documentation
¶
Index ¶
- Constants
- Variables
- type CockroachDB
- func (db CockroachDB) Close() error
- func (db CockroachDB) Conn() *sql.DB
- func (db CockroachDB) Create(ctx context.Context, user entity.User) (err error)
- func (db CockroachDB) Delete(ctx context.Context, id string) (err error)
- func (db CockroachDB) Get(ctx context.Context, params filter.Filter) (_ entity.User, err error)
- func (db CockroachDB) GetMultiple(ctx context.Context, offset, limit string, params filter.Filter) (_ []entity.User, err error)
- func (db CockroachDB) Update(ctx context.Context, user entity.User) (err error)
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) Delete ¶
func (db CockroachDB) Delete(ctx context.Context, id string) (err error)
func (CockroachDB) GetMultiple ¶
Click to show internal directories.
Click to hide internal directories.