Documentation ¶
Index ¶
- Constants
- func CalcMutationBatchSize(ctx context.Context, client *spanner.Client, tableName string) (int, error)
- func CountIndexesWithChildren(ctx context.Context, client *spanner.Client, tableName string) (int, error)
- func DecodeToInterface(gcv *spanner.GenericColumnValue, ptr interface{}) error
- type Column
- type CountableKeyRange
- type DSN
- type Index
- type IndexColumn
- type IndexState
- type IndexType
- type Interleave
- type OnDelete
- type Table
Constants ¶
View Source
const ( IndexTypeIndex IndexType = "INDEX" IndexTypePrimaryKey IndexType = "PRIMARY_KEY" IndexStatePrepare IndexState = "PREPARE" IndexStateUnknown IndexState = "" IndexStateWriteOnly IndexState = "WRITE_ONLY" IndexStateWriteOnlyCleanup IndexState = "WRITE_ONLY_CLEANUP" IndexStateWriteOnlyValidateUnique IndexState = "WRITE_ONLY_VALIDATE_UNIQUE" IndexStateReadWrite IndexState = "READ_WRITE" )
Variables ¶
This section is empty.
Functions ¶
func CalcMutationBatchSize ¶
func DecodeToInterface ¶
func DecodeToInterface(gcv *spanner.GenericColumnValue, ptr interface{}) error
Types ¶
type Column ¶
type Column struct { Name string // ORDINAL_POSITION is nullable // https://cloud.google.com/spanner/docs/information-schema#information_schemaindex_columns OrdinalPosition spanner.NullInt64 }
func GetColumns ¶
type CountableKeyRange ¶
type DSN ¶
type DSN string
DSN is name of Cloud Spanner database has the form projects/PROJECT_ID/instances/INSTANCE_ID/databases/DATABASE_ID
func (DSN) DatabaseID ¶
func (DSN) InstanceID ¶
type Index ¶
type Index struct { Name string Type IndexType Table string ParentTable string IsPrimaryKey bool IsUnique bool IsNullFiltered bool State IndexState Columns []*IndexColumn }
func GetSecondaryIndexes ¶
type IndexColumn ¶
type IndexColumn struct {
Column
}
type IndexState ¶
type IndexState string
type Interleave ¶
func GetInterleaveChildren ¶
Click to show internal directories.
Click to hide internal directories.