Versions in this module Expand all Collapse all v0 v0.0.1 Apr 27, 2024 Changes in this version + var YOLog = func(context.Context, string, ...interface{}) + func UserColumns() []string + func UserPrimaryKeys() []string + func UserWritableColumns() []string + type User struct + CreatedAt time.Time + Email string + ID string + Name string + UpdatedAt time.Time + func FindUser(ctx context.Context, db YORODB, id string) (*User, error) + func ReadUser(ctx context.Context, db YORODB, keys spanner.KeySet) ([]*User, error) + func (u *User) Delete(ctx context.Context) *spanner.Mutation + func (u *User) Insert(ctx context.Context) *spanner.Mutation + func (u *User) InsertOrUpdate(ctx context.Context) *spanner.Mutation + func (u *User) Update(ctx context.Context) *spanner.Mutation + func (u *User) UpdateColumns(ctx context.Context, cols ...string) (*spanner.Mutation, error) + type YODB interface + type YORODB interface + Query func(ctx context.Context, statement spanner.Statement) *spanner.RowIterator + Read func(ctx context.Context, table string, keys spanner.KeySet, columns []string) *spanner.RowIterator + ReadRow func(ctx context.Context, table string, key spanner.Key, columns []string) (*spanner.Row, error) + ReadUsingIndex func(ctx context.Context, table, index string, keys spanner.KeySet, ...) (ri *spanner.RowIterator)