Versions in this module Expand all Collapse all v0 v0.1.1 Jan 13, 2023 Changes in this version + type Database struct + func NewDatabase(c office.Database) (*Database, error) + func (db *Database) Close() error + func (db *Database) Migrate() error + func (db *Database) Open() error + func (db *Database) WithQuery(query driver.Query) error + func (db *Database) WithTransaction(ctx context.Context, tx driver.Transaction) error v0.1.0 Jan 12, 2023 Changes in this version + type Driver struct + func NewDriver(c office.Database) (*Driver, error) + func (d *Driver) BeginTx(ctx context.Context, opts *sql.TxOptions) (*Tx, error) + func (d *Driver) Close() error + func (d *Driver) Migrate() error + func (d *Driver) Open() error + type Migration struct + FileName string + Query string + type Service struct + func NewService(d *Driver) Service + func (s Service) Create(ctx context.Context, r *office.CreateRequest) error + func (s Service) FindMany(ctx context.Context, r *office.FindManyRequest) (*office.FindManyResponse, error) + func (s Service) FindOne(ctx context.Context, r *office.FindOneRequest) (*office.FindOneResponse, error) + func (s Service) Update(ctx context.Context, r *office.UpdateRequest) error + type Tx struct