Documentation ¶
Index ¶
- func Logger(l ILogger)
- func SimpleQueryRead(ctx context.Context, spannerTransaction interface{}, query string, ...) error
- func SimpleQueryWrite(ctx context.Context, spannerTransaction *spanner.ReadWriteTransaction, ...) (int64, error)
- func UseTrace(opts ...ssormotel.Option)
- type Builder
- type DB
- func (db *DB) AddSub(model interface{}, query interface{}, values ...interface{}) *DB
- func (db *DB) Count(ctx context.Context, spannerTransaction interface{}, cnt interface{}) error
- func (db *DB) DeleteModel(ctx context.Context, spannerTransaction *spanner.ReadWriteTransaction) (int64, error)
- func (db *DB) DeleteWhere(ctx context.Context, spannerTransaction *spanner.ReadWriteTransaction) (int64, error)
- func (db *DB) Find(ctx context.Context, spannerTransaction interface{}) error
- func (db *DB) First(ctx context.Context, spannerTransaction interface{}) error
- func (db *DB) Insert(ctx context.Context, spannerTransaction *spanner.ReadWriteTransaction) (int64, error)
- func (db *DB) Limit(limit int64) *DB
- func (db *DB) Offset(offset int64) *DB
- func (db *DB) Order(order string) *DB
- func (db *DB) Select(query []string) *DB
- func (db *DB) TableName(tableName string) *DB
- func (db *DB) Update(ctx context.Context, spannerTransaction *spanner.ReadWriteTransaction) (int64, error)
- func (db *DB) UpdateColumns(ctx context.Context, spannerTransaction *spanner.ReadWriteTransaction, ...) (int64, error)
- func (db *DB) UpdateOmit(ctx context.Context, spannerTransaction *spanner.ReadWriteTransaction, ...) (int64, error)
- func (db *DB) UpdateParams(ctx context.Context, spannerTransaction *spanner.ReadWriteTransaction, ...) (int64, error)
- func (db *DB) Where(query interface{}, values ...interface{}) *DB
- type ILogger
- type Option
- type SubBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SimpleQueryRead ¶ added in v0.0.8
func SimpleQueryWrite ¶ added in v0.0.8
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func SoftDeleteModel ¶
func (*DB) DeleteModel ¶
func (*DB) DeleteWhere ¶
func (*DB) UpdateColumns ¶
func (*DB) UpdateOmit ¶ added in v0.2.1
func (*DB) UpdateParams ¶
type ILogger ¶
type ILogger interface { Debugf(format string, args ...interface{}) Infof(format string, args ...interface{}) Warnf(format string, args ...interface{}) Errorf(format string, args ...interface{}) Fatalf(format string, args ...interface{}) Panicf(format string, args ...interface{}) WithContext(ctx context.Context) *logrus.Entry }
type SubBuilder ¶
type SubBuilder struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.