Documentation
¶
Index ¶
- func DecodeConfig(input any) (database.Dialect, error)
- type Client
- func (c *Client) Close(ctx context.Context) error
- func (s Client) IsStatements()
- func (c *Client) Migrate(_ context.Context) error
- func (s Client) NewManagedID(prefix string) (string, error)
- func (c Client) Ping(ctx context.Context) error
- func (c Client) Statements() service.AllStatements
- func (c Client) Transaction(ctx context.Context, ...) error
- type Dialect
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Close ¶
Close implements database.Pool.
func (Client) IsStatements ¶
func (s Client) IsStatements()
IsStatements implements service.Statements.
func (*Client) Migrate ¶
Migrate implements database.Pool but is unavailable without the spanner_integration build tag.
func (Client) NewManagedID ¶
func (Client) Statements ¶
func (c Client) Statements() service.AllStatements
func (Client) Transaction ¶
func (c Client) Transaction(ctx context.Context, fn func(ctx context.Context, tx service.Statementer[service.AllStatements]) error) error
Transaction implements service.Transactioner.
Spanner ReadWriteTransaction automatically retries aborted transactions, for as long as ctx allows. [runBounded] supplies a default deadline so a conflict loop fails fast instead of spinning forever.
Source Files
¶
- auth_attempt.go
- authz_assignment.go
- authz_catalog.go
- authz_list_predicate.go
- authz_membership_edge.go
- authz_resolver.go
- branding.go
- claim.go
- client.go
- compiler.go
- crypto_keys.go
- db.go
- deployment.go
- dialect.go
- environment.go
- error.go
- event.go
- flow_definition.go
- idp_connection.go
- idp_identity_link.go
- json_schema.go
- managed_id.go
- migrate_disabled.go
- null_json.go
- project.go
- release.go
- resource_scope_index.go
- session.go
- statement.go
- team.go
- team_membership.go
- token.go
- tx.go
- user.go
- user_passkey.go
- user_password.go
- user_recovery_codes.go
- user_totp.go
- variable.go
- with_transaction.go
Click to show internal directories.
Click to hide internal directories.