Documentation
¶
Index ¶
- type ClearStagedVersionParams
- type CreateNamespaceParams
- type CreateSchemaParams
- type DBTX
- type GetBlobParams
- type GetBlobsByHashesParams
- type GetDependentsParams
- type GetDependentsRow
- type GetSchemaForUpdateParams
- type GetSchemaParams
- type GetVersionDepsParams
- type GetVersionFilesParams
- type GetVersionParams
- type InsertVersionDepParams
- type InsertVersionFileParams
- type InsertVersionParams
- type ListNamespacesPageParams
- type ListSchemasPageParams
- type ListVersionsParams
- type LoadAllCurrentRow
- type LoadNamespaceCurrentRow
- type LoadNamespaceProposedRow
- type Namespace
- type PromoteAllStagedRow
- type ProtoBlob
- type PutBlobParams
- type Queries
- func (q *Queries) ClearStagedVersion(ctx context.Context, arg ClearStagedVersionParams) error
- func (q *Queries) CreateNamespace(ctx context.Context, arg CreateNamespaceParams) error
- func (q *Queries) CreateSchema(ctx context.Context, arg CreateSchemaParams) error
- func (q *Queries) DiscardAllStaged(ctx context.Context, namespaceID string) error
- func (q *Queries) GetBlob(ctx context.Context, arg GetBlobParams) (ProtoBlob, error)
- func (q *Queries) GetBlobsByHashes(ctx context.Context, arg GetBlobsByHashesParams) ([]ProtoBlob, error)
- func (q *Queries) GetDependents(ctx context.Context, arg GetDependentsParams) ([]GetDependentsRow, error)
- func (q *Queries) GetNamespace(ctx context.Context, id string) (Namespace, error)
- func (q *Queries) GetSchema(ctx context.Context, arg GetSchemaParams) (Schema, error)
- func (q *Queries) GetSchemaForUpdate(ctx context.Context, arg GetSchemaForUpdateParams) (Schema, error)
- func (q *Queries) GetStagedSchemas(ctx context.Context, namespaceID string) ([]Schema, error)
- func (q *Queries) GetVersion(ctx context.Context, arg GetVersionParams) (SchemaVersion, error)
- func (q *Queries) GetVersionDeps(ctx context.Context, arg GetVersionDepsParams) ([]SchemaVersionDep, error)
- func (q *Queries) GetVersionFiles(ctx context.Context, arg GetVersionFilesParams) ([]SchemaVersionFile, error)
- func (q *Queries) InsertVersion(ctx context.Context, arg InsertVersionParams) error
- func (q *Queries) InsertVersionDep(ctx context.Context, arg InsertVersionDepParams) error
- func (q *Queries) InsertVersionFile(ctx context.Context, arg InsertVersionFileParams) error
- func (q *Queries) ListNamespaces(ctx context.Context) ([]Namespace, error)
- func (q *Queries) ListNamespacesPage(ctx context.Context, arg ListNamespacesPageParams) ([]Namespace, error)
- func (q *Queries) ListSchemas(ctx context.Context, namespaceID string) ([]Schema, error)
- func (q *Queries) ListSchemasPage(ctx context.Context, arg ListSchemasPageParams) ([]Schema, error)
- func (q *Queries) ListVersions(ctx context.Context, arg ListVersionsParams) ([]int64, error)
- func (q *Queries) LoadAllCurrent(ctx context.Context) ([]LoadAllCurrentRow, error)
- func (q *Queries) LoadNamespaceCurrent(ctx context.Context, namespaceID string) ([]LoadNamespaceCurrentRow, error)
- func (q *Queries) LoadNamespaceProposed(ctx context.Context, namespaceID string) ([]LoadNamespaceProposedRow, error)
- func (q *Queries) PromoteAllStaged(ctx context.Context, namespaceID string) ([]PromoteAllStagedRow, error)
- func (q *Queries) PutBlob(ctx context.Context, arg PutBlobParams) error
- func (q *Queries) SetCurrentVersion(ctx context.Context, arg SetCurrentVersionParams) error
- func (q *Queries) SetStagedVersion(ctx context.Context, arg SetStagedVersionParams) error
- func (q *Queries) SoftDeleteNamespace(ctx context.Context, id string) error
- func (q *Queries) SoftDeleteSchema(ctx context.Context, arg SoftDeleteSchemaParams) error
- func (q *Queries) SoftDeleteVersion(ctx context.Context, arg SoftDeleteVersionParams) error
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type Schema
- type SchemaVersion
- type SchemaVersionDep
- type SchemaVersionFile
- type SetCurrentVersionParams
- type SetStagedVersionParams
- type SoftDeleteSchemaParams
- type SoftDeleteVersionParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateNamespaceParams ¶
type CreateSchemaParams ¶
type GetBlobParams ¶
type GetBlobsByHashesParams ¶
type GetDependentsParams ¶
type GetDependentsRow ¶
type GetSchemaParams ¶
type GetVersionDepsParams ¶
type GetVersionFilesParams ¶
type GetVersionParams ¶
type InsertVersionDepParams ¶
type InsertVersionFileParams ¶
type InsertVersionParams ¶
type ListSchemasPageParams ¶
type ListVersionsParams ¶
type LoadAllCurrentRow ¶
type LoadNamespaceCurrentRow ¶
type LoadNamespaceCurrentRow struct {
NamespaceID string `json:"namespace_id"`
SchemaID string `json:"schema_id"`
Version int64 `json:"version"`
Compiled []byte `json:"compiled"`
CompilerVersion string `json:"compiler_version"`
Filename string `json:"filename"`
BlobSha256 string `json:"blob_sha256"`
}
type LoadNamespaceProposedRow ¶
type LoadNamespaceProposedRow struct {
NamespaceID string `json:"namespace_id"`
SchemaID string `json:"schema_id"`
Version int64 `json:"version"`
Compiled []byte `json:"compiled"`
CompilerVersion string `json:"compiler_version"`
Filename string `json:"filename"`
BlobSha256 string `json:"blob_sha256"`
}
type PromoteAllStagedRow ¶
type PutBlobParams ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) ClearStagedVersion ¶
func (q *Queries) ClearStagedVersion(ctx context.Context, arg ClearStagedVersionParams) error
func (*Queries) CreateNamespace ¶
func (q *Queries) CreateNamespace(ctx context.Context, arg CreateNamespaceParams) error
func (*Queries) CreateSchema ¶
func (q *Queries) CreateSchema(ctx context.Context, arg CreateSchemaParams) error
func (*Queries) DiscardAllStaged ¶
func (*Queries) GetBlobsByHashes ¶
func (*Queries) GetDependents ¶
func (q *Queries) GetDependents(ctx context.Context, arg GetDependentsParams) ([]GetDependentsRow, error)
func (*Queries) GetNamespace ¶
func (*Queries) GetSchemaForUpdate ¶
func (*Queries) GetStagedSchemas ¶
func (*Queries) GetVersion ¶
func (q *Queries) GetVersion(ctx context.Context, arg GetVersionParams) (SchemaVersion, error)
func (*Queries) GetVersionDeps ¶
func (q *Queries) GetVersionDeps(ctx context.Context, arg GetVersionDepsParams) ([]SchemaVersionDep, error)
func (*Queries) GetVersionFiles ¶
func (q *Queries) GetVersionFiles(ctx context.Context, arg GetVersionFilesParams) ([]SchemaVersionFile, error)
func (*Queries) InsertVersion ¶
func (q *Queries) InsertVersion(ctx context.Context, arg InsertVersionParams) error
func (*Queries) InsertVersionDep ¶
func (q *Queries) InsertVersionDep(ctx context.Context, arg InsertVersionDepParams) error
func (*Queries) InsertVersionFile ¶
func (q *Queries) InsertVersionFile(ctx context.Context, arg InsertVersionFileParams) error
func (*Queries) ListNamespaces ¶
func (*Queries) ListNamespacesPage ¶
func (q *Queries) ListNamespacesPage(ctx context.Context, arg ListNamespacesPageParams) ([]Namespace, error)
ListNamespacesPage returns at most $2 namespaces whose id is strictly greater than $1, ordered by id. Pass an empty string for $1 to start at the beginning. Keyset pagination: stable under concurrent inserts/deletes.
func (*Queries) ListSchemas ¶
func (*Queries) ListSchemasPage ¶
ListSchemasPage is the keyset-paginated variant. Returns at most $3 schemas in the namespace whose schema_id is strictly greater than $2, ordered by schema_id. Pass an empty string for $2 to start at the beginning.
func (*Queries) ListVersions ¶
func (*Queries) LoadAllCurrent ¶
func (q *Queries) LoadAllCurrent(ctx context.Context) ([]LoadAllCurrentRow, error)
func (*Queries) LoadNamespaceCurrent ¶
func (*Queries) LoadNamespaceProposed ¶
func (*Queries) PromoteAllStaged ¶
func (*Queries) SetCurrentVersion ¶
func (q *Queries) SetCurrentVersion(ctx context.Context, arg SetCurrentVersionParams) error
func (*Queries) SetStagedVersion ¶
func (q *Queries) SetStagedVersion(ctx context.Context, arg SetStagedVersionParams) error
func (*Queries) SoftDeleteNamespace ¶
func (*Queries) SoftDeleteSchema ¶
func (q *Queries) SoftDeleteSchema(ctx context.Context, arg SoftDeleteSchemaParams) error
func (*Queries) SoftDeleteVersion ¶
func (q *Queries) SoftDeleteVersion(ctx context.Context, arg SoftDeleteVersionParams) error
type Schema ¶
type Schema struct {
NamespaceID string `json:"namespace_id"`
SchemaID string `json:"schema_id"`
CurrentVersion pgtype.Int8 `json:"current_version"`
StagedVersion pgtype.Int8 `json:"staged_version"`
CreatedAt time.Time `json:"created_at"`
DeletedAt pgtype.Timestamptz `json:"deleted_at"`
Metadata []byte `json:"metadata"`
}
type SchemaVersion ¶
type SchemaVersion struct {
NamespaceID string `json:"namespace_id"`
SchemaID string `json:"schema_id"`
Version int64 `json:"version"`
Compiled []byte `json:"compiled"`
CompilerVersion string `json:"compiler_version"`
CreatedAt time.Time `json:"created_at"`
CreatedBy string `json:"created_by"`
DeletedAt pgtype.Timestamptz `json:"deleted_at"`
Metadata []byte `json:"metadata"`
}
type SchemaVersionDep ¶
type SchemaVersionFile ¶
type SetCurrentVersionParams ¶
type SetStagedVersionParams ¶
type SoftDeleteSchemaParams ¶
type SoftDeleteVersionParams ¶
Click to show internal directories.
Click to hide internal directories.