Documentation
¶
Index ¶
- Constants
- func DecodeConfig(input any) (database.Dialect, error)
- type Config
- type Pool
- func (p *Pool) Close(ctx context.Context) error
- func (s Pool) IsStatements()
- func (p *Pool) Migrate(ctx context.Context) error
- func (s Pool) NewManagedID(prefix string) (string, error)
- func (p *Pool) Ping(ctx context.Context) error
- func (p *Pool) Statements() service.AllStatements
- func (p *Pool) Transaction(ctx context.Context, ...) error
- type PoolConfig
Constants ¶
View Source
const (
ZIT01 = "ZIT01" // custom error code to express missing permissions by the end-user
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
func (Config) Connect ¶
Connect implements database.Dialect.
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
func (*Pool) Close ¶
Close implements database.Pool.
func (*Pool) Migrate ¶
Migrate implements database.Pool.
func (Pool) NewManagedID ¶
func (*Pool) Statements ¶
func (p *Pool) Statements() service.AllStatements
func (*Pool) Transaction ¶
func (p *Pool) Transaction(ctx context.Context, fn func(ctx context.Context, tx service.Statementer[service.AllStatements]) error) error
Transaction implements database.Pool.
type PoolConfig ¶
func (*PoolConfig) Connect ¶
Connect implements database.Dialect.
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
- compiler.go
- crypto_keys.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
- pool.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.