Versions in this module Expand all Collapse all v0 v0.5.11 Feb 16, 2023 Changes in this version + var YOLog = func(context.Context, string, ...interface{}) + func CompositePrimaryKeyColumns() []string + func CompositePrimaryKeyPrimaryKeys() []string + func CompositePrimaryKeyWritableColumns() []string + func FereignItemColumns() []string + func FereignItemPrimaryKeys() []string + func FereignItemWritableColumns() []string + func FullTypeColumns() []string + func FullTypePrimaryKeys() []string + func FullTypeWritableColumns() []string + func GeneratedColumnColumns() []string + func GeneratedColumnPrimaryKeys() []string + func GeneratedColumnWritableColumns() []string + func ItemColumns() []string + func ItemPrimaryKeys() []string + func ItemWritableColumns() []string + func MaxLengthColumns() []string + func MaxLengthPrimaryKeys() []string + func MaxLengthWritableColumns() []string + func OutOfOrderPrimaryKeyColumns() []string + func OutOfOrderPrimaryKeyPrimaryKeys() []string + func OutOfOrderPrimaryKeyWritableColumns() []string + func SnakeCaseColumns() []string + func SnakeCasePrimaryKeys() []string + func SnakeCaseWritableColumns() []string + type CompositePrimaryKey struct + Error int64 + ID int64 + PKey1 string + PKey2 int64 + X string + Y string + Z string + func FindCompositePrimaryKey(ctx context.Context, db YORODB, pKey1 string, pKey2 int64) (*CompositePrimaryKey, error) + func FindCompositePrimaryKeysByError(ctx context.Context, db YORODB, e int64) ([]*CompositePrimaryKey, error) + func FindCompositePrimaryKeysByXY(ctx context.Context, db YORODB, x string, y string) ([]*CompositePrimaryKey, error) + func FindCompositePrimaryKeysByZError(ctx context.Context, db YORODB, e int64) ([]*CompositePrimaryKey, error) + func FindCompositePrimaryKeysByZYError(ctx context.Context, db YORODB, e int64) ([]*CompositePrimaryKey, error) + func ReadCompositePrimaryKey(ctx context.Context, db YORODB, keys spanner.KeySet) ([]*CompositePrimaryKey, error) + func ReadCompositePrimaryKeysByError(ctx context.Context, db YORODB, keys spanner.KeySet) ([]*CompositePrimaryKey, error) + func ReadCompositePrimaryKeysByXY(ctx context.Context, db YORODB, keys spanner.KeySet) ([]*CompositePrimaryKey, error) + func ReadCompositePrimaryKeysByZError(ctx context.Context, db YORODB, keys spanner.KeySet) ([]*CompositePrimaryKey, error) + func ReadCompositePrimaryKeysByZYError(ctx context.Context, db YORODB, keys spanner.KeySet) ([]*CompositePrimaryKey, error) + func (cpk *CompositePrimaryKey) Delete(ctx context.Context) *spanner.Mutation + func (cpk *CompositePrimaryKey) Insert(ctx context.Context) *spanner.Mutation + func (cpk *CompositePrimaryKey) InsertOrUpdate(ctx context.Context) *spanner.Mutation + func (cpk *CompositePrimaryKey) Update(ctx context.Context) *spanner.Mutation + func (cpk *CompositePrimaryKey) UpdateColumns(ctx context.Context, cols ...string) (*spanner.Mutation, error) + type FereignItem struct + Category int64 + ID int64 + ItemID int64 + func FindFereignItem(ctx context.Context, db YORODB, id int64) (*FereignItem, error) + func ReadFereignItem(ctx context.Context, db YORODB, keys spanner.KeySet) ([]*FereignItem, error) + func (fi *FereignItem) Delete(ctx context.Context) *spanner.Mutation + func (fi *FereignItem) Insert(ctx context.Context) *spanner.Mutation + func (fi *FereignItem) InsertOrUpdate(ctx context.Context) *spanner.Mutation + func (fi *FereignItem) Update(ctx context.Context) *spanner.Mutation + func (fi *FereignItem) UpdateColumns(ctx context.Context, cols ...string) (*spanner.Mutation, error) + type FullType struct + FTArrayBool []bool + FTArrayBoolNull []bool + FTArrayBytes [][]byte + FTArrayBytesNull [][]byte + FTArrayDate []civil.Date + FTArrayDateNull []civil.Date + FTArrayFloat []float64 + FTArrayFloatNull []float64 + FTArrayInt []int64 + FTArrayIntNull []int64 + FTArrayJSON []spanner.NullJSON + FTArrayJSONNull []spanner.NullJSON + FTArrayString []string + FTArrayStringNull []string + FTArrayTimestamp []time.Time + FTArrayTimestampNull []time.Time + FTBool bool + FTBoolNull spanner.NullBool + FTBytes []byte + FTBytesNull []byte + FTDate civil.Date + FTDateNull spanner.NullDate + FTFloat float64 + FTFloatNull spanner.NullFloat64 + FTInt int64 + FTIntNull spanner.NullInt64 + FTJSON spanner.NullJSON + FTJSONNull spanner.NullJSON + FTString string + FTStringNull spanner.NullString + FTTimestamp time.Time + FTTimestampNull spanner.NullTime + PKey string + func FindFullType(ctx context.Context, db YORODB, pKey string) (*FullType, error) + func FindFullTypeByFTString(ctx context.Context, db YORODB, fTString string) (*FullType, error) + func FindFullTypesByFTIntFTDate(ctx context.Context, db YORODB, fTInt int64, fTDate civil.Date) ([]*FullType, error) + func FindFullTypesByFTIntFTTimestamp(ctx context.Context, db YORODB, fTInt int64, fTTimestamp time.Time) ([]*FullType, error) + func FindFullTypesByFTIntFTTimestampNull(ctx context.Context, db YORODB, fTInt int64, fTTimestampNull spanner.NullTime) ([]*FullType, error) + func FindFullTypesByFTTimestamp(ctx context.Context, db YORODB, fTTimestamp time.Time) ([]*FullType, error) + func ReadFullType(ctx context.Context, db YORODB, keys spanner.KeySet) ([]*FullType, error) + func ReadFullTypeByFTString(ctx context.Context, db YORODB, keys spanner.KeySet) ([]*FullType, error) + func ReadFullTypesByFTIntFTDate(ctx context.Context, db YORODB, keys spanner.KeySet) ([]*FullType, error) + func ReadFullTypesByFTIntFTTimestamp(ctx context.Context, db YORODB, keys spanner.KeySet) ([]*FullType, error) + func ReadFullTypesByFTIntFTTimestampNull(ctx context.Context, db YORODB, keys spanner.KeySet) ([]*FullType, error) + func ReadFullTypesByFTTimestamp(ctx context.Context, db YORODB, keys spanner.KeySet) ([]*FullType, error) + func (ft *FullType) Delete(ctx context.Context) *spanner.Mutation + func (ft *FullType) Insert(ctx context.Context) *spanner.Mutation + func (ft *FullType) InsertOrUpdate(ctx context.Context) *spanner.Mutation + func (ft *FullType) Update(ctx context.Context) *spanner.Mutation + func (ft *FullType) UpdateColumns(ctx context.Context, cols ...string) (*spanner.Mutation, error) + type GeneratedColumn struct + FirstName string + FullName string + ID int64 + LastName string + func FindGeneratedColumn(ctx context.Context, db YORODB, id int64) (*GeneratedColumn, error) + func ReadGeneratedColumn(ctx context.Context, db YORODB, keys spanner.KeySet) ([]*GeneratedColumn, error) + func (gc *GeneratedColumn) Delete(ctx context.Context) *spanner.Mutation + func (gc *GeneratedColumn) Insert(ctx context.Context) *spanner.Mutation + func (gc *GeneratedColumn) InsertOrUpdate(ctx context.Context) *spanner.Mutation + func (gc *GeneratedColumn) Update(ctx context.Context) *spanner.Mutation + func (gc *GeneratedColumn) UpdateColumns(ctx context.Context, cols ...string) (*spanner.Mutation, error) + type Item struct + ID int64 + Price int64 + func FindItem(ctx context.Context, db YORODB, id int64) (*Item, error) + func ReadItem(ctx context.Context, db YORODB, keys spanner.KeySet) ([]*Item, error) + func (i *Item) Delete(ctx context.Context) *spanner.Mutation + func (i *Item) Insert(ctx context.Context) *spanner.Mutation + func (i *Item) InsertOrUpdate(ctx context.Context) *spanner.Mutation + func (i *Item) Update(ctx context.Context) *spanner.Mutation + func (i *Item) UpdateColumns(ctx context.Context, cols ...string) (*spanner.Mutation, error) + type MaxLength struct + MaxBytes []byte + MaxString string + func FindMaxLength(ctx context.Context, db YORODB, maxString string) (*MaxLength, error) + func ReadMaxLength(ctx context.Context, db YORODB, keys spanner.KeySet) ([]*MaxLength, error) + func (ml *MaxLength) Delete(ctx context.Context) *spanner.Mutation + func (ml *MaxLength) Insert(ctx context.Context) *spanner.Mutation + func (ml *MaxLength) InsertOrUpdate(ctx context.Context) *spanner.Mutation + func (ml *MaxLength) Update(ctx context.Context) *spanner.Mutation + func (ml *MaxLength) UpdateColumns(ctx context.Context, cols ...string) (*spanner.Mutation, error) + type OutOfOrderPrimaryKey struct + PKey1 string + PKey2 string + PKey3 string + func (ooopk *OutOfOrderPrimaryKey) Delete(ctx context.Context) *spanner.Mutation + func (ooopk *OutOfOrderPrimaryKey) Insert(ctx context.Context) *spanner.Mutation + type SnakeCase struct + FooBarBaz int64 + ID int64 + StringID string + func FindSnakeCase(ctx context.Context, db YORODB, id int64) (*SnakeCase, error) + func FindSnakeCasesByStringIDFooBarBaz(ctx context.Context, db YORODB, stringID string, fooBarBaz int64) ([]*SnakeCase, error) + func ReadSnakeCase(ctx context.Context, db YORODB, keys spanner.KeySet) ([]*SnakeCase, error) + func ReadSnakeCasesByStringIDFooBarBaz(ctx context.Context, db YORODB, keys spanner.KeySet) ([]*SnakeCase, error) + func (sc *SnakeCase) Delete(ctx context.Context) *spanner.Mutation + func (sc *SnakeCase) Insert(ctx context.Context) *spanner.Mutation + func (sc *SnakeCase) InsertOrUpdate(ctx context.Context) *spanner.Mutation + func (sc *SnakeCase) Update(ctx context.Context) *spanner.Mutation + func (sc *SnakeCase) 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)