pggen

package
v0.0.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2022 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrepareAllQueries

func PrepareAllQueries(ctx context.Context, p preparer) error

PrepareAllQueries executes a PREPARE statement for all pggen generated SQL queries in querier files. Typical usage is as the AfterConnect callback for pgxpool.Config

pgx will use the prepared statement if available. Calling PrepareAllQueries is an optional optimization to avoid a network round-trip the first time pgx runs a query if pgx statement caching is enabled.

Types

type ConfigurationVersionStatusTimestamps

type ConfigurationVersionStatusTimestamps struct {
	ConfigurationVersionID pgtype.Text        `json:"configuration_version_id"`
	Status                 pgtype.Text        `json:"status"`
	Timestamp              pgtype.Timestamptz `json:"timestamp"`
}

ConfigurationVersionStatusTimestamps represents the Postgres composite type "configuration_version_status_timestamps".

type CountRunsParams

type CountRunsParams struct {
	OrganizationNames []string
	WorkspaceIds      []string
	WorkspaceNames    []string
	Statuses          []string
	Speculative       []string
}

type DBQuerier

type DBQuerier struct {
	// contains filtered or unexported fields
}

func NewQuerier

func NewQuerier(conn genericConn) *DBQuerier

NewQuerier creates a DBQuerier that implements Querier. conn is typically *pgx.Conn, pgx.Tx, or *pgxpool.Pool.

func NewQuerierConfig

func NewQuerierConfig(conn genericConn, cfg QuerierConfig) *DBQuerier

NewQuerierConfig creates a DBQuerier that implements Querier with the given config. conn is typically *pgx.Conn, pgx.Tx, or *pgxpool.Pool.

func (*DBQuerier) CountConfigurationVersionsByWorkspaceID

func (q *DBQuerier) CountConfigurationVersionsByWorkspaceID(ctx context.Context, workspaceID pgtype.Text) (*int, error)

CountConfigurationVersionsByWorkspaceID implements Querier.CountConfigurationVersionsByWorkspaceID.

func (*DBQuerier) CountConfigurationVersionsByWorkspaceIDBatch

func (q *DBQuerier) CountConfigurationVersionsByWorkspaceIDBatch(batch genericBatch, workspaceID pgtype.Text)

CountConfigurationVersionsByWorkspaceIDBatch implements Querier.CountConfigurationVersionsByWorkspaceIDBatch.

func (*DBQuerier) CountConfigurationVersionsByWorkspaceIDScan

func (q *DBQuerier) CountConfigurationVersionsByWorkspaceIDScan(results pgx.BatchResults) (*int, error)

CountConfigurationVersionsByWorkspaceIDScan implements Querier.CountConfigurationVersionsByWorkspaceIDScan.

func (*DBQuerier) CountOrganizations

func (q *DBQuerier) CountOrganizations(ctx context.Context) (*int, error)

CountOrganizations implements Querier.CountOrganizations.

func (*DBQuerier) CountOrganizationsBatch

func (q *DBQuerier) CountOrganizationsBatch(batch genericBatch)

CountOrganizationsBatch implements Querier.CountOrganizationsBatch.

func (*DBQuerier) CountOrganizationsScan

func (q *DBQuerier) CountOrganizationsScan(results pgx.BatchResults) (*int, error)

CountOrganizationsScan implements Querier.CountOrganizationsScan.

func (*DBQuerier) CountRuns

func (q *DBQuerier) CountRuns(ctx context.Context, params CountRunsParams) (*int, error)

CountRuns implements Querier.CountRuns.

func (*DBQuerier) CountRunsBatch

func (q *DBQuerier) CountRunsBatch(batch genericBatch, params CountRunsParams)

CountRunsBatch implements Querier.CountRunsBatch.

func (*DBQuerier) CountRunsScan

func (q *DBQuerier) CountRunsScan(results pgx.BatchResults) (*int, error)

CountRunsScan implements Querier.CountRunsScan.

func (*DBQuerier) CountStateVersionsByWorkspaceName

func (q *DBQuerier) CountStateVersionsByWorkspaceName(ctx context.Context, workspaceName pgtype.Text, organizationName pgtype.Text) (*int, error)

CountStateVersionsByWorkspaceName implements Querier.CountStateVersionsByWorkspaceName.

func (*DBQuerier) CountStateVersionsByWorkspaceNameBatch

func (q *DBQuerier) CountStateVersionsByWorkspaceNameBatch(batch genericBatch, workspaceName pgtype.Text, organizationName pgtype.Text)

CountStateVersionsByWorkspaceNameBatch implements Querier.CountStateVersionsByWorkspaceNameBatch.

func (*DBQuerier) CountStateVersionsByWorkspaceNameScan

func (q *DBQuerier) CountStateVersionsByWorkspaceNameScan(results pgx.BatchResults) (*int, error)

CountStateVersionsByWorkspaceNameScan implements Querier.CountStateVersionsByWorkspaceNameScan.

func (*DBQuerier) CountWorkspaces

func (q *DBQuerier) CountWorkspaces(ctx context.Context, prefix pgtype.Text, organizationNames []string) (*int, error)

CountWorkspaces implements Querier.CountWorkspaces.

func (*DBQuerier) CountWorkspacesBatch

func (q *DBQuerier) CountWorkspacesBatch(batch genericBatch, prefix pgtype.Text, organizationNames []string)

CountWorkspacesBatch implements Querier.CountWorkspacesBatch.

func (*DBQuerier) CountWorkspacesByUserID

func (q *DBQuerier) CountWorkspacesByUserID(ctx context.Context, organizationName pgtype.Text, userID pgtype.Text) (*int, error)

CountWorkspacesByUserID implements Querier.CountWorkspacesByUserID.

func (*DBQuerier) CountWorkspacesByUserIDBatch

func (q *DBQuerier) CountWorkspacesByUserIDBatch(batch genericBatch, organizationName pgtype.Text, userID pgtype.Text)

CountWorkspacesByUserIDBatch implements Querier.CountWorkspacesByUserIDBatch.

func (*DBQuerier) CountWorkspacesByUserIDScan

func (q *DBQuerier) CountWorkspacesByUserIDScan(results pgx.BatchResults) (*int, error)

CountWorkspacesByUserIDScan implements Querier.CountWorkspacesByUserIDScan.

func (*DBQuerier) CountWorkspacesScan

func (q *DBQuerier) CountWorkspacesScan(results pgx.BatchResults) (*int, error)

CountWorkspacesScan implements Querier.CountWorkspacesScan.

func (*DBQuerier) DeleteAgentTokenByID

func (q *DBQuerier) DeleteAgentTokenByID(ctx context.Context, tokenID pgtype.Text) (pgtype.Text, error)

DeleteAgentTokenByID implements Querier.DeleteAgentTokenByID.

func (*DBQuerier) DeleteAgentTokenByIDBatch

func (q *DBQuerier) DeleteAgentTokenByIDBatch(batch genericBatch, tokenID pgtype.Text)

DeleteAgentTokenByIDBatch implements Querier.DeleteAgentTokenByIDBatch.

func (*DBQuerier) DeleteAgentTokenByIDScan

func (q *DBQuerier) DeleteAgentTokenByIDScan(results pgx.BatchResults) (pgtype.Text, error)

DeleteAgentTokenByIDScan implements Querier.DeleteAgentTokenByIDScan.

func (*DBQuerier) DeleteConfigurationVersionByID

func (q *DBQuerier) DeleteConfigurationVersionByID(ctx context.Context, id pgtype.Text) (pgtype.Text, error)

DeleteConfigurationVersionByID implements Querier.DeleteConfigurationVersionByID.

func (*DBQuerier) DeleteConfigurationVersionByIDBatch

func (q *DBQuerier) DeleteConfigurationVersionByIDBatch(batch genericBatch, id pgtype.Text)

DeleteConfigurationVersionByIDBatch implements Querier.DeleteConfigurationVersionByIDBatch.

func (*DBQuerier) DeleteConfigurationVersionByIDScan

func (q *DBQuerier) DeleteConfigurationVersionByIDScan(results pgx.BatchResults) (pgtype.Text, error)

DeleteConfigurationVersionByIDScan implements Querier.DeleteConfigurationVersionByIDScan.

func (*DBQuerier) DeleteOrganization

func (q *DBQuerier) DeleteOrganization(ctx context.Context, name pgtype.Text) (pgtype.Text, error)

DeleteOrganization implements Querier.DeleteOrganization.

func (*DBQuerier) DeleteOrganizationBatch

func (q *DBQuerier) DeleteOrganizationBatch(batch genericBatch, name pgtype.Text)

DeleteOrganizationBatch implements Querier.DeleteOrganizationBatch.

func (*DBQuerier) DeleteOrganizationMembership

func (q *DBQuerier) DeleteOrganizationMembership(ctx context.Context, userID pgtype.Text, organizationID pgtype.Text) (pgtype.Text, error)

DeleteOrganizationMembership implements Querier.DeleteOrganizationMembership.

func (*DBQuerier) DeleteOrganizationMembershipBatch

func (q *DBQuerier) DeleteOrganizationMembershipBatch(batch genericBatch, userID pgtype.Text, organizationID pgtype.Text)

DeleteOrganizationMembershipBatch implements Querier.DeleteOrganizationMembershipBatch.

func (*DBQuerier) DeleteOrganizationMembershipScan

func (q *DBQuerier) DeleteOrganizationMembershipScan(results pgx.BatchResults) (pgtype.Text, error)

DeleteOrganizationMembershipScan implements Querier.DeleteOrganizationMembershipScan.

func (*DBQuerier) DeleteOrganizationScan

func (q *DBQuerier) DeleteOrganizationScan(results pgx.BatchResults) (pgtype.Text, error)

DeleteOrganizationScan implements Querier.DeleteOrganizationScan.

func (*DBQuerier) DeleteRunByID

func (q *DBQuerier) DeleteRunByID(ctx context.Context, runID pgtype.Text) (pgtype.Text, error)

DeleteRunByID implements Querier.DeleteRunByID.

func (*DBQuerier) DeleteRunByIDBatch

func (q *DBQuerier) DeleteRunByIDBatch(batch genericBatch, runID pgtype.Text)

DeleteRunByIDBatch implements Querier.DeleteRunByIDBatch.

func (*DBQuerier) DeleteRunByIDScan

func (q *DBQuerier) DeleteRunByIDScan(results pgx.BatchResults) (pgtype.Text, error)

DeleteRunByIDScan implements Querier.DeleteRunByIDScan.

func (*DBQuerier) DeleteSessionByToken

func (q *DBQuerier) DeleteSessionByToken(ctx context.Context, token pgtype.Text) (pgtype.Text, error)

DeleteSessionByToken implements Querier.DeleteSessionByToken.

func (*DBQuerier) DeleteSessionByTokenBatch

func (q *DBQuerier) DeleteSessionByTokenBatch(batch genericBatch, token pgtype.Text)

DeleteSessionByTokenBatch implements Querier.DeleteSessionByTokenBatch.

func (*DBQuerier) DeleteSessionByTokenScan

func (q *DBQuerier) DeleteSessionByTokenScan(results pgx.BatchResults) (pgtype.Text, error)

DeleteSessionByTokenScan implements Querier.DeleteSessionByTokenScan.

func (*DBQuerier) DeleteSessionsExpired

func (q *DBQuerier) DeleteSessionsExpired(ctx context.Context) (pgtype.Text, error)

DeleteSessionsExpired implements Querier.DeleteSessionsExpired.

func (*DBQuerier) DeleteSessionsExpiredBatch

func (q *DBQuerier) DeleteSessionsExpiredBatch(batch genericBatch)

DeleteSessionsExpiredBatch implements Querier.DeleteSessionsExpiredBatch.

func (*DBQuerier) DeleteSessionsExpiredScan

func (q *DBQuerier) DeleteSessionsExpiredScan(results pgx.BatchResults) (pgtype.Text, error)

DeleteSessionsExpiredScan implements Querier.DeleteSessionsExpiredScan.

func (*DBQuerier) DeleteStateVersionByID

func (q *DBQuerier) DeleteStateVersionByID(ctx context.Context, stateVersionID pgtype.Text) (pgtype.Text, error)

DeleteStateVersionByID implements Querier.DeleteStateVersionByID.

func (*DBQuerier) DeleteStateVersionByIDBatch

func (q *DBQuerier) DeleteStateVersionByIDBatch(batch genericBatch, stateVersionID pgtype.Text)

DeleteStateVersionByIDBatch implements Querier.DeleteStateVersionByIDBatch.

func (*DBQuerier) DeleteStateVersionByIDScan

func (q *DBQuerier) DeleteStateVersionByIDScan(results pgx.BatchResults) (pgtype.Text, error)

DeleteStateVersionByIDScan implements Querier.DeleteStateVersionByIDScan.

func (*DBQuerier) DeleteTeamByName

func (q *DBQuerier) DeleteTeamByName(ctx context.Context, name pgtype.Text, organizationName pgtype.Text) (pgtype.Text, error)

DeleteTeamByName implements Querier.DeleteTeamByName.

func (*DBQuerier) DeleteTeamByNameBatch

func (q *DBQuerier) DeleteTeamByNameBatch(batch genericBatch, name pgtype.Text, organizationName pgtype.Text)

DeleteTeamByNameBatch implements Querier.DeleteTeamByNameBatch.

func (*DBQuerier) DeleteTeamByNameScan

func (q *DBQuerier) DeleteTeamByNameScan(results pgx.BatchResults) (pgtype.Text, error)

DeleteTeamByNameScan implements Querier.DeleteTeamByNameScan.

func (*DBQuerier) DeleteTeamMembership

func (q *DBQuerier) DeleteTeamMembership(ctx context.Context, userID pgtype.Text, teamID pgtype.Text) (pgtype.Text, error)

DeleteTeamMembership implements Querier.DeleteTeamMembership.

func (*DBQuerier) DeleteTeamMembershipBatch

func (q *DBQuerier) DeleteTeamMembershipBatch(batch genericBatch, userID pgtype.Text, teamID pgtype.Text)

DeleteTeamMembershipBatch implements Querier.DeleteTeamMembershipBatch.

func (*DBQuerier) DeleteTeamMembershipScan

func (q *DBQuerier) DeleteTeamMembershipScan(results pgx.BatchResults) (pgtype.Text, error)

DeleteTeamMembershipScan implements Querier.DeleteTeamMembershipScan.

func (*DBQuerier) DeleteTokenByID

func (q *DBQuerier) DeleteTokenByID(ctx context.Context, tokenID pgtype.Text) (pgtype.Text, error)

DeleteTokenByID implements Querier.DeleteTokenByID.

func (*DBQuerier) DeleteTokenByIDBatch

func (q *DBQuerier) DeleteTokenByIDBatch(batch genericBatch, tokenID pgtype.Text)

DeleteTokenByIDBatch implements Querier.DeleteTokenByIDBatch.

func (*DBQuerier) DeleteTokenByIDScan

func (q *DBQuerier) DeleteTokenByIDScan(results pgx.BatchResults) (pgtype.Text, error)

DeleteTokenByIDScan implements Querier.DeleteTokenByIDScan.

func (*DBQuerier) DeleteUserByID

func (q *DBQuerier) DeleteUserByID(ctx context.Context, userID pgtype.Text) (pgtype.Text, error)

DeleteUserByID implements Querier.DeleteUserByID.

func (*DBQuerier) DeleteUserByIDBatch

func (q *DBQuerier) DeleteUserByIDBatch(batch genericBatch, userID pgtype.Text)

DeleteUserByIDBatch implements Querier.DeleteUserByIDBatch.

func (*DBQuerier) DeleteUserByIDScan

func (q *DBQuerier) DeleteUserByIDScan(results pgx.BatchResults) (pgtype.Text, error)

DeleteUserByIDScan implements Querier.DeleteUserByIDScan.

func (*DBQuerier) DeleteUserByUsername

func (q *DBQuerier) DeleteUserByUsername(ctx context.Context, username pgtype.Text) (pgtype.Text, error)

DeleteUserByUsername implements Querier.DeleteUserByUsername.

func (*DBQuerier) DeleteUserByUsernameBatch

func (q *DBQuerier) DeleteUserByUsernameBatch(batch genericBatch, username pgtype.Text)

DeleteUserByUsernameBatch implements Querier.DeleteUserByUsernameBatch.

func (*DBQuerier) DeleteUserByUsernameScan

func (q *DBQuerier) DeleteUserByUsernameScan(results pgx.BatchResults) (pgtype.Text, error)

DeleteUserByUsernameScan implements Querier.DeleteUserByUsernameScan.

func (*DBQuerier) DeleteVCSProviderByID added in v0.0.16

func (q *DBQuerier) DeleteVCSProviderByID(ctx context.Context, vcsProviderID pgtype.Text) (pgtype.Text, error)

DeleteVCSProviderByID implements Querier.DeleteVCSProviderByID.

func (*DBQuerier) DeleteVCSProviderByIDBatch added in v0.0.16

func (q *DBQuerier) DeleteVCSProviderByIDBatch(batch genericBatch, vcsProviderID pgtype.Text)

DeleteVCSProviderByIDBatch implements Querier.DeleteVCSProviderByIDBatch.

func (*DBQuerier) DeleteVCSProviderByIDScan added in v0.0.16

func (q *DBQuerier) DeleteVCSProviderByIDScan(results pgx.BatchResults) (pgtype.Text, error)

DeleteVCSProviderByIDScan implements Querier.DeleteVCSProviderByIDScan.

func (*DBQuerier) DeleteVCSRepo added in v0.0.16

func (q *DBQuerier) DeleteVCSRepo(ctx context.Context, workspaceID pgtype.Text) (pgconn.CommandTag, error)

DeleteVCSRepo implements Querier.DeleteVCSRepo.

func (*DBQuerier) DeleteVCSRepoBatch added in v0.0.16

func (q *DBQuerier) DeleteVCSRepoBatch(batch genericBatch, workspaceID pgtype.Text)

DeleteVCSRepoBatch implements Querier.DeleteVCSRepoBatch.

func (*DBQuerier) DeleteVCSRepoScan added in v0.0.16

func (q *DBQuerier) DeleteVCSRepoScan(results pgx.BatchResults) (pgconn.CommandTag, error)

DeleteVCSRepoScan implements Querier.DeleteVCSRepoScan.

func (*DBQuerier) DeleteWorkspaceByID

func (q *DBQuerier) DeleteWorkspaceByID(ctx context.Context, workspaceID pgtype.Text) (pgconn.CommandTag, error)

DeleteWorkspaceByID implements Querier.DeleteWorkspaceByID.

func (*DBQuerier) DeleteWorkspaceByIDBatch

func (q *DBQuerier) DeleteWorkspaceByIDBatch(batch genericBatch, workspaceID pgtype.Text)

DeleteWorkspaceByIDBatch implements Querier.DeleteWorkspaceByIDBatch.

func (*DBQuerier) DeleteWorkspaceByIDScan

func (q *DBQuerier) DeleteWorkspaceByIDScan(results pgx.BatchResults) (pgconn.CommandTag, error)

DeleteWorkspaceByIDScan implements Querier.DeleteWorkspaceByIDScan.

func (*DBQuerier) DeleteWorkspaceByName

func (q *DBQuerier) DeleteWorkspaceByName(ctx context.Context, name pgtype.Text, organizationName pgtype.Text) (pgconn.CommandTag, error)

DeleteWorkspaceByName implements Querier.DeleteWorkspaceByName.

func (*DBQuerier) DeleteWorkspaceByNameBatch

func (q *DBQuerier) DeleteWorkspaceByNameBatch(batch genericBatch, name pgtype.Text, organizationName pgtype.Text)

DeleteWorkspaceByNameBatch implements Querier.DeleteWorkspaceByNameBatch.

func (*DBQuerier) DeleteWorkspaceByNameScan

func (q *DBQuerier) DeleteWorkspaceByNameScan(results pgx.BatchResults) (pgconn.CommandTag, error)

DeleteWorkspaceByNameScan implements Querier.DeleteWorkspaceByNameScan.

func (*DBQuerier) DeleteWorkspaceLock

func (q *DBQuerier) DeleteWorkspaceLock(ctx context.Context, workspaceID string) (string, error)

DeleteWorkspaceLock implements Querier.DeleteWorkspaceLock.

func (*DBQuerier) DeleteWorkspaceLockBatch

func (q *DBQuerier) DeleteWorkspaceLockBatch(batch genericBatch, workspaceID string)

DeleteWorkspaceLockBatch implements Querier.DeleteWorkspaceLockBatch.

func (*DBQuerier) DeleteWorkspaceLockScan

func (q *DBQuerier) DeleteWorkspaceLockScan(results pgx.BatchResults) (string, error)

DeleteWorkspaceLockScan implements Querier.DeleteWorkspaceLockScan.

func (*DBQuerier) DeleteWorkspacePermissionByID

func (q *DBQuerier) DeleteWorkspacePermissionByID(ctx context.Context, workspaceID pgtype.Text, teamName pgtype.Text) (pgconn.CommandTag, error)

DeleteWorkspacePermissionByID implements Querier.DeleteWorkspacePermissionByID.

func (*DBQuerier) DeleteWorkspacePermissionByIDBatch

func (q *DBQuerier) DeleteWorkspacePermissionByIDBatch(batch genericBatch, workspaceID pgtype.Text, teamName pgtype.Text)

DeleteWorkspacePermissionByIDBatch implements Querier.DeleteWorkspacePermissionByIDBatch.

func (*DBQuerier) DeleteWorkspacePermissionByIDScan

func (q *DBQuerier) DeleteWorkspacePermissionByIDScan(results pgx.BatchResults) (pgconn.CommandTag, error)

DeleteWorkspacePermissionByIDScan implements Querier.DeleteWorkspacePermissionByIDScan.

func (*DBQuerier) DeleteWorkspacePermissionByName

func (q *DBQuerier) DeleteWorkspacePermissionByName(ctx context.Context, params DeleteWorkspacePermissionByNameParams) (pgconn.CommandTag, error)

DeleteWorkspacePermissionByName implements Querier.DeleteWorkspacePermissionByName.

func (*DBQuerier) DeleteWorkspacePermissionByNameBatch

func (q *DBQuerier) DeleteWorkspacePermissionByNameBatch(batch genericBatch, params DeleteWorkspacePermissionByNameParams)

DeleteWorkspacePermissionByNameBatch implements Querier.DeleteWorkspacePermissionByNameBatch.

func (*DBQuerier) DeleteWorkspacePermissionByNameScan

func (q *DBQuerier) DeleteWorkspacePermissionByNameScan(results pgx.BatchResults) (pgconn.CommandTag, error)

DeleteWorkspacePermissionByNameScan implements Querier.DeleteWorkspacePermissionByNameScan.

func (*DBQuerier) DownloadConfigurationVersion

func (q *DBQuerier) DownloadConfigurationVersion(ctx context.Context, configurationVersionID pgtype.Text) ([]byte, error)

DownloadConfigurationVersion implements Querier.DownloadConfigurationVersion.

func (*DBQuerier) DownloadConfigurationVersionBatch

func (q *DBQuerier) DownloadConfigurationVersionBatch(batch genericBatch, configurationVersionID pgtype.Text)

DownloadConfigurationVersionBatch implements Querier.DownloadConfigurationVersionBatch.

func (*DBQuerier) DownloadConfigurationVersionScan

func (q *DBQuerier) DownloadConfigurationVersionScan(results pgx.BatchResults) ([]byte, error)

DownloadConfigurationVersionScan implements Querier.DownloadConfigurationVersionScan.

func (*DBQuerier) FindAgentToken

func (q *DBQuerier) FindAgentToken(ctx context.Context, token pgtype.Text) (FindAgentTokenRow, error)

FindAgentToken implements Querier.FindAgentToken.

func (*DBQuerier) FindAgentTokenBatch

func (q *DBQuerier) FindAgentTokenBatch(batch genericBatch, token pgtype.Text)

FindAgentTokenBatch implements Querier.FindAgentTokenBatch.

func (*DBQuerier) FindAgentTokenScan

func (q *DBQuerier) FindAgentTokenScan(results pgx.BatchResults) (FindAgentTokenRow, error)

FindAgentTokenScan implements Querier.FindAgentTokenScan.

func (*DBQuerier) FindAgentTokens

func (q *DBQuerier) FindAgentTokens(ctx context.Context, organizationName pgtype.Text) ([]FindAgentTokensRow, error)

FindAgentTokens implements Querier.FindAgentTokens.

func (*DBQuerier) FindAgentTokensBatch

func (q *DBQuerier) FindAgentTokensBatch(batch genericBatch, organizationName pgtype.Text)

FindAgentTokensBatch implements Querier.FindAgentTokensBatch.

func (*DBQuerier) FindAgentTokensScan

func (q *DBQuerier) FindAgentTokensScan(results pgx.BatchResults) ([]FindAgentTokensRow, error)

FindAgentTokensScan implements Querier.FindAgentTokensScan.

func (*DBQuerier) FindConfigurationVersionByID

func (q *DBQuerier) FindConfigurationVersionByID(ctx context.Context, configurationVersionID pgtype.Text) (FindConfigurationVersionByIDRow, error)

FindConfigurationVersionByID implements Querier.FindConfigurationVersionByID.

func (*DBQuerier) FindConfigurationVersionByIDBatch

func (q *DBQuerier) FindConfigurationVersionByIDBatch(batch genericBatch, configurationVersionID pgtype.Text)

FindConfigurationVersionByIDBatch implements Querier.FindConfigurationVersionByIDBatch.

func (*DBQuerier) FindConfigurationVersionByIDForUpdate

func (q *DBQuerier) FindConfigurationVersionByIDForUpdate(ctx context.Context, configurationVersionID pgtype.Text) (FindConfigurationVersionByIDForUpdateRow, error)

FindConfigurationVersionByIDForUpdate implements Querier.FindConfigurationVersionByIDForUpdate.

func (*DBQuerier) FindConfigurationVersionByIDForUpdateBatch

func (q *DBQuerier) FindConfigurationVersionByIDForUpdateBatch(batch genericBatch, configurationVersionID pgtype.Text)

FindConfigurationVersionByIDForUpdateBatch implements Querier.FindConfigurationVersionByIDForUpdateBatch.

func (*DBQuerier) FindConfigurationVersionByIDForUpdateScan

func (q *DBQuerier) FindConfigurationVersionByIDForUpdateScan(results pgx.BatchResults) (FindConfigurationVersionByIDForUpdateRow, error)

FindConfigurationVersionByIDForUpdateScan implements Querier.FindConfigurationVersionByIDForUpdateScan.

func (*DBQuerier) FindConfigurationVersionByIDScan

func (q *DBQuerier) FindConfigurationVersionByIDScan(results pgx.BatchResults) (FindConfigurationVersionByIDRow, error)

FindConfigurationVersionByIDScan implements Querier.FindConfigurationVersionByIDScan.

func (*DBQuerier) FindConfigurationVersionLatestByWorkspaceID

func (q *DBQuerier) FindConfigurationVersionLatestByWorkspaceID(ctx context.Context, workspaceID pgtype.Text) (FindConfigurationVersionLatestByWorkspaceIDRow, error)

FindConfigurationVersionLatestByWorkspaceID implements Querier.FindConfigurationVersionLatestByWorkspaceID.

func (*DBQuerier) FindConfigurationVersionLatestByWorkspaceIDBatch

func (q *DBQuerier) FindConfigurationVersionLatestByWorkspaceIDBatch(batch genericBatch, workspaceID pgtype.Text)

FindConfigurationVersionLatestByWorkspaceIDBatch implements Querier.FindConfigurationVersionLatestByWorkspaceIDBatch.

func (*DBQuerier) FindConfigurationVersionLatestByWorkspaceIDScan

func (q *DBQuerier) FindConfigurationVersionLatestByWorkspaceIDScan(results pgx.BatchResults) (FindConfigurationVersionLatestByWorkspaceIDRow, error)

FindConfigurationVersionLatestByWorkspaceIDScan implements Querier.FindConfigurationVersionLatestByWorkspaceIDScan.

func (*DBQuerier) FindConfigurationVersionsByWorkspaceID

FindConfigurationVersionsByWorkspaceID implements Querier.FindConfigurationVersionsByWorkspaceID.

func (*DBQuerier) FindConfigurationVersionsByWorkspaceIDBatch

func (q *DBQuerier) FindConfigurationVersionsByWorkspaceIDBatch(batch genericBatch, params FindConfigurationVersionsByWorkspaceIDParams)

FindConfigurationVersionsByWorkspaceIDBatch implements Querier.FindConfigurationVersionsByWorkspaceIDBatch.

func (*DBQuerier) FindConfigurationVersionsByWorkspaceIDScan

func (q *DBQuerier) FindConfigurationVersionsByWorkspaceIDScan(results pgx.BatchResults) ([]FindConfigurationVersionsByWorkspaceIDRow, error)

FindConfigurationVersionsByWorkspaceIDScan implements Querier.FindConfigurationVersionsByWorkspaceIDScan.

func (*DBQuerier) FindLogChunkByID

func (q *DBQuerier) FindLogChunkByID(ctx context.Context, chunkID int) (FindLogChunkByIDRow, error)

FindLogChunkByID implements Querier.FindLogChunkByID.

func (*DBQuerier) FindLogChunkByIDBatch

func (q *DBQuerier) FindLogChunkByIDBatch(batch genericBatch, chunkID int)

FindLogChunkByIDBatch implements Querier.FindLogChunkByIDBatch.

func (*DBQuerier) FindLogChunkByIDScan

func (q *DBQuerier) FindLogChunkByIDScan(results pgx.BatchResults) (FindLogChunkByIDRow, error)

FindLogChunkByIDScan implements Querier.FindLogChunkByIDScan.

func (*DBQuerier) FindLogChunks

func (q *DBQuerier) FindLogChunks(ctx context.Context, params FindLogChunksParams) ([]byte, error)

FindLogChunks implements Querier.FindLogChunks.

func (*DBQuerier) FindLogChunksBatch

func (q *DBQuerier) FindLogChunksBatch(batch genericBatch, params FindLogChunksParams)

FindLogChunksBatch implements Querier.FindLogChunksBatch.

func (*DBQuerier) FindLogChunksScan

func (q *DBQuerier) FindLogChunksScan(results pgx.BatchResults) ([]byte, error)

FindLogChunksScan implements Querier.FindLogChunksScan.

func (*DBQuerier) FindOrganizationByName

func (q *DBQuerier) FindOrganizationByName(ctx context.Context, name pgtype.Text) (FindOrganizationByNameRow, error)

FindOrganizationByName implements Querier.FindOrganizationByName.

func (*DBQuerier) FindOrganizationByNameBatch

func (q *DBQuerier) FindOrganizationByNameBatch(batch genericBatch, name pgtype.Text)

FindOrganizationByNameBatch implements Querier.FindOrganizationByNameBatch.

func (*DBQuerier) FindOrganizationByNameForUpdate

func (q *DBQuerier) FindOrganizationByNameForUpdate(ctx context.Context, name pgtype.Text) (FindOrganizationByNameForUpdateRow, error)

FindOrganizationByNameForUpdate implements Querier.FindOrganizationByNameForUpdate.

func (*DBQuerier) FindOrganizationByNameForUpdateBatch

func (q *DBQuerier) FindOrganizationByNameForUpdateBatch(batch genericBatch, name pgtype.Text)

FindOrganizationByNameForUpdateBatch implements Querier.FindOrganizationByNameForUpdateBatch.

func (*DBQuerier) FindOrganizationByNameForUpdateScan

func (q *DBQuerier) FindOrganizationByNameForUpdateScan(results pgx.BatchResults) (FindOrganizationByNameForUpdateRow, error)

FindOrganizationByNameForUpdateScan implements Querier.FindOrganizationByNameForUpdateScan.

func (*DBQuerier) FindOrganizationByNameScan

func (q *DBQuerier) FindOrganizationByNameScan(results pgx.BatchResults) (FindOrganizationByNameRow, error)

FindOrganizationByNameScan implements Querier.FindOrganizationByNameScan.

func (*DBQuerier) FindOrganizationNameByWorkspaceID

func (q *DBQuerier) FindOrganizationNameByWorkspaceID(ctx context.Context, workspaceID pgtype.Text) (pgtype.Text, error)

FindOrganizationNameByWorkspaceID implements Querier.FindOrganizationNameByWorkspaceID.

func (*DBQuerier) FindOrganizationNameByWorkspaceIDBatch

func (q *DBQuerier) FindOrganizationNameByWorkspaceIDBatch(batch genericBatch, workspaceID pgtype.Text)

FindOrganizationNameByWorkspaceIDBatch implements Querier.FindOrganizationNameByWorkspaceIDBatch.

func (*DBQuerier) FindOrganizationNameByWorkspaceIDScan

func (q *DBQuerier) FindOrganizationNameByWorkspaceIDScan(results pgx.BatchResults) (pgtype.Text, error)

FindOrganizationNameByWorkspaceIDScan implements Querier.FindOrganizationNameByWorkspaceIDScan.

func (*DBQuerier) FindOrganizations

func (q *DBQuerier) FindOrganizations(ctx context.Context, limit int, offset int) ([]FindOrganizationsRow, error)

FindOrganizations implements Querier.FindOrganizations.

func (*DBQuerier) FindOrganizationsBatch

func (q *DBQuerier) FindOrganizationsBatch(batch genericBatch, limit int, offset int)

FindOrganizationsBatch implements Querier.FindOrganizationsBatch.

func (*DBQuerier) FindOrganizationsScan

func (q *DBQuerier) FindOrganizationsScan(results pgx.BatchResults) ([]FindOrganizationsRow, error)

FindOrganizationsScan implements Querier.FindOrganizationsScan.

func (*DBQuerier) FindRunByID

func (q *DBQuerier) FindRunByID(ctx context.Context, runID pgtype.Text) (FindRunByIDRow, error)

FindRunByID implements Querier.FindRunByID.

func (*DBQuerier) FindRunByIDBatch

func (q *DBQuerier) FindRunByIDBatch(batch genericBatch, runID pgtype.Text)

FindRunByIDBatch implements Querier.FindRunByIDBatch.

func (*DBQuerier) FindRunByIDForUpdate

func (q *DBQuerier) FindRunByIDForUpdate(ctx context.Context, runID pgtype.Text) (FindRunByIDForUpdateRow, error)

FindRunByIDForUpdate implements Querier.FindRunByIDForUpdate.

func (*DBQuerier) FindRunByIDForUpdateBatch

func (q *DBQuerier) FindRunByIDForUpdateBatch(batch genericBatch, runID pgtype.Text)

FindRunByIDForUpdateBatch implements Querier.FindRunByIDForUpdateBatch.

func (*DBQuerier) FindRunByIDForUpdateScan

func (q *DBQuerier) FindRunByIDForUpdateScan(results pgx.BatchResults) (FindRunByIDForUpdateRow, error)

FindRunByIDForUpdateScan implements Querier.FindRunByIDForUpdateScan.

func (*DBQuerier) FindRunByIDScan

func (q *DBQuerier) FindRunByIDScan(results pgx.BatchResults) (FindRunByIDRow, error)

FindRunByIDScan implements Querier.FindRunByIDScan.

func (*DBQuerier) FindRuns

func (q *DBQuerier) FindRuns(ctx context.Context, params FindRunsParams) ([]FindRunsRow, error)

FindRuns implements Querier.FindRuns.

func (*DBQuerier) FindRunsBatch

func (q *DBQuerier) FindRunsBatch(batch genericBatch, params FindRunsParams)

FindRunsBatch implements Querier.FindRunsBatch.

func (*DBQuerier) FindRunsScan

func (q *DBQuerier) FindRunsScan(results pgx.BatchResults) ([]FindRunsRow, error)

FindRunsScan implements Querier.FindRunsScan.

func (*DBQuerier) FindSessionByToken

func (q *DBQuerier) FindSessionByToken(ctx context.Context, token pgtype.Text) (FindSessionByTokenRow, error)

FindSessionByToken implements Querier.FindSessionByToken.

func (*DBQuerier) FindSessionByTokenBatch

func (q *DBQuerier) FindSessionByTokenBatch(batch genericBatch, token pgtype.Text)

FindSessionByTokenBatch implements Querier.FindSessionByTokenBatch.

func (*DBQuerier) FindSessionByTokenScan

func (q *DBQuerier) FindSessionByTokenScan(results pgx.BatchResults) (FindSessionByTokenRow, error)

FindSessionByTokenScan implements Querier.FindSessionByTokenScan.

func (*DBQuerier) FindSessionsByUserID

func (q *DBQuerier) FindSessionsByUserID(ctx context.Context, userID pgtype.Text) ([]FindSessionsByUserIDRow, error)

FindSessionsByUserID implements Querier.FindSessionsByUserID.

func (*DBQuerier) FindSessionsByUserIDBatch

func (q *DBQuerier) FindSessionsByUserIDBatch(batch genericBatch, userID pgtype.Text)

FindSessionsByUserIDBatch implements Querier.FindSessionsByUserIDBatch.

func (*DBQuerier) FindSessionsByUserIDScan

func (q *DBQuerier) FindSessionsByUserIDScan(results pgx.BatchResults) ([]FindSessionsByUserIDRow, error)

FindSessionsByUserIDScan implements Querier.FindSessionsByUserIDScan.

func (*DBQuerier) FindStateVersionByID

func (q *DBQuerier) FindStateVersionByID(ctx context.Context, id pgtype.Text) (FindStateVersionByIDRow, error)

FindStateVersionByID implements Querier.FindStateVersionByID.

func (*DBQuerier) FindStateVersionByIDBatch

func (q *DBQuerier) FindStateVersionByIDBatch(batch genericBatch, id pgtype.Text)

FindStateVersionByIDBatch implements Querier.FindStateVersionByIDBatch.

func (*DBQuerier) FindStateVersionByIDScan

func (q *DBQuerier) FindStateVersionByIDScan(results pgx.BatchResults) (FindStateVersionByIDRow, error)

FindStateVersionByIDScan implements Querier.FindStateVersionByIDScan.

func (*DBQuerier) FindStateVersionLatestByWorkspaceID

func (q *DBQuerier) FindStateVersionLatestByWorkspaceID(ctx context.Context, workspaceID pgtype.Text) (FindStateVersionLatestByWorkspaceIDRow, error)

FindStateVersionLatestByWorkspaceID implements Querier.FindStateVersionLatestByWorkspaceID.

func (*DBQuerier) FindStateVersionLatestByWorkspaceIDBatch

func (q *DBQuerier) FindStateVersionLatestByWorkspaceIDBatch(batch genericBatch, workspaceID pgtype.Text)

FindStateVersionLatestByWorkspaceIDBatch implements Querier.FindStateVersionLatestByWorkspaceIDBatch.

func (*DBQuerier) FindStateVersionLatestByWorkspaceIDScan

func (q *DBQuerier) FindStateVersionLatestByWorkspaceIDScan(results pgx.BatchResults) (FindStateVersionLatestByWorkspaceIDRow, error)

FindStateVersionLatestByWorkspaceIDScan implements Querier.FindStateVersionLatestByWorkspaceIDScan.

func (*DBQuerier) FindStateVersionStateByID

func (q *DBQuerier) FindStateVersionStateByID(ctx context.Context, id pgtype.Text) ([]byte, error)

FindStateVersionStateByID implements Querier.FindStateVersionStateByID.

func (*DBQuerier) FindStateVersionStateByIDBatch

func (q *DBQuerier) FindStateVersionStateByIDBatch(batch genericBatch, id pgtype.Text)

FindStateVersionStateByIDBatch implements Querier.FindStateVersionStateByIDBatch.

func (*DBQuerier) FindStateVersionStateByIDScan

func (q *DBQuerier) FindStateVersionStateByIDScan(results pgx.BatchResults) ([]byte, error)

FindStateVersionStateByIDScan implements Querier.FindStateVersionStateByIDScan.

func (*DBQuerier) FindStateVersionsByWorkspaceName

func (q *DBQuerier) FindStateVersionsByWorkspaceName(ctx context.Context, params FindStateVersionsByWorkspaceNameParams) ([]FindStateVersionsByWorkspaceNameRow, error)

FindStateVersionsByWorkspaceName implements Querier.FindStateVersionsByWorkspaceName.

func (*DBQuerier) FindStateVersionsByWorkspaceNameBatch

func (q *DBQuerier) FindStateVersionsByWorkspaceNameBatch(batch genericBatch, params FindStateVersionsByWorkspaceNameParams)

FindStateVersionsByWorkspaceNameBatch implements Querier.FindStateVersionsByWorkspaceNameBatch.

func (*DBQuerier) FindStateVersionsByWorkspaceNameScan

func (q *DBQuerier) FindStateVersionsByWorkspaceNameScan(results pgx.BatchResults) ([]FindStateVersionsByWorkspaceNameRow, error)

FindStateVersionsByWorkspaceNameScan implements Querier.FindStateVersionsByWorkspaceNameScan.

func (*DBQuerier) FindTeamByName

func (q *DBQuerier) FindTeamByName(ctx context.Context, name pgtype.Text, organizationName pgtype.Text) (FindTeamByNameRow, error)

FindTeamByName implements Querier.FindTeamByName.

func (*DBQuerier) FindTeamByNameBatch

func (q *DBQuerier) FindTeamByNameBatch(batch genericBatch, name pgtype.Text, organizationName pgtype.Text)

FindTeamByNameBatch implements Querier.FindTeamByNameBatch.

func (*DBQuerier) FindTeamByNameForUpdate

func (q *DBQuerier) FindTeamByNameForUpdate(ctx context.Context, name pgtype.Text, organizationName pgtype.Text) (FindTeamByNameForUpdateRow, error)

FindTeamByNameForUpdate implements Querier.FindTeamByNameForUpdate.

func (*DBQuerier) FindTeamByNameForUpdateBatch

func (q *DBQuerier) FindTeamByNameForUpdateBatch(batch genericBatch, name pgtype.Text, organizationName pgtype.Text)

FindTeamByNameForUpdateBatch implements Querier.FindTeamByNameForUpdateBatch.

func (*DBQuerier) FindTeamByNameForUpdateScan

func (q *DBQuerier) FindTeamByNameForUpdateScan(results pgx.BatchResults) (FindTeamByNameForUpdateRow, error)

FindTeamByNameForUpdateScan implements Querier.FindTeamByNameForUpdateScan.

func (*DBQuerier) FindTeamByNameScan

func (q *DBQuerier) FindTeamByNameScan(results pgx.BatchResults) (FindTeamByNameRow, error)

FindTeamByNameScan implements Querier.FindTeamByNameScan.

func (*DBQuerier) FindTeamsByOrg

func (q *DBQuerier) FindTeamsByOrg(ctx context.Context, organizationName pgtype.Text) ([]FindTeamsByOrgRow, error)

FindTeamsByOrg implements Querier.FindTeamsByOrg.

func (*DBQuerier) FindTeamsByOrgBatch

func (q *DBQuerier) FindTeamsByOrgBatch(batch genericBatch, organizationName pgtype.Text)

FindTeamsByOrgBatch implements Querier.FindTeamsByOrgBatch.

func (*DBQuerier) FindTeamsByOrgScan

func (q *DBQuerier) FindTeamsByOrgScan(results pgx.BatchResults) ([]FindTeamsByOrgRow, error)

FindTeamsByOrgScan implements Querier.FindTeamsByOrgScan.

func (*DBQuerier) FindTokensByUserID

func (q *DBQuerier) FindTokensByUserID(ctx context.Context, userID pgtype.Text) ([]FindTokensByUserIDRow, error)

FindTokensByUserID implements Querier.FindTokensByUserID.

func (*DBQuerier) FindTokensByUserIDBatch

func (q *DBQuerier) FindTokensByUserIDBatch(batch genericBatch, userID pgtype.Text)

FindTokensByUserIDBatch implements Querier.FindTokensByUserIDBatch.

func (*DBQuerier) FindTokensByUserIDScan

func (q *DBQuerier) FindTokensByUserIDScan(results pgx.BatchResults) ([]FindTokensByUserIDRow, error)

FindTokensByUserIDScan implements Querier.FindTokensByUserIDScan.

func (*DBQuerier) FindUserByAuthenticationToken

func (q *DBQuerier) FindUserByAuthenticationToken(ctx context.Context, token pgtype.Text) (FindUserByAuthenticationTokenRow, error)

FindUserByAuthenticationToken implements Querier.FindUserByAuthenticationToken.

func (*DBQuerier) FindUserByAuthenticationTokenBatch

func (q *DBQuerier) FindUserByAuthenticationTokenBatch(batch genericBatch, token pgtype.Text)

FindUserByAuthenticationTokenBatch implements Querier.FindUserByAuthenticationTokenBatch.

func (*DBQuerier) FindUserByAuthenticationTokenScan

func (q *DBQuerier) FindUserByAuthenticationTokenScan(results pgx.BatchResults) (FindUserByAuthenticationTokenRow, error)

FindUserByAuthenticationTokenScan implements Querier.FindUserByAuthenticationTokenScan.

func (*DBQuerier) FindUserByID

func (q *DBQuerier) FindUserByID(ctx context.Context, userID pgtype.Text) (FindUserByIDRow, error)

FindUserByID implements Querier.FindUserByID.

func (*DBQuerier) FindUserByIDBatch

func (q *DBQuerier) FindUserByIDBatch(batch genericBatch, userID pgtype.Text)

FindUserByIDBatch implements Querier.FindUserByIDBatch.

func (*DBQuerier) FindUserByIDScan

func (q *DBQuerier) FindUserByIDScan(results pgx.BatchResults) (FindUserByIDRow, error)

FindUserByIDScan implements Querier.FindUserByIDScan.

func (*DBQuerier) FindUserBySessionToken

func (q *DBQuerier) FindUserBySessionToken(ctx context.Context, token pgtype.Text) (FindUserBySessionTokenRow, error)

FindUserBySessionToken implements Querier.FindUserBySessionToken.

func (*DBQuerier) FindUserBySessionTokenBatch

func (q *DBQuerier) FindUserBySessionTokenBatch(batch genericBatch, token pgtype.Text)

FindUserBySessionTokenBatch implements Querier.FindUserBySessionTokenBatch.

func (*DBQuerier) FindUserBySessionTokenScan

func (q *DBQuerier) FindUserBySessionTokenScan(results pgx.BatchResults) (FindUserBySessionTokenRow, error)

FindUserBySessionTokenScan implements Querier.FindUserBySessionTokenScan.

func (*DBQuerier) FindUserByUsername

func (q *DBQuerier) FindUserByUsername(ctx context.Context, username pgtype.Text) (FindUserByUsernameRow, error)

FindUserByUsername implements Querier.FindUserByUsername.

func (*DBQuerier) FindUserByUsernameBatch

func (q *DBQuerier) FindUserByUsernameBatch(batch genericBatch, username pgtype.Text)

FindUserByUsernameBatch implements Querier.FindUserByUsernameBatch.

func (*DBQuerier) FindUserByUsernameScan

func (q *DBQuerier) FindUserByUsernameScan(results pgx.BatchResults) (FindUserByUsernameRow, error)

FindUserByUsernameScan implements Querier.FindUserByUsernameScan.

func (*DBQuerier) FindUsers

func (q *DBQuerier) FindUsers(ctx context.Context) ([]FindUsersRow, error)

FindUsers implements Querier.FindUsers.

func (*DBQuerier) FindUsersBatch

func (q *DBQuerier) FindUsersBatch(batch genericBatch)

FindUsersBatch implements Querier.FindUsersBatch.

func (*DBQuerier) FindUsersByOrganization

func (q *DBQuerier) FindUsersByOrganization(ctx context.Context, organizationName pgtype.Text) ([]FindUsersByOrganizationRow, error)

FindUsersByOrganization implements Querier.FindUsersByOrganization.

func (*DBQuerier) FindUsersByOrganizationBatch

func (q *DBQuerier) FindUsersByOrganizationBatch(batch genericBatch, organizationName pgtype.Text)

FindUsersByOrganizationBatch implements Querier.FindUsersByOrganizationBatch.

func (*DBQuerier) FindUsersByOrganizationScan

func (q *DBQuerier) FindUsersByOrganizationScan(results pgx.BatchResults) ([]FindUsersByOrganizationRow, error)

FindUsersByOrganizationScan implements Querier.FindUsersByOrganizationScan.

func (*DBQuerier) FindUsersByTeam

func (q *DBQuerier) FindUsersByTeam(ctx context.Context, organizationName pgtype.Text, teamName pgtype.Text) ([]FindUsersByTeamRow, error)

FindUsersByTeam implements Querier.FindUsersByTeam.

func (*DBQuerier) FindUsersByTeamBatch

func (q *DBQuerier) FindUsersByTeamBatch(batch genericBatch, organizationName pgtype.Text, teamName pgtype.Text)

FindUsersByTeamBatch implements Querier.FindUsersByTeamBatch.

func (*DBQuerier) FindUsersByTeamScan

func (q *DBQuerier) FindUsersByTeamScan(results pgx.BatchResults) ([]FindUsersByTeamRow, error)

FindUsersByTeamScan implements Querier.FindUsersByTeamScan.

func (*DBQuerier) FindUsersScan

func (q *DBQuerier) FindUsersScan(results pgx.BatchResults) ([]FindUsersRow, error)

FindUsersScan implements Querier.FindUsersScan.

func (*DBQuerier) FindVCSProvider added in v0.0.16

func (q *DBQuerier) FindVCSProvider(ctx context.Context, vcsProviderID pgtype.Text) (FindVCSProviderRow, error)

FindVCSProvider implements Querier.FindVCSProvider.

func (*DBQuerier) FindVCSProviderBatch added in v0.0.16

func (q *DBQuerier) FindVCSProviderBatch(batch genericBatch, vcsProviderID pgtype.Text)

FindVCSProviderBatch implements Querier.FindVCSProviderBatch.

func (*DBQuerier) FindVCSProviderScan added in v0.0.16

func (q *DBQuerier) FindVCSProviderScan(results pgx.BatchResults) (FindVCSProviderRow, error)

FindVCSProviderScan implements Querier.FindVCSProviderScan.

func (*DBQuerier) FindVCSProviders added in v0.0.16

func (q *DBQuerier) FindVCSProviders(ctx context.Context, organizationName pgtype.Text) ([]FindVCSProvidersRow, error)

FindVCSProviders implements Querier.FindVCSProviders.

func (*DBQuerier) FindVCSProvidersBatch added in v0.0.16

func (q *DBQuerier) FindVCSProvidersBatch(batch genericBatch, organizationName pgtype.Text)

FindVCSProvidersBatch implements Querier.FindVCSProvidersBatch.

func (*DBQuerier) FindVCSProvidersScan added in v0.0.16

func (q *DBQuerier) FindVCSProvidersScan(results pgx.BatchResults) ([]FindVCSProvidersRow, error)

FindVCSProvidersScan implements Querier.FindVCSProvidersScan.

func (*DBQuerier) FindWorkspaceByID

func (q *DBQuerier) FindWorkspaceByID(ctx context.Context, id pgtype.Text) (FindWorkspaceByIDRow, error)

FindWorkspaceByID implements Querier.FindWorkspaceByID.

func (*DBQuerier) FindWorkspaceByIDBatch

func (q *DBQuerier) FindWorkspaceByIDBatch(batch genericBatch, id pgtype.Text)

FindWorkspaceByIDBatch implements Querier.FindWorkspaceByIDBatch.

func (*DBQuerier) FindWorkspaceByIDForUpdate

func (q *DBQuerier) FindWorkspaceByIDForUpdate(ctx context.Context, id pgtype.Text) (FindWorkspaceByIDForUpdateRow, error)

FindWorkspaceByIDForUpdate implements Querier.FindWorkspaceByIDForUpdate.

func (*DBQuerier) FindWorkspaceByIDForUpdateBatch

func (q *DBQuerier) FindWorkspaceByIDForUpdateBatch(batch genericBatch, id pgtype.Text)

FindWorkspaceByIDForUpdateBatch implements Querier.FindWorkspaceByIDForUpdateBatch.

func (*DBQuerier) FindWorkspaceByIDForUpdateScan

func (q *DBQuerier) FindWorkspaceByIDForUpdateScan(results pgx.BatchResults) (FindWorkspaceByIDForUpdateRow, error)

FindWorkspaceByIDForUpdateScan implements Querier.FindWorkspaceByIDForUpdateScan.

func (*DBQuerier) FindWorkspaceByIDScan

func (q *DBQuerier) FindWorkspaceByIDScan(results pgx.BatchResults) (FindWorkspaceByIDRow, error)

FindWorkspaceByIDScan implements Querier.FindWorkspaceByIDScan.

func (*DBQuerier) FindWorkspaceByName

func (q *DBQuerier) FindWorkspaceByName(ctx context.Context, name pgtype.Text, organizationName pgtype.Text) (FindWorkspaceByNameRow, error)

FindWorkspaceByName implements Querier.FindWorkspaceByName.

func (*DBQuerier) FindWorkspaceByNameBatch

func (q *DBQuerier) FindWorkspaceByNameBatch(batch genericBatch, name pgtype.Text, organizationName pgtype.Text)

FindWorkspaceByNameBatch implements Querier.FindWorkspaceByNameBatch.

func (*DBQuerier) FindWorkspaceByNameScan

func (q *DBQuerier) FindWorkspaceByNameScan(results pgx.BatchResults) (FindWorkspaceByNameRow, error)

FindWorkspaceByNameScan implements Querier.FindWorkspaceByNameScan.

func (*DBQuerier) FindWorkspaceIDByCVID

func (q *DBQuerier) FindWorkspaceIDByCVID(ctx context.Context, configurationVersionID pgtype.Text) (pgtype.Text, error)

FindWorkspaceIDByCVID implements Querier.FindWorkspaceIDByCVID.

func (*DBQuerier) FindWorkspaceIDByCVIDBatch

func (q *DBQuerier) FindWorkspaceIDByCVIDBatch(batch genericBatch, configurationVersionID pgtype.Text)

FindWorkspaceIDByCVIDBatch implements Querier.FindWorkspaceIDByCVIDBatch.

func (*DBQuerier) FindWorkspaceIDByCVIDScan

func (q *DBQuerier) FindWorkspaceIDByCVIDScan(results pgx.BatchResults) (pgtype.Text, error)

FindWorkspaceIDByCVIDScan implements Querier.FindWorkspaceIDByCVIDScan.

func (*DBQuerier) FindWorkspaceIDByName

func (q *DBQuerier) FindWorkspaceIDByName(ctx context.Context, name pgtype.Text, organizationName pgtype.Text) (pgtype.Text, error)

FindWorkspaceIDByName implements Querier.FindWorkspaceIDByName.

func (*DBQuerier) FindWorkspaceIDByNameBatch

func (q *DBQuerier) FindWorkspaceIDByNameBatch(batch genericBatch, name pgtype.Text, organizationName pgtype.Text)

FindWorkspaceIDByNameBatch implements Querier.FindWorkspaceIDByNameBatch.

func (*DBQuerier) FindWorkspaceIDByNameScan

func (q *DBQuerier) FindWorkspaceIDByNameScan(results pgx.BatchResults) (pgtype.Text, error)

FindWorkspaceIDByNameScan implements Querier.FindWorkspaceIDByNameScan.

func (*DBQuerier) FindWorkspaceIDByRunID

func (q *DBQuerier) FindWorkspaceIDByRunID(ctx context.Context, runID pgtype.Text) (pgtype.Text, error)

FindWorkspaceIDByRunID implements Querier.FindWorkspaceIDByRunID.

func (*DBQuerier) FindWorkspaceIDByRunIDBatch

func (q *DBQuerier) FindWorkspaceIDByRunIDBatch(batch genericBatch, runID pgtype.Text)

FindWorkspaceIDByRunIDBatch implements Querier.FindWorkspaceIDByRunIDBatch.

func (*DBQuerier) FindWorkspaceIDByRunIDScan

func (q *DBQuerier) FindWorkspaceIDByRunIDScan(results pgx.BatchResults) (pgtype.Text, error)

FindWorkspaceIDByRunIDScan implements Querier.FindWorkspaceIDByRunIDScan.

func (*DBQuerier) FindWorkspaceIDByStateVersionID

func (q *DBQuerier) FindWorkspaceIDByStateVersionID(ctx context.Context, stateVersionID pgtype.Text) (pgtype.Text, error)

FindWorkspaceIDByStateVersionID implements Querier.FindWorkspaceIDByStateVersionID.

func (*DBQuerier) FindWorkspaceIDByStateVersionIDBatch

func (q *DBQuerier) FindWorkspaceIDByStateVersionIDBatch(batch genericBatch, stateVersionID pgtype.Text)

FindWorkspaceIDByStateVersionIDBatch implements Querier.FindWorkspaceIDByStateVersionIDBatch.

func (*DBQuerier) FindWorkspaceIDByStateVersionIDScan

func (q *DBQuerier) FindWorkspaceIDByStateVersionIDScan(results pgx.BatchResults) (pgtype.Text, error)

FindWorkspaceIDByStateVersionIDScan implements Querier.FindWorkspaceIDByStateVersionIDScan.

func (*DBQuerier) FindWorkspaceLockForUpdate

func (q *DBQuerier) FindWorkspaceLockForUpdate(ctx context.Context, workspaceID string) (FindWorkspaceLockForUpdateRow, error)

FindWorkspaceLockForUpdate implements Querier.FindWorkspaceLockForUpdate.

func (*DBQuerier) FindWorkspaceLockForUpdateBatch

func (q *DBQuerier) FindWorkspaceLockForUpdateBatch(batch genericBatch, workspaceID string)

FindWorkspaceLockForUpdateBatch implements Querier.FindWorkspaceLockForUpdateBatch.

func (*DBQuerier) FindWorkspaceLockForUpdateScan

func (q *DBQuerier) FindWorkspaceLockForUpdateScan(results pgx.BatchResults) (FindWorkspaceLockForUpdateRow, error)

FindWorkspaceLockForUpdateScan implements Querier.FindWorkspaceLockForUpdateScan.

func (*DBQuerier) FindWorkspacePermissionsByID

func (q *DBQuerier) FindWorkspacePermissionsByID(ctx context.Context, workspaceID pgtype.Text) ([]FindWorkspacePermissionsByIDRow, error)

FindWorkspacePermissionsByID implements Querier.FindWorkspacePermissionsByID.

func (*DBQuerier) FindWorkspacePermissionsByIDBatch

func (q *DBQuerier) FindWorkspacePermissionsByIDBatch(batch genericBatch, workspaceID pgtype.Text)

FindWorkspacePermissionsByIDBatch implements Querier.FindWorkspacePermissionsByIDBatch.

func (*DBQuerier) FindWorkspacePermissionsByIDScan

func (q *DBQuerier) FindWorkspacePermissionsByIDScan(results pgx.BatchResults) ([]FindWorkspacePermissionsByIDRow, error)

FindWorkspacePermissionsByIDScan implements Querier.FindWorkspacePermissionsByIDScan.

func (*DBQuerier) FindWorkspacePermissionsByName

func (q *DBQuerier) FindWorkspacePermissionsByName(ctx context.Context, workspaceName pgtype.Text, organizationName pgtype.Text) ([]FindWorkspacePermissionsByNameRow, error)

FindWorkspacePermissionsByName implements Querier.FindWorkspacePermissionsByName.

func (*DBQuerier) FindWorkspacePermissionsByNameBatch

func (q *DBQuerier) FindWorkspacePermissionsByNameBatch(batch genericBatch, workspaceName pgtype.Text, organizationName pgtype.Text)

FindWorkspacePermissionsByNameBatch implements Querier.FindWorkspacePermissionsByNameBatch.

func (*DBQuerier) FindWorkspacePermissionsByNameScan

func (q *DBQuerier) FindWorkspacePermissionsByNameScan(results pgx.BatchResults) ([]FindWorkspacePermissionsByNameRow, error)

FindWorkspacePermissionsByNameScan implements Querier.FindWorkspacePermissionsByNameScan.

func (*DBQuerier) FindWorkspaces

func (q *DBQuerier) FindWorkspaces(ctx context.Context, params FindWorkspacesParams) ([]FindWorkspacesRow, error)

FindWorkspaces implements Querier.FindWorkspaces.

func (*DBQuerier) FindWorkspacesBatch

func (q *DBQuerier) FindWorkspacesBatch(batch genericBatch, params FindWorkspacesParams)

FindWorkspacesBatch implements Querier.FindWorkspacesBatch.

func (*DBQuerier) FindWorkspacesByUserID

func (q *DBQuerier) FindWorkspacesByUserID(ctx context.Context, params FindWorkspacesByUserIDParams) ([]FindWorkspacesByUserIDRow, error)

FindWorkspacesByUserID implements Querier.FindWorkspacesByUserID.

func (*DBQuerier) FindWorkspacesByUserIDBatch

func (q *DBQuerier) FindWorkspacesByUserIDBatch(batch genericBatch, params FindWorkspacesByUserIDParams)

FindWorkspacesByUserIDBatch implements Querier.FindWorkspacesByUserIDBatch.

func (*DBQuerier) FindWorkspacesByUserIDScan

func (q *DBQuerier) FindWorkspacesByUserIDScan(results pgx.BatchResults) ([]FindWorkspacesByUserIDRow, error)

FindWorkspacesByUserIDScan implements Querier.FindWorkspacesByUserIDScan.

func (*DBQuerier) FindWorkspacesScan

func (q *DBQuerier) FindWorkspacesScan(results pgx.BatchResults) ([]FindWorkspacesRow, error)

FindWorkspacesScan implements Querier.FindWorkspacesScan.

func (*DBQuerier) GetLockFile

func (q *DBQuerier) GetLockFile(ctx context.Context, runID pgtype.Text) ([]byte, error)

GetLockFile implements Querier.GetLockFile.

func (*DBQuerier) GetLockFileBatch

func (q *DBQuerier) GetLockFileBatch(batch genericBatch, runID pgtype.Text)

GetLockFileBatch implements Querier.GetLockFileBatch.

func (*DBQuerier) GetLockFileScan

func (q *DBQuerier) GetLockFileScan(results pgx.BatchResults) ([]byte, error)

GetLockFileScan implements Querier.GetLockFileScan.

func (*DBQuerier) GetPlanBinByID

func (q *DBQuerier) GetPlanBinByID(ctx context.Context, runID pgtype.Text) ([]byte, error)

GetPlanBinByID implements Querier.GetPlanBinByID.

func (*DBQuerier) GetPlanBinByIDBatch

func (q *DBQuerier) GetPlanBinByIDBatch(batch genericBatch, runID pgtype.Text)

GetPlanBinByIDBatch implements Querier.GetPlanBinByIDBatch.

func (*DBQuerier) GetPlanBinByIDScan

func (q *DBQuerier) GetPlanBinByIDScan(results pgx.BatchResults) ([]byte, error)

GetPlanBinByIDScan implements Querier.GetPlanBinByIDScan.

func (*DBQuerier) GetPlanJSONByID

func (q *DBQuerier) GetPlanJSONByID(ctx context.Context, runID pgtype.Text) ([]byte, error)

GetPlanJSONByID implements Querier.GetPlanJSONByID.

func (*DBQuerier) GetPlanJSONByIDBatch

func (q *DBQuerier) GetPlanJSONByIDBatch(batch genericBatch, runID pgtype.Text)

GetPlanJSONByIDBatch implements Querier.GetPlanJSONByIDBatch.

func (*DBQuerier) GetPlanJSONByIDScan

func (q *DBQuerier) GetPlanJSONByIDScan(results pgx.BatchResults) ([]byte, error)

GetPlanJSONByIDScan implements Querier.GetPlanJSONByIDScan.

func (*DBQuerier) InsertAgentToken

func (q *DBQuerier) InsertAgentToken(ctx context.Context, params InsertAgentTokenParams) (pgconn.CommandTag, error)

InsertAgentToken implements Querier.InsertAgentToken.

func (*DBQuerier) InsertAgentTokenBatch

func (q *DBQuerier) InsertAgentTokenBatch(batch genericBatch, params InsertAgentTokenParams)

InsertAgentTokenBatch implements Querier.InsertAgentTokenBatch.

func (*DBQuerier) InsertAgentTokenScan

func (q *DBQuerier) InsertAgentTokenScan(results pgx.BatchResults) (pgconn.CommandTag, error)

InsertAgentTokenScan implements Querier.InsertAgentTokenScan.

func (*DBQuerier) InsertApply

func (q *DBQuerier) InsertApply(ctx context.Context, runID pgtype.Text, status pgtype.Text) (pgconn.CommandTag, error)

InsertApply implements Querier.InsertApply.

func (*DBQuerier) InsertApplyBatch

func (q *DBQuerier) InsertApplyBatch(batch genericBatch, runID pgtype.Text, status pgtype.Text)

InsertApplyBatch implements Querier.InsertApplyBatch.

func (*DBQuerier) InsertApplyScan

func (q *DBQuerier) InsertApplyScan(results pgx.BatchResults) (pgconn.CommandTag, error)

InsertApplyScan implements Querier.InsertApplyScan.

func (*DBQuerier) InsertConfigurationVersion

func (q *DBQuerier) InsertConfigurationVersion(ctx context.Context, params InsertConfigurationVersionParams) (pgconn.CommandTag, error)

InsertConfigurationVersion implements Querier.InsertConfigurationVersion.

func (*DBQuerier) InsertConfigurationVersionBatch

func (q *DBQuerier) InsertConfigurationVersionBatch(batch genericBatch, params InsertConfigurationVersionParams)

InsertConfigurationVersionBatch implements Querier.InsertConfigurationVersionBatch.

func (*DBQuerier) InsertConfigurationVersionScan

func (q *DBQuerier) InsertConfigurationVersionScan(results pgx.BatchResults) (pgconn.CommandTag, error)

InsertConfigurationVersionScan implements Querier.InsertConfigurationVersionScan.

func (*DBQuerier) InsertConfigurationVersionStatusTimestamp

InsertConfigurationVersionStatusTimestamp implements Querier.InsertConfigurationVersionStatusTimestamp.

func (*DBQuerier) InsertConfigurationVersionStatusTimestampBatch

func (q *DBQuerier) InsertConfigurationVersionStatusTimestampBatch(batch genericBatch, params InsertConfigurationVersionStatusTimestampParams)

InsertConfigurationVersionStatusTimestampBatch implements Querier.InsertConfigurationVersionStatusTimestampBatch.

func (*DBQuerier) InsertConfigurationVersionStatusTimestampScan

func (q *DBQuerier) InsertConfigurationVersionStatusTimestampScan(results pgx.BatchResults) (InsertConfigurationVersionStatusTimestampRow, error)

InsertConfigurationVersionStatusTimestampScan implements Querier.InsertConfigurationVersionStatusTimestampScan.

func (*DBQuerier) InsertLogChunk

func (q *DBQuerier) InsertLogChunk(ctx context.Context, params InsertLogChunkParams) (int, error)

InsertLogChunk implements Querier.InsertLogChunk.

func (*DBQuerier) InsertLogChunkBatch

func (q *DBQuerier) InsertLogChunkBatch(batch genericBatch, params InsertLogChunkParams)

InsertLogChunkBatch implements Querier.InsertLogChunkBatch.

func (*DBQuerier) InsertLogChunkScan

func (q *DBQuerier) InsertLogChunkScan(results pgx.BatchResults) (int, error)

InsertLogChunkScan implements Querier.InsertLogChunkScan.

func (*DBQuerier) InsertOrganization

func (q *DBQuerier) InsertOrganization(ctx context.Context, params InsertOrganizationParams) (pgconn.CommandTag, error)

InsertOrganization implements Querier.InsertOrganization.

func (*DBQuerier) InsertOrganizationBatch

func (q *DBQuerier) InsertOrganizationBatch(batch genericBatch, params InsertOrganizationParams)

InsertOrganizationBatch implements Querier.InsertOrganizationBatch.

func (*DBQuerier) InsertOrganizationMembership

func (q *DBQuerier) InsertOrganizationMembership(ctx context.Context, userID pgtype.Text, organizationID pgtype.Text) (pgconn.CommandTag, error)

InsertOrganizationMembership implements Querier.InsertOrganizationMembership.

func (*DBQuerier) InsertOrganizationMembershipBatch

func (q *DBQuerier) InsertOrganizationMembershipBatch(batch genericBatch, userID pgtype.Text, organizationID pgtype.Text)

InsertOrganizationMembershipBatch implements Querier.InsertOrganizationMembershipBatch.

func (*DBQuerier) InsertOrganizationMembershipScan

func (q *DBQuerier) InsertOrganizationMembershipScan(results pgx.BatchResults) (pgconn.CommandTag, error)

InsertOrganizationMembershipScan implements Querier.InsertOrganizationMembershipScan.

func (*DBQuerier) InsertOrganizationScan

func (q *DBQuerier) InsertOrganizationScan(results pgx.BatchResults) (pgconn.CommandTag, error)

InsertOrganizationScan implements Querier.InsertOrganizationScan.

func (*DBQuerier) InsertPhaseStatusTimestamp

func (q *DBQuerier) InsertPhaseStatusTimestamp(ctx context.Context, params InsertPhaseStatusTimestampParams) (pgconn.CommandTag, error)

InsertPhaseStatusTimestamp implements Querier.InsertPhaseStatusTimestamp.

func (*DBQuerier) InsertPhaseStatusTimestampBatch

func (q *DBQuerier) InsertPhaseStatusTimestampBatch(batch genericBatch, params InsertPhaseStatusTimestampParams)

InsertPhaseStatusTimestampBatch implements Querier.InsertPhaseStatusTimestampBatch.

func (*DBQuerier) InsertPhaseStatusTimestampScan

func (q *DBQuerier) InsertPhaseStatusTimestampScan(results pgx.BatchResults) (pgconn.CommandTag, error)

InsertPhaseStatusTimestampScan implements Querier.InsertPhaseStatusTimestampScan.

func (*DBQuerier) InsertPlan

func (q *DBQuerier) InsertPlan(ctx context.Context, runID pgtype.Text, status pgtype.Text) (pgconn.CommandTag, error)

InsertPlan implements Querier.InsertPlan.

func (*DBQuerier) InsertPlanBatch

func (q *DBQuerier) InsertPlanBatch(batch genericBatch, runID pgtype.Text, status pgtype.Text)

InsertPlanBatch implements Querier.InsertPlanBatch.

func (*DBQuerier) InsertPlanScan

func (q *DBQuerier) InsertPlanScan(results pgx.BatchResults) (pgconn.CommandTag, error)

InsertPlanScan implements Querier.InsertPlanScan.

func (*DBQuerier) InsertRun

func (q *DBQuerier) InsertRun(ctx context.Context, params InsertRunParams) (pgconn.CommandTag, error)

InsertRun implements Querier.InsertRun.

func (*DBQuerier) InsertRunBatch

func (q *DBQuerier) InsertRunBatch(batch genericBatch, params InsertRunParams)

InsertRunBatch implements Querier.InsertRunBatch.

func (*DBQuerier) InsertRunScan

func (q *DBQuerier) InsertRunScan(results pgx.BatchResults) (pgconn.CommandTag, error)

InsertRunScan implements Querier.InsertRunScan.

func (*DBQuerier) InsertRunStatusTimestamp

func (q *DBQuerier) InsertRunStatusTimestamp(ctx context.Context, params InsertRunStatusTimestampParams) (pgconn.CommandTag, error)

InsertRunStatusTimestamp implements Querier.InsertRunStatusTimestamp.

func (*DBQuerier) InsertRunStatusTimestampBatch

func (q *DBQuerier) InsertRunStatusTimestampBatch(batch genericBatch, params InsertRunStatusTimestampParams)

InsertRunStatusTimestampBatch implements Querier.InsertRunStatusTimestampBatch.

func (*DBQuerier) InsertRunStatusTimestampScan

func (q *DBQuerier) InsertRunStatusTimestampScan(results pgx.BatchResults) (pgconn.CommandTag, error)

InsertRunStatusTimestampScan implements Querier.InsertRunStatusTimestampScan.

func (*DBQuerier) InsertSession

func (q *DBQuerier) InsertSession(ctx context.Context, params InsertSessionParams) (pgconn.CommandTag, error)

InsertSession implements Querier.InsertSession.

func (*DBQuerier) InsertSessionBatch

func (q *DBQuerier) InsertSessionBatch(batch genericBatch, params InsertSessionParams)

InsertSessionBatch implements Querier.InsertSessionBatch.

func (*DBQuerier) InsertSessionScan

func (q *DBQuerier) InsertSessionScan(results pgx.BatchResults) (pgconn.CommandTag, error)

InsertSessionScan implements Querier.InsertSessionScan.

func (*DBQuerier) InsertStateVersion

func (q *DBQuerier) InsertStateVersion(ctx context.Context, params InsertStateVersionParams) (pgconn.CommandTag, error)

InsertStateVersion implements Querier.InsertStateVersion.

func (*DBQuerier) InsertStateVersionBatch

func (q *DBQuerier) InsertStateVersionBatch(batch genericBatch, params InsertStateVersionParams)

InsertStateVersionBatch implements Querier.InsertStateVersionBatch.

func (*DBQuerier) InsertStateVersionOutput

func (q *DBQuerier) InsertStateVersionOutput(ctx context.Context, params InsertStateVersionOutputParams) (pgconn.CommandTag, error)

InsertStateVersionOutput implements Querier.InsertStateVersionOutput.

func (*DBQuerier) InsertStateVersionOutputBatch

func (q *DBQuerier) InsertStateVersionOutputBatch(batch genericBatch, params InsertStateVersionOutputParams)

InsertStateVersionOutputBatch implements Querier.InsertStateVersionOutputBatch.

func (*DBQuerier) InsertStateVersionOutputScan

func (q *DBQuerier) InsertStateVersionOutputScan(results pgx.BatchResults) (pgconn.CommandTag, error)

InsertStateVersionOutputScan implements Querier.InsertStateVersionOutputScan.

func (*DBQuerier) InsertStateVersionScan

func (q *DBQuerier) InsertStateVersionScan(results pgx.BatchResults) (pgconn.CommandTag, error)

InsertStateVersionScan implements Querier.InsertStateVersionScan.

func (*DBQuerier) InsertTeam

func (q *DBQuerier) InsertTeam(ctx context.Context, params InsertTeamParams) (pgconn.CommandTag, error)

InsertTeam implements Querier.InsertTeam.

func (*DBQuerier) InsertTeamBatch

func (q *DBQuerier) InsertTeamBatch(batch genericBatch, params InsertTeamParams)

InsertTeamBatch implements Querier.InsertTeamBatch.

func (*DBQuerier) InsertTeamMembership

func (q *DBQuerier) InsertTeamMembership(ctx context.Context, userID pgtype.Text, teamID pgtype.Text) (pgconn.CommandTag, error)

InsertTeamMembership implements Querier.InsertTeamMembership.

func (*DBQuerier) InsertTeamMembershipBatch

func (q *DBQuerier) InsertTeamMembershipBatch(batch genericBatch, userID pgtype.Text, teamID pgtype.Text)

InsertTeamMembershipBatch implements Querier.InsertTeamMembershipBatch.

func (*DBQuerier) InsertTeamMembershipScan

func (q *DBQuerier) InsertTeamMembershipScan(results pgx.BatchResults) (pgconn.CommandTag, error)

InsertTeamMembershipScan implements Querier.InsertTeamMembershipScan.

func (*DBQuerier) InsertTeamScan

func (q *DBQuerier) InsertTeamScan(results pgx.BatchResults) (pgconn.CommandTag, error)

InsertTeamScan implements Querier.InsertTeamScan.

func (*DBQuerier) InsertToken

func (q *DBQuerier) InsertToken(ctx context.Context, params InsertTokenParams) (pgconn.CommandTag, error)

InsertToken implements Querier.InsertToken.

func (*DBQuerier) InsertTokenBatch

func (q *DBQuerier) InsertTokenBatch(batch genericBatch, params InsertTokenParams)

InsertTokenBatch implements Querier.InsertTokenBatch.

func (*DBQuerier) InsertTokenScan

func (q *DBQuerier) InsertTokenScan(results pgx.BatchResults) (pgconn.CommandTag, error)

InsertTokenScan implements Querier.InsertTokenScan.

func (*DBQuerier) InsertUser

func (q *DBQuerier) InsertUser(ctx context.Context, params InsertUserParams) (pgconn.CommandTag, error)

InsertUser implements Querier.InsertUser.

func (*DBQuerier) InsertUserBatch

func (q *DBQuerier) InsertUserBatch(batch genericBatch, params InsertUserParams)

InsertUserBatch implements Querier.InsertUserBatch.

func (*DBQuerier) InsertUserScan

func (q *DBQuerier) InsertUserScan(results pgx.BatchResults) (pgconn.CommandTag, error)

InsertUserScan implements Querier.InsertUserScan.

func (*DBQuerier) InsertVCSProvider added in v0.0.16

func (q *DBQuerier) InsertVCSProvider(ctx context.Context, params InsertVCSProviderParams) (pgconn.CommandTag, error)

InsertVCSProvider implements Querier.InsertVCSProvider.

func (*DBQuerier) InsertVCSProviderBatch added in v0.0.16

func (q *DBQuerier) InsertVCSProviderBatch(batch genericBatch, params InsertVCSProviderParams)

InsertVCSProviderBatch implements Querier.InsertVCSProviderBatch.

func (*DBQuerier) InsertVCSProviderScan added in v0.0.16

func (q *DBQuerier) InsertVCSProviderScan(results pgx.BatchResults) (pgconn.CommandTag, error)

InsertVCSProviderScan implements Querier.InsertVCSProviderScan.

func (*DBQuerier) InsertVCSRepo added in v0.0.16

func (q *DBQuerier) InsertVCSRepo(ctx context.Context, params InsertVCSRepoParams) (pgconn.CommandTag, error)

InsertVCSRepo implements Querier.InsertVCSRepo.

func (*DBQuerier) InsertVCSRepoBatch added in v0.0.16

func (q *DBQuerier) InsertVCSRepoBatch(batch genericBatch, params InsertVCSRepoParams)

InsertVCSRepoBatch implements Querier.InsertVCSRepoBatch.

func (*DBQuerier) InsertVCSRepoScan added in v0.0.16

func (q *DBQuerier) InsertVCSRepoScan(results pgx.BatchResults) (pgconn.CommandTag, error)

InsertVCSRepoScan implements Querier.InsertVCSRepoScan.

func (*DBQuerier) InsertWorkspace

func (q *DBQuerier) InsertWorkspace(ctx context.Context, params InsertWorkspaceParams) (pgconn.CommandTag, error)

InsertWorkspace implements Querier.InsertWorkspace.

func (*DBQuerier) InsertWorkspaceBatch

func (q *DBQuerier) InsertWorkspaceBatch(batch genericBatch, params InsertWorkspaceParams)

InsertWorkspaceBatch implements Querier.InsertWorkspaceBatch.

func (*DBQuerier) InsertWorkspaceLockRun

func (q *DBQuerier) InsertWorkspaceLockRun(ctx context.Context, workspaceID string, runID string) (pgconn.CommandTag, error)

InsertWorkspaceLockRun implements Querier.InsertWorkspaceLockRun.

func (*DBQuerier) InsertWorkspaceLockRunBatch

func (q *DBQuerier) InsertWorkspaceLockRunBatch(batch genericBatch, workspaceID string, runID string)

InsertWorkspaceLockRunBatch implements Querier.InsertWorkspaceLockRunBatch.

func (*DBQuerier) InsertWorkspaceLockRunScan

func (q *DBQuerier) InsertWorkspaceLockRunScan(results pgx.BatchResults) (pgconn.CommandTag, error)

InsertWorkspaceLockRunScan implements Querier.InsertWorkspaceLockRunScan.

func (*DBQuerier) InsertWorkspaceLockUser

func (q *DBQuerier) InsertWorkspaceLockUser(ctx context.Context, workspaceID string, userID string) (pgconn.CommandTag, error)

InsertWorkspaceLockUser implements Querier.InsertWorkspaceLockUser.

func (*DBQuerier) InsertWorkspaceLockUserBatch

func (q *DBQuerier) InsertWorkspaceLockUserBatch(batch genericBatch, workspaceID string, userID string)

InsertWorkspaceLockUserBatch implements Querier.InsertWorkspaceLockUserBatch.

func (*DBQuerier) InsertWorkspaceLockUserScan

func (q *DBQuerier) InsertWorkspaceLockUserScan(results pgx.BatchResults) (pgconn.CommandTag, error)

InsertWorkspaceLockUserScan implements Querier.InsertWorkspaceLockUserScan.

func (*DBQuerier) InsertWorkspaceScan

func (q *DBQuerier) InsertWorkspaceScan(results pgx.BatchResults) (pgconn.CommandTag, error)

InsertWorkspaceScan implements Querier.InsertWorkspaceScan.

func (*DBQuerier) PutLockFile

func (q *DBQuerier) PutLockFile(ctx context.Context, lockFile []byte, runID pgtype.Text) (pgtype.Text, error)

PutLockFile implements Querier.PutLockFile.

func (*DBQuerier) PutLockFileBatch

func (q *DBQuerier) PutLockFileBatch(batch genericBatch, lockFile []byte, runID pgtype.Text)

PutLockFileBatch implements Querier.PutLockFileBatch.

func (*DBQuerier) PutLockFileScan

func (q *DBQuerier) PutLockFileScan(results pgx.BatchResults) (pgtype.Text, error)

PutLockFileScan implements Querier.PutLockFileScan.

func (*DBQuerier) UpdateAppliedChangesByID

func (q *DBQuerier) UpdateAppliedChangesByID(ctx context.Context, params UpdateAppliedChangesByIDParams) (pgtype.Text, error)

UpdateAppliedChangesByID implements Querier.UpdateAppliedChangesByID.

func (*DBQuerier) UpdateAppliedChangesByIDBatch

func (q *DBQuerier) UpdateAppliedChangesByIDBatch(batch genericBatch, params UpdateAppliedChangesByIDParams)

UpdateAppliedChangesByIDBatch implements Querier.UpdateAppliedChangesByIDBatch.

func (*DBQuerier) UpdateAppliedChangesByIDScan

func (q *DBQuerier) UpdateAppliedChangesByIDScan(results pgx.BatchResults) (pgtype.Text, error)

UpdateAppliedChangesByIDScan implements Querier.UpdateAppliedChangesByIDScan.

func (*DBQuerier) UpdateApplyStatusByID

func (q *DBQuerier) UpdateApplyStatusByID(ctx context.Context, status pgtype.Text, runID pgtype.Text) (pgtype.Text, error)

UpdateApplyStatusByID implements Querier.UpdateApplyStatusByID.

func (*DBQuerier) UpdateApplyStatusByIDBatch

func (q *DBQuerier) UpdateApplyStatusByIDBatch(batch genericBatch, status pgtype.Text, runID pgtype.Text)

UpdateApplyStatusByIDBatch implements Querier.UpdateApplyStatusByIDBatch.

func (*DBQuerier) UpdateApplyStatusByIDScan

func (q *DBQuerier) UpdateApplyStatusByIDScan(results pgx.BatchResults) (pgtype.Text, error)

UpdateApplyStatusByIDScan implements Querier.UpdateApplyStatusByIDScan.

func (*DBQuerier) UpdateConfigurationVersionConfigByID

func (q *DBQuerier) UpdateConfigurationVersionConfigByID(ctx context.Context, config []byte, id pgtype.Text) (pgtype.Text, error)

UpdateConfigurationVersionConfigByID implements Querier.UpdateConfigurationVersionConfigByID.

func (*DBQuerier) UpdateConfigurationVersionConfigByIDBatch

func (q *DBQuerier) UpdateConfigurationVersionConfigByIDBatch(batch genericBatch, config []byte, id pgtype.Text)

UpdateConfigurationVersionConfigByIDBatch implements Querier.UpdateConfigurationVersionConfigByIDBatch.

func (*DBQuerier) UpdateConfigurationVersionConfigByIDScan

func (q *DBQuerier) UpdateConfigurationVersionConfigByIDScan(results pgx.BatchResults) (pgtype.Text, error)

UpdateConfigurationVersionConfigByIDScan implements Querier.UpdateConfigurationVersionConfigByIDScan.

func (*DBQuerier) UpdateConfigurationVersionErroredByID

func (q *DBQuerier) UpdateConfigurationVersionErroredByID(ctx context.Context, id pgtype.Text) (pgtype.Text, error)

UpdateConfigurationVersionErroredByID implements Querier.UpdateConfigurationVersionErroredByID.

func (*DBQuerier) UpdateConfigurationVersionErroredByIDBatch

func (q *DBQuerier) UpdateConfigurationVersionErroredByIDBatch(batch genericBatch, id pgtype.Text)

UpdateConfigurationVersionErroredByIDBatch implements Querier.UpdateConfigurationVersionErroredByIDBatch.

func (*DBQuerier) UpdateConfigurationVersionErroredByIDScan

func (q *DBQuerier) UpdateConfigurationVersionErroredByIDScan(results pgx.BatchResults) (pgtype.Text, error)

UpdateConfigurationVersionErroredByIDScan implements Querier.UpdateConfigurationVersionErroredByIDScan.

func (*DBQuerier) UpdateOrganizationByName

func (q *DBQuerier) UpdateOrganizationByName(ctx context.Context, params UpdateOrganizationByNameParams) (pgtype.Text, error)

UpdateOrganizationByName implements Querier.UpdateOrganizationByName.

func (*DBQuerier) UpdateOrganizationByNameBatch

func (q *DBQuerier) UpdateOrganizationByNameBatch(batch genericBatch, params UpdateOrganizationByNameParams)

UpdateOrganizationByNameBatch implements Querier.UpdateOrganizationByNameBatch.

func (*DBQuerier) UpdateOrganizationByNameScan

func (q *DBQuerier) UpdateOrganizationByNameScan(results pgx.BatchResults) (pgtype.Text, error)

UpdateOrganizationByNameScan implements Querier.UpdateOrganizationByNameScan.

func (*DBQuerier) UpdatePlanBinByID

func (q *DBQuerier) UpdatePlanBinByID(ctx context.Context, planBin []byte, runID pgtype.Text) (pgtype.Text, error)

UpdatePlanBinByID implements Querier.UpdatePlanBinByID.

func (*DBQuerier) UpdatePlanBinByIDBatch

func (q *DBQuerier) UpdatePlanBinByIDBatch(batch genericBatch, planBin []byte, runID pgtype.Text)

UpdatePlanBinByIDBatch implements Querier.UpdatePlanBinByIDBatch.

func (*DBQuerier) UpdatePlanBinByIDScan

func (q *DBQuerier) UpdatePlanBinByIDScan(results pgx.BatchResults) (pgtype.Text, error)

UpdatePlanBinByIDScan implements Querier.UpdatePlanBinByIDScan.

func (*DBQuerier) UpdatePlanJSONByID

func (q *DBQuerier) UpdatePlanJSONByID(ctx context.Context, planJSON []byte, runID pgtype.Text) (pgtype.Text, error)

UpdatePlanJSONByID implements Querier.UpdatePlanJSONByID.

func (*DBQuerier) UpdatePlanJSONByIDBatch

func (q *DBQuerier) UpdatePlanJSONByIDBatch(batch genericBatch, planJSON []byte, runID pgtype.Text)

UpdatePlanJSONByIDBatch implements Querier.UpdatePlanJSONByIDBatch.

func (*DBQuerier) UpdatePlanJSONByIDScan

func (q *DBQuerier) UpdatePlanJSONByIDScan(results pgx.BatchResults) (pgtype.Text, error)

UpdatePlanJSONByIDScan implements Querier.UpdatePlanJSONByIDScan.

func (*DBQuerier) UpdatePlanStatusByID

func (q *DBQuerier) UpdatePlanStatusByID(ctx context.Context, status pgtype.Text, runID pgtype.Text) (pgtype.Text, error)

UpdatePlanStatusByID implements Querier.UpdatePlanStatusByID.

func (*DBQuerier) UpdatePlanStatusByIDBatch

func (q *DBQuerier) UpdatePlanStatusByIDBatch(batch genericBatch, status pgtype.Text, runID pgtype.Text)

UpdatePlanStatusByIDBatch implements Querier.UpdatePlanStatusByIDBatch.

func (*DBQuerier) UpdatePlanStatusByIDScan

func (q *DBQuerier) UpdatePlanStatusByIDScan(results pgx.BatchResults) (pgtype.Text, error)

UpdatePlanStatusByIDScan implements Querier.UpdatePlanStatusByIDScan.

func (*DBQuerier) UpdatePlannedChangesByID

func (q *DBQuerier) UpdatePlannedChangesByID(ctx context.Context, params UpdatePlannedChangesByIDParams) (pgtype.Text, error)

UpdatePlannedChangesByID implements Querier.UpdatePlannedChangesByID.

func (*DBQuerier) UpdatePlannedChangesByIDBatch

func (q *DBQuerier) UpdatePlannedChangesByIDBatch(batch genericBatch, params UpdatePlannedChangesByIDParams)

UpdatePlannedChangesByIDBatch implements Querier.UpdatePlannedChangesByIDBatch.

func (*DBQuerier) UpdatePlannedChangesByIDScan

func (q *DBQuerier) UpdatePlannedChangesByIDScan(results pgx.BatchResults) (pgtype.Text, error)

UpdatePlannedChangesByIDScan implements Querier.UpdatePlannedChangesByIDScan.

func (*DBQuerier) UpdateRunForceCancelAvailableAt

func (q *DBQuerier) UpdateRunForceCancelAvailableAt(ctx context.Context, forceCancelAvailableAt pgtype.Timestamptz, id pgtype.Text) (pgtype.Text, error)

UpdateRunForceCancelAvailableAt implements Querier.UpdateRunForceCancelAvailableAt.

func (*DBQuerier) UpdateRunForceCancelAvailableAtBatch

func (q *DBQuerier) UpdateRunForceCancelAvailableAtBatch(batch genericBatch, forceCancelAvailableAt pgtype.Timestamptz, id pgtype.Text)

UpdateRunForceCancelAvailableAtBatch implements Querier.UpdateRunForceCancelAvailableAtBatch.

func (*DBQuerier) UpdateRunForceCancelAvailableAtScan

func (q *DBQuerier) UpdateRunForceCancelAvailableAtScan(results pgx.BatchResults) (pgtype.Text, error)

UpdateRunForceCancelAvailableAtScan implements Querier.UpdateRunForceCancelAvailableAtScan.

func (*DBQuerier) UpdateRunStatus

func (q *DBQuerier) UpdateRunStatus(ctx context.Context, status pgtype.Text, id pgtype.Text) (pgtype.Text, error)

UpdateRunStatus implements Querier.UpdateRunStatus.

func (*DBQuerier) UpdateRunStatusBatch

func (q *DBQuerier) UpdateRunStatusBatch(batch genericBatch, status pgtype.Text, id pgtype.Text)

UpdateRunStatusBatch implements Querier.UpdateRunStatusBatch.

func (*DBQuerier) UpdateRunStatusScan

func (q *DBQuerier) UpdateRunStatusScan(results pgx.BatchResults) (pgtype.Text, error)

UpdateRunStatusScan implements Querier.UpdateRunStatusScan.

func (*DBQuerier) UpdateSessionExpiry

func (q *DBQuerier) UpdateSessionExpiry(ctx context.Context, expiry pgtype.Timestamptz, token pgtype.Text) (pgtype.Text, error)

UpdateSessionExpiry implements Querier.UpdateSessionExpiry.

func (*DBQuerier) UpdateSessionExpiryBatch

func (q *DBQuerier) UpdateSessionExpiryBatch(batch genericBatch, expiry pgtype.Timestamptz, token pgtype.Text)

UpdateSessionExpiryBatch implements Querier.UpdateSessionExpiryBatch.

func (*DBQuerier) UpdateSessionExpiryScan

func (q *DBQuerier) UpdateSessionExpiryScan(results pgx.BatchResults) (pgtype.Text, error)

UpdateSessionExpiryScan implements Querier.UpdateSessionExpiryScan.

func (*DBQuerier) UpdateTeamByName

func (q *DBQuerier) UpdateTeamByName(ctx context.Context, params UpdateTeamByNameParams) (pgtype.Text, error)

UpdateTeamByName implements Querier.UpdateTeamByName.

func (*DBQuerier) UpdateTeamByNameBatch

func (q *DBQuerier) UpdateTeamByNameBatch(batch genericBatch, params UpdateTeamByNameParams)

UpdateTeamByNameBatch implements Querier.UpdateTeamByNameBatch.

func (*DBQuerier) UpdateTeamByNameScan

func (q *DBQuerier) UpdateTeamByNameScan(results pgx.BatchResults) (pgtype.Text, error)

UpdateTeamByNameScan implements Querier.UpdateTeamByNameScan.

func (*DBQuerier) UpdateVCSRepo added in v0.0.16

func (q *DBQuerier) UpdateVCSRepo(ctx context.Context, params UpdateVCSRepoParams) (pgtype.Text, error)

UpdateVCSRepo implements Querier.UpdateVCSRepo.

func (*DBQuerier) UpdateVCSRepoBatch added in v0.0.16

func (q *DBQuerier) UpdateVCSRepoBatch(batch genericBatch, params UpdateVCSRepoParams)

UpdateVCSRepoBatch implements Querier.UpdateVCSRepoBatch.

func (*DBQuerier) UpdateVCSRepoScan added in v0.0.16

func (q *DBQuerier) UpdateVCSRepoScan(results pgx.BatchResults) (pgtype.Text, error)

UpdateVCSRepoScan implements Querier.UpdateVCSRepoScan.

func (*DBQuerier) UpdateWorkspaceByID

func (q *DBQuerier) UpdateWorkspaceByID(ctx context.Context, params UpdateWorkspaceByIDParams) (pgtype.Text, error)

UpdateWorkspaceByID implements Querier.UpdateWorkspaceByID.

func (*DBQuerier) UpdateWorkspaceByIDBatch

func (q *DBQuerier) UpdateWorkspaceByIDBatch(batch genericBatch, params UpdateWorkspaceByIDParams)

UpdateWorkspaceByIDBatch implements Querier.UpdateWorkspaceByIDBatch.

func (*DBQuerier) UpdateWorkspaceByIDScan

func (q *DBQuerier) UpdateWorkspaceByIDScan(results pgx.BatchResults) (pgtype.Text, error)

UpdateWorkspaceByIDScan implements Querier.UpdateWorkspaceByIDScan.

func (*DBQuerier) UpdateWorkspaceLatestRun

func (q *DBQuerier) UpdateWorkspaceLatestRun(ctx context.Context, runID pgtype.Text, workspaceID pgtype.Text) (pgconn.CommandTag, error)

UpdateWorkspaceLatestRun implements Querier.UpdateWorkspaceLatestRun.

func (*DBQuerier) UpdateWorkspaceLatestRunBatch

func (q *DBQuerier) UpdateWorkspaceLatestRunBatch(batch genericBatch, runID pgtype.Text, workspaceID pgtype.Text)

UpdateWorkspaceLatestRunBatch implements Querier.UpdateWorkspaceLatestRunBatch.

func (*DBQuerier) UpdateWorkspaceLatestRunScan

func (q *DBQuerier) UpdateWorkspaceLatestRunScan(results pgx.BatchResults) (pgconn.CommandTag, error)

UpdateWorkspaceLatestRunScan implements Querier.UpdateWorkspaceLatestRunScan.

func (*DBQuerier) UpdateWorkspaceLockByID

func (q *DBQuerier) UpdateWorkspaceLockByID(ctx context.Context, params UpdateWorkspaceLockByIDParams) (pgconn.CommandTag, error)

UpdateWorkspaceLockByID implements Querier.UpdateWorkspaceLockByID.

func (*DBQuerier) UpdateWorkspaceLockByIDBatch

func (q *DBQuerier) UpdateWorkspaceLockByIDBatch(batch genericBatch, params UpdateWorkspaceLockByIDParams)

UpdateWorkspaceLockByIDBatch implements Querier.UpdateWorkspaceLockByIDBatch.

func (*DBQuerier) UpdateWorkspaceLockByIDScan

func (q *DBQuerier) UpdateWorkspaceLockByIDScan(results pgx.BatchResults) (pgconn.CommandTag, error)

UpdateWorkspaceLockByIDScan implements Querier.UpdateWorkspaceLockByIDScan.

func (*DBQuerier) UpsertWorkspacePermission

func (q *DBQuerier) UpsertWorkspacePermission(ctx context.Context, params UpsertWorkspacePermissionParams) (pgconn.CommandTag, error)

UpsertWorkspacePermission implements Querier.UpsertWorkspacePermission.

func (*DBQuerier) UpsertWorkspacePermissionBatch

func (q *DBQuerier) UpsertWorkspacePermissionBatch(batch genericBatch, params UpsertWorkspacePermissionParams)

UpsertWorkspacePermissionBatch implements Querier.UpsertWorkspacePermissionBatch.

func (*DBQuerier) UpsertWorkspacePermissionScan

func (q *DBQuerier) UpsertWorkspacePermissionScan(results pgx.BatchResults) (pgconn.CommandTag, error)

UpsertWorkspacePermissionScan implements Querier.UpsertWorkspacePermissionScan.

func (*DBQuerier) WithTx

func (q *DBQuerier) WithTx(tx pgx.Tx) (*DBQuerier, error)

WithTx creates a new DBQuerier that uses the transaction to run all queries.

type DeleteWorkspacePermissionByNameParams

type DeleteWorkspacePermissionByNameParams struct {
	WorkspaceName    pgtype.Text
	OrganizationName pgtype.Text
	TeamName         pgtype.Text
}

type FindAgentTokenRow

type FindAgentTokenRow struct {
	TokenID          pgtype.Text        `json:"token_id"`
	Token            pgtype.Text        `json:"token"`
	CreatedAt        pgtype.Timestamptz `json:"created_at"`
	Description      pgtype.Text        `json:"description"`
	OrganizationName pgtype.Text        `json:"organization_name"`
}

type FindAgentTokensRow

type FindAgentTokensRow struct {
	TokenID          pgtype.Text        `json:"token_id"`
	Token            pgtype.Text        `json:"token"`
	CreatedAt        pgtype.Timestamptz `json:"created_at"`
	Description      pgtype.Text        `json:"description"`
	OrganizationName pgtype.Text        `json:"organization_name"`
}

type FindConfigurationVersionByIDForUpdateRow

type FindConfigurationVersionByIDForUpdateRow struct {
	ConfigurationVersionID               pgtype.Text                            `json:"configuration_version_id"`
	CreatedAt                            pgtype.Timestamptz                     `json:"created_at"`
	AutoQueueRuns                        bool                                   `json:"auto_queue_runs"`
	Source                               pgtype.Text                            `json:"source"`
	Speculative                          bool                                   `json:"speculative"`
	Status                               pgtype.Text                            `json:"status"`
	WorkspaceID                          pgtype.Text                            `json:"workspace_id"`
	ConfigurationVersionStatusTimestamps []ConfigurationVersionStatusTimestamps `json:"configuration_version_status_timestamps"`
}

type FindConfigurationVersionByIDRow

type FindConfigurationVersionByIDRow struct {
	ConfigurationVersionID               pgtype.Text                            `json:"configuration_version_id"`
	CreatedAt                            pgtype.Timestamptz                     `json:"created_at"`
	AutoQueueRuns                        bool                                   `json:"auto_queue_runs"`
	Source                               pgtype.Text                            `json:"source"`
	Speculative                          bool                                   `json:"speculative"`
	Status                               pgtype.Text                            `json:"status"`
	WorkspaceID                          pgtype.Text                            `json:"workspace_id"`
	ConfigurationVersionStatusTimestamps []ConfigurationVersionStatusTimestamps `json:"configuration_version_status_timestamps"`
}

type FindConfigurationVersionLatestByWorkspaceIDRow

type FindConfigurationVersionLatestByWorkspaceIDRow struct {
	ConfigurationVersionID               pgtype.Text                            `json:"configuration_version_id"`
	CreatedAt                            pgtype.Timestamptz                     `json:"created_at"`
	AutoQueueRuns                        bool                                   `json:"auto_queue_runs"`
	Source                               pgtype.Text                            `json:"source"`
	Speculative                          bool                                   `json:"speculative"`
	Status                               pgtype.Text                            `json:"status"`
	WorkspaceID                          pgtype.Text                            `json:"workspace_id"`
	ConfigurationVersionStatusTimestamps []ConfigurationVersionStatusTimestamps `json:"configuration_version_status_timestamps"`
}

type FindConfigurationVersionsByWorkspaceIDParams

type FindConfigurationVersionsByWorkspaceIDParams struct {
	WorkspaceID pgtype.Text
	Limit       int
	Offset      int
}

type FindConfigurationVersionsByWorkspaceIDRow

type FindConfigurationVersionsByWorkspaceIDRow struct {
	ConfigurationVersionID               pgtype.Text                            `json:"configuration_version_id"`
	CreatedAt                            pgtype.Timestamptz                     `json:"created_at"`
	AutoQueueRuns                        bool                                   `json:"auto_queue_runs"`
	Source                               pgtype.Text                            `json:"source"`
	Speculative                          bool                                   `json:"speculative"`
	Status                               pgtype.Text                            `json:"status"`
	WorkspaceID                          pgtype.Text                            `json:"workspace_id"`
	ConfigurationVersionStatusTimestamps []ConfigurationVersionStatusTimestamps `json:"configuration_version_status_timestamps"`
}

type FindLogChunkByIDRow

type FindLogChunkByIDRow struct {
	ChunkID int         `json:"chunk_id"`
	RunID   pgtype.Text `json:"run_id"`
	Phase   pgtype.Text `json:"phase"`
	Chunk   []byte      `json:"chunk"`
	Offset  int         `json:"offset"`
}

type FindLogChunksParams

type FindLogChunksParams struct {
	Offset int
	Limit  int
	RunID  pgtype.Text
	Phase  pgtype.Text
}

type FindOrganizationByNameForUpdateRow

type FindOrganizationByNameForUpdateRow struct {
	OrganizationID  pgtype.Text        `json:"organization_id"`
	CreatedAt       pgtype.Timestamptz `json:"created_at"`
	UpdatedAt       pgtype.Timestamptz `json:"updated_at"`
	Name            pgtype.Text        `json:"name"`
	SessionRemember int                `json:"session_remember"`
	SessionTimeout  int                `json:"session_timeout"`
}

type FindOrganizationByNameRow

type FindOrganizationByNameRow struct {
	OrganizationID  pgtype.Text        `json:"organization_id"`
	CreatedAt       pgtype.Timestamptz `json:"created_at"`
	UpdatedAt       pgtype.Timestamptz `json:"updated_at"`
	Name            pgtype.Text        `json:"name"`
	SessionRemember int                `json:"session_remember"`
	SessionTimeout  int                `json:"session_timeout"`
}

type FindOrganizationsRow

type FindOrganizationsRow struct {
	OrganizationID  pgtype.Text        `json:"organization_id"`
	CreatedAt       pgtype.Timestamptz `json:"created_at"`
	UpdatedAt       pgtype.Timestamptz `json:"updated_at"`
	Name            pgtype.Text        `json:"name"`
	SessionRemember int                `json:"session_remember"`
	SessionTimeout  int                `json:"session_timeout"`
}

type FindRunByIDForUpdateRow

type FindRunByIDForUpdateRow struct {
	RunID                  pgtype.Text             `json:"run_id"`
	CreatedAt              pgtype.Timestamptz      `json:"created_at"`
	ForceCancelAvailableAt pgtype.Timestamptz      `json:"force_cancel_available_at"`
	IsDestroy              bool                    `json:"is_destroy"`
	PositionInQueue        int                     `json:"position_in_queue"`
	Refresh                bool                    `json:"refresh"`
	RefreshOnly            bool                    `json:"refresh_only"`
	Status                 pgtype.Text             `json:"status"`
	PlanStatus             pgtype.Text             `json:"plan_status"`
	ApplyStatus            pgtype.Text             `json:"apply_status"`
	ReplaceAddrs           []string                `json:"replace_addrs"`
	TargetAddrs            []string                `json:"target_addrs"`
	PlannedChanges         *Report                 `json:"planned_changes"`
	AppliedChanges         *Report                 `json:"applied_changes"`
	ConfigurationVersionID pgtype.Text             `json:"configuration_version_id"`
	WorkspaceID            pgtype.Text             `json:"workspace_id"`
	Speculative            bool                    `json:"speculative"`
	AutoApply              bool                    `json:"auto_apply"`
	WorkspaceName          pgtype.Text             `json:"workspace_name"`
	ExecutionMode          pgtype.Text             `json:"execution_mode"`
	Latest                 bool                    `json:"latest"`
	OrganizationName       pgtype.Text             `json:"organization_name"`
	RunStatusTimestamps    []RunStatusTimestamps   `json:"run_status_timestamps"`
	PlanStatusTimestamps   []PhaseStatusTimestamps `json:"plan_status_timestamps"`
	ApplyStatusTimestamps  []PhaseStatusTimestamps `json:"apply_status_timestamps"`
}

type FindRunByIDRow

type FindRunByIDRow struct {
	RunID                  pgtype.Text             `json:"run_id"`
	CreatedAt              pgtype.Timestamptz      `json:"created_at"`
	ForceCancelAvailableAt pgtype.Timestamptz      `json:"force_cancel_available_at"`
	IsDestroy              bool                    `json:"is_destroy"`
	PositionInQueue        int                     `json:"position_in_queue"`
	Refresh                bool                    `json:"refresh"`
	RefreshOnly            bool                    `json:"refresh_only"`
	Status                 pgtype.Text             `json:"status"`
	PlanStatus             pgtype.Text             `json:"plan_status"`
	ApplyStatus            pgtype.Text             `json:"apply_status"`
	ReplaceAddrs           []string                `json:"replace_addrs"`
	TargetAddrs            []string                `json:"target_addrs"`
	PlannedChanges         *Report                 `json:"planned_changes"`
	AppliedChanges         *Report                 `json:"applied_changes"`
	ConfigurationVersionID pgtype.Text             `json:"configuration_version_id"`
	WorkspaceID            pgtype.Text             `json:"workspace_id"`
	Speculative            bool                    `json:"speculative"`
	AutoApply              bool                    `json:"auto_apply"`
	WorkspaceName          pgtype.Text             `json:"workspace_name"`
	ExecutionMode          pgtype.Text             `json:"execution_mode"`
	Latest                 bool                    `json:"latest"`
	OrganizationName       pgtype.Text             `json:"organization_name"`
	RunStatusTimestamps    []RunStatusTimestamps   `json:"run_status_timestamps"`
	PlanStatusTimestamps   []PhaseStatusTimestamps `json:"plan_status_timestamps"`
	ApplyStatusTimestamps  []PhaseStatusTimestamps `json:"apply_status_timestamps"`
}

type FindRunsParams

type FindRunsParams struct {
	OrganizationNames []string
	WorkspaceIds      []string
	WorkspaceNames    []string
	Statuses          []string
	Speculative       []string
	Limit             int
	Offset            int
}

type FindRunsRow

type FindRunsRow struct {
	RunID                  pgtype.Text             `json:"run_id"`
	CreatedAt              pgtype.Timestamptz      `json:"created_at"`
	ForceCancelAvailableAt pgtype.Timestamptz      `json:"force_cancel_available_at"`
	IsDestroy              bool                    `json:"is_destroy"`
	PositionInQueue        int                     `json:"position_in_queue"`
	Refresh                bool                    `json:"refresh"`
	RefreshOnly            bool                    `json:"refresh_only"`
	Status                 pgtype.Text             `json:"status"`
	PlanStatus             pgtype.Text             `json:"plan_status"`
	ApplyStatus            pgtype.Text             `json:"apply_status"`
	ReplaceAddrs           []string                `json:"replace_addrs"`
	TargetAddrs            []string                `json:"target_addrs"`
	PlannedChanges         *Report                 `json:"planned_changes"`
	AppliedChanges         *Report                 `json:"applied_changes"`
	ConfigurationVersionID pgtype.Text             `json:"configuration_version_id"`
	WorkspaceID            pgtype.Text             `json:"workspace_id"`
	Speculative            bool                    `json:"speculative"`
	AutoApply              bool                    `json:"auto_apply"`
	WorkspaceName          pgtype.Text             `json:"workspace_name"`
	ExecutionMode          pgtype.Text             `json:"execution_mode"`
	Latest                 bool                    `json:"latest"`
	OrganizationName       pgtype.Text             `json:"organization_name"`
	RunStatusTimestamps    []RunStatusTimestamps   `json:"run_status_timestamps"`
	PlanStatusTimestamps   []PhaseStatusTimestamps `json:"plan_status_timestamps"`
	ApplyStatusTimestamps  []PhaseStatusTimestamps `json:"apply_status_timestamps"`
}

type FindSessionByTokenRow

type FindSessionByTokenRow struct {
	Token     pgtype.Text        `json:"token"`
	CreatedAt pgtype.Timestamptz `json:"created_at"`
	Address   pgtype.Text        `json:"address"`
	Expiry    pgtype.Timestamptz `json:"expiry"`
	UserID    pgtype.Text        `json:"user_id"`
}

type FindSessionsByUserIDRow

type FindSessionsByUserIDRow struct {
	Token     pgtype.Text        `json:"token"`
	CreatedAt pgtype.Timestamptz `json:"created_at"`
	Address   pgtype.Text        `json:"address"`
	Expiry    pgtype.Timestamptz `json:"expiry"`
	UserID    pgtype.Text        `json:"user_id"`
}

type FindStateVersionByIDRow

type FindStateVersionByIDRow struct {
	StateVersionID      pgtype.Text           `json:"state_version_id"`
	CreatedAt           pgtype.Timestamptz    `json:"created_at"`
	Serial              int                   `json:"serial"`
	State               []byte                `json:"state"`
	WorkspaceID         pgtype.Text           `json:"workspace_id"`
	StateVersionOutputs []StateVersionOutputs `json:"state_version_outputs"`
}

type FindStateVersionLatestByWorkspaceIDRow

type FindStateVersionLatestByWorkspaceIDRow struct {
	StateVersionID      pgtype.Text           `json:"state_version_id"`
	CreatedAt           pgtype.Timestamptz    `json:"created_at"`
	Serial              int                   `json:"serial"`
	State               []byte                `json:"state"`
	WorkspaceID         pgtype.Text           `json:"workspace_id"`
	StateVersionOutputs []StateVersionOutputs `json:"state_version_outputs"`
}

type FindStateVersionsByWorkspaceNameParams

type FindStateVersionsByWorkspaceNameParams struct {
	WorkspaceName    pgtype.Text
	OrganizationName pgtype.Text
	Limit            int
	Offset           int
}

type FindStateVersionsByWorkspaceNameRow

type FindStateVersionsByWorkspaceNameRow struct {
	StateVersionID      pgtype.Text           `json:"state_version_id"`
	CreatedAt           pgtype.Timestamptz    `json:"created_at"`
	Serial              int                   `json:"serial"`
	State               []byte                `json:"state"`
	WorkspaceID         pgtype.Text           `json:"workspace_id"`
	StateVersionOutputs []StateVersionOutputs `json:"state_version_outputs"`
}

type FindTeamByNameForUpdateRow

type FindTeamByNameForUpdateRow struct {
	TeamID                     pgtype.Text        `json:"team_id"`
	Name                       pgtype.Text        `json:"name"`
	CreatedAt                  pgtype.Timestamptz `json:"created_at"`
	OrganizationID             pgtype.Text        `json:"organization_id"`
	PermissionManageWorkspaces bool               `json:"permission_manage_workspaces"`
	Organization               *Organizations     `json:"organization"`
}

type FindTeamByNameRow

type FindTeamByNameRow struct {
	TeamID                     pgtype.Text        `json:"team_id"`
	Name                       pgtype.Text        `json:"name"`
	CreatedAt                  pgtype.Timestamptz `json:"created_at"`
	OrganizationID             pgtype.Text        `json:"organization_id"`
	PermissionManageWorkspaces bool               `json:"permission_manage_workspaces"`
	Organization               *Organizations     `json:"organization"`
}

type FindTeamsByOrgRow

type FindTeamsByOrgRow struct {
	TeamID                     pgtype.Text        `json:"team_id"`
	Name                       pgtype.Text        `json:"name"`
	CreatedAt                  pgtype.Timestamptz `json:"created_at"`
	OrganizationID             pgtype.Text        `json:"organization_id"`
	PermissionManageWorkspaces bool               `json:"permission_manage_workspaces"`
	Organization               *Organizations     `json:"organization"`
}

type FindTokensByUserIDRow

type FindTokensByUserIDRow struct {
	TokenID     pgtype.Text        `json:"token_id"`
	Token       pgtype.Text        `json:"token"`
	CreatedAt   pgtype.Timestamptz `json:"created_at"`
	Description pgtype.Text        `json:"description"`
	UserID      pgtype.Text        `json:"user_id"`
}

type FindUserByAuthenticationTokenRow

type FindUserByAuthenticationTokenRow struct {
	UserID        pgtype.Text        `json:"user_id"`
	Username      pgtype.Text        `json:"username"`
	CreatedAt     pgtype.Timestamptz `json:"created_at"`
	UpdatedAt     pgtype.Timestamptz `json:"updated_at"`
	Organizations []Organizations    `json:"organizations"`
	Teams         []Teams            `json:"teams"`
}

type FindUserByIDRow

type FindUserByIDRow struct {
	UserID        pgtype.Text        `json:"user_id"`
	Username      pgtype.Text        `json:"username"`
	CreatedAt     pgtype.Timestamptz `json:"created_at"`
	UpdatedAt     pgtype.Timestamptz `json:"updated_at"`
	Organizations []Organizations    `json:"organizations"`
	Teams         []Teams            `json:"teams"`
}

type FindUserBySessionTokenRow

type FindUserBySessionTokenRow struct {
	UserID        pgtype.Text        `json:"user_id"`
	Username      pgtype.Text        `json:"username"`
	CreatedAt     pgtype.Timestamptz `json:"created_at"`
	UpdatedAt     pgtype.Timestamptz `json:"updated_at"`
	Organizations []Organizations    `json:"organizations"`
	Teams         []Teams            `json:"teams"`
}

type FindUserByUsernameRow

type FindUserByUsernameRow struct {
	UserID        pgtype.Text        `json:"user_id"`
	Username      pgtype.Text        `json:"username"`
	CreatedAt     pgtype.Timestamptz `json:"created_at"`
	UpdatedAt     pgtype.Timestamptz `json:"updated_at"`
	Organizations []Organizations    `json:"organizations"`
	Teams         []Teams            `json:"teams"`
}

type FindUsersByOrganizationRow

type FindUsersByOrganizationRow struct {
	UserID        pgtype.Text        `json:"user_id"`
	Username      pgtype.Text        `json:"username"`
	CreatedAt     pgtype.Timestamptz `json:"created_at"`
	UpdatedAt     pgtype.Timestamptz `json:"updated_at"`
	Organizations []Organizations    `json:"organizations"`
	Teams         []Teams            `json:"teams"`
}

type FindUsersByTeamRow

type FindUsersByTeamRow struct {
	UserID        pgtype.Text        `json:"user_id"`
	Username      pgtype.Text        `json:"username"`
	CreatedAt     pgtype.Timestamptz `json:"created_at"`
	UpdatedAt     pgtype.Timestamptz `json:"updated_at"`
	Organizations []Organizations    `json:"organizations"`
	Teams         []Teams            `json:"teams"`
}

type FindUsersRow

type FindUsersRow struct {
	UserID        pgtype.Text        `json:"user_id"`
	Username      pgtype.Text        `json:"username"`
	CreatedAt     pgtype.Timestamptz `json:"created_at"`
	UpdatedAt     pgtype.Timestamptz `json:"updated_at"`
	Organizations []Organizations    `json:"organizations"`
	Teams         []Teams            `json:"teams"`
}

type FindVCSProviderRow added in v0.0.16

type FindVCSProviderRow struct {
	VCSProviderID       pgtype.Text        `json:"vcs_provider_id"`
	Token               pgtype.Text        `json:"token"`
	CreatedAt           pgtype.Timestamptz `json:"created_at"`
	Name                pgtype.Text        `json:"name"`
	Hostname            pgtype.Text        `json:"hostname"`
	SkipTLSVerification bool               `json:"skip_tls_verification"`
	Cloud               pgtype.Text        `json:"cloud"`
	OrganizationName    pgtype.Text        `json:"organization_name"`
}

type FindVCSProvidersRow added in v0.0.16

type FindVCSProvidersRow struct {
	VCSProviderID       pgtype.Text        `json:"vcs_provider_id"`
	Token               pgtype.Text        `json:"token"`
	CreatedAt           pgtype.Timestamptz `json:"created_at"`
	Name                pgtype.Text        `json:"name"`
	Hostname            pgtype.Text        `json:"hostname"`
	SkipTLSVerification bool               `json:"skip_tls_verification"`
	Cloud               pgtype.Text        `json:"cloud"`
	OrganizationName    pgtype.Text        `json:"organization_name"`
}

type FindWorkspaceByIDForUpdateRow

type FindWorkspaceByIDForUpdateRow struct {
	WorkspaceID                pgtype.Text        `json:"workspace_id"`
	CreatedAt                  pgtype.Timestamptz `json:"created_at"`
	UpdatedAt                  pgtype.Timestamptz `json:"updated_at"`
	AllowDestroyPlan           bool               `json:"allow_destroy_plan"`
	AutoApply                  bool               `json:"auto_apply"`
	CanQueueDestroyPlan        bool               `json:"can_queue_destroy_plan"`
	Description                pgtype.Text        `json:"description"`
	Environment                pgtype.Text        `json:"environment"`
	ExecutionMode              pgtype.Text        `json:"execution_mode"`
	FileTriggersEnabled        bool               `json:"file_triggers_enabled"`
	GlobalRemoteState          bool               `json:"global_remote_state"`
	MigrationEnvironment       pgtype.Text        `json:"migration_environment"`
	Name                       pgtype.Text        `json:"name"`
	QueueAllRuns               bool               `json:"queue_all_runs"`
	SpeculativeEnabled         bool               `json:"speculative_enabled"`
	SourceName                 pgtype.Text        `json:"source_name"`
	SourceURL                  pgtype.Text        `json:"source_url"`
	StructuredRunOutputEnabled bool               `json:"structured_run_output_enabled"`
	TerraformVersion           pgtype.Text        `json:"terraform_version"`
	TriggerPrefixes            []string           `json:"trigger_prefixes"`
	WorkingDirectory           pgtype.Text        `json:"working_directory"`
	OrganizationID             pgtype.Text        `json:"organization_id"`
	LockRunID                  pgtype.Text        `json:"lock_run_id"`
	LockUserID                 pgtype.Text        `json:"lock_user_id"`
	LatestRunID                pgtype.Text        `json:"latest_run_id"`
	Organization               *Organizations     `json:"organization"`
	UserLock                   *Users             `json:"user_lock"`
	RunLock                    *Runs              `json:"run_lock"`
	VCSRepo                    *VCSRepos          `json:"vcs_repo"`
}

type FindWorkspaceByIDRow

type FindWorkspaceByIDRow struct {
	WorkspaceID                pgtype.Text        `json:"workspace_id"`
	CreatedAt                  pgtype.Timestamptz `json:"created_at"`
	UpdatedAt                  pgtype.Timestamptz `json:"updated_at"`
	AllowDestroyPlan           bool               `json:"allow_destroy_plan"`
	AutoApply                  bool               `json:"auto_apply"`
	CanQueueDestroyPlan        bool               `json:"can_queue_destroy_plan"`
	Description                pgtype.Text        `json:"description"`
	Environment                pgtype.Text        `json:"environment"`
	ExecutionMode              pgtype.Text        `json:"execution_mode"`
	FileTriggersEnabled        bool               `json:"file_triggers_enabled"`
	GlobalRemoteState          bool               `json:"global_remote_state"`
	MigrationEnvironment       pgtype.Text        `json:"migration_environment"`
	Name                       pgtype.Text        `json:"name"`
	QueueAllRuns               bool               `json:"queue_all_runs"`
	SpeculativeEnabled         bool               `json:"speculative_enabled"`
	SourceName                 pgtype.Text        `json:"source_name"`
	SourceURL                  pgtype.Text        `json:"source_url"`
	StructuredRunOutputEnabled bool               `json:"structured_run_output_enabled"`
	TerraformVersion           pgtype.Text        `json:"terraform_version"`
	TriggerPrefixes            []string           `json:"trigger_prefixes"`
	WorkingDirectory           pgtype.Text        `json:"working_directory"`
	OrganizationID             pgtype.Text        `json:"organization_id"`
	LockRunID                  pgtype.Text        `json:"lock_run_id"`
	LockUserID                 pgtype.Text        `json:"lock_user_id"`
	LatestRunID                pgtype.Text        `json:"latest_run_id"`
	Organization               *Organizations     `json:"organization"`
	UserLock                   *Users             `json:"user_lock"`
	RunLock                    *Runs              `json:"run_lock"`
	VCSRepo                    *VCSRepos          `json:"vcs_repo"`
}

type FindWorkspaceByNameRow

type FindWorkspaceByNameRow struct {
	WorkspaceID                pgtype.Text        `json:"workspace_id"`
	CreatedAt                  pgtype.Timestamptz `json:"created_at"`
	UpdatedAt                  pgtype.Timestamptz `json:"updated_at"`
	AllowDestroyPlan           bool               `json:"allow_destroy_plan"`
	AutoApply                  bool               `json:"auto_apply"`
	CanQueueDestroyPlan        bool               `json:"can_queue_destroy_plan"`
	Description                pgtype.Text        `json:"description"`
	Environment                pgtype.Text        `json:"environment"`
	ExecutionMode              pgtype.Text        `json:"execution_mode"`
	FileTriggersEnabled        bool               `json:"file_triggers_enabled"`
	GlobalRemoteState          bool               `json:"global_remote_state"`
	MigrationEnvironment       pgtype.Text        `json:"migration_environment"`
	Name                       pgtype.Text        `json:"name"`
	QueueAllRuns               bool               `json:"queue_all_runs"`
	SpeculativeEnabled         bool               `json:"speculative_enabled"`
	SourceName                 pgtype.Text        `json:"source_name"`
	SourceURL                  pgtype.Text        `json:"source_url"`
	StructuredRunOutputEnabled bool               `json:"structured_run_output_enabled"`
	TerraformVersion           pgtype.Text        `json:"terraform_version"`
	TriggerPrefixes            []string           `json:"trigger_prefixes"`
	WorkingDirectory           pgtype.Text        `json:"working_directory"`
	OrganizationID             pgtype.Text        `json:"organization_id"`
	LockRunID                  pgtype.Text        `json:"lock_run_id"`
	LockUserID                 pgtype.Text        `json:"lock_user_id"`
	LatestRunID                pgtype.Text        `json:"latest_run_id"`
	Organization               *Organizations     `json:"organization"`
	UserLock                   *Users             `json:"user_lock"`
	RunLock                    *Runs              `json:"run_lock"`
	VCSRepo                    *VCSRepos          `json:"vcs_repo"`
}

type FindWorkspaceLockForUpdateRow

type FindWorkspaceLockForUpdateRow struct {
	WorkspaceID string `json:"workspace_id"`
	UserID      string `json:"user_id"`
	RunID       string `json:"run_id"`
}

type FindWorkspacePermissionsByIDRow

type FindWorkspacePermissionsByIDRow struct {
	Role         pgtype.Text    `json:"role"`
	Team         *Teams         `json:"team"`
	Organization *Organizations `json:"organization"`
}

type FindWorkspacePermissionsByNameRow

type FindWorkspacePermissionsByNameRow struct {
	Role         pgtype.Text    `json:"role"`
	Team         *Teams         `json:"team"`
	Organization *Organizations `json:"organization"`
}

type FindWorkspacesByUserIDParams

type FindWorkspacesByUserIDParams struct {
	OrganizationName pgtype.Text
	UserID           pgtype.Text
	Limit            int
	Offset           int
}

type FindWorkspacesByUserIDRow

type FindWorkspacesByUserIDRow struct {
	WorkspaceID                pgtype.Text        `json:"workspace_id"`
	CreatedAt                  pgtype.Timestamptz `json:"created_at"`
	UpdatedAt                  pgtype.Timestamptz `json:"updated_at"`
	AllowDestroyPlan           bool               `json:"allow_destroy_plan"`
	AutoApply                  bool               `json:"auto_apply"`
	CanQueueDestroyPlan        bool               `json:"can_queue_destroy_plan"`
	Description                pgtype.Text        `json:"description"`
	Environment                pgtype.Text        `json:"environment"`
	ExecutionMode              pgtype.Text        `json:"execution_mode"`
	FileTriggersEnabled        bool               `json:"file_triggers_enabled"`
	GlobalRemoteState          bool               `json:"global_remote_state"`
	MigrationEnvironment       pgtype.Text        `json:"migration_environment"`
	Name                       pgtype.Text        `json:"name"`
	QueueAllRuns               bool               `json:"queue_all_runs"`
	SpeculativeEnabled         bool               `json:"speculative_enabled"`
	SourceName                 pgtype.Text        `json:"source_name"`
	SourceURL                  pgtype.Text        `json:"source_url"`
	StructuredRunOutputEnabled bool               `json:"structured_run_output_enabled"`
	TerraformVersion           pgtype.Text        `json:"terraform_version"`
	TriggerPrefixes            []string           `json:"trigger_prefixes"`
	WorkingDirectory           pgtype.Text        `json:"working_directory"`
	OrganizationID             pgtype.Text        `json:"organization_id"`
	LockRunID                  pgtype.Text        `json:"lock_run_id"`
	LockUserID                 pgtype.Text        `json:"lock_user_id"`
	LatestRunID                pgtype.Text        `json:"latest_run_id"`
	Organization               *Organizations     `json:"organization"`
	UserLock                   *Users             `json:"user_lock"`
	RunLock                    *Runs              `json:"run_lock"`
	VCSRepo                    *VCSRepos          `json:"vcs_repo"`
}

type FindWorkspacesParams

type FindWorkspacesParams struct {
	Prefix            pgtype.Text
	OrganizationNames []string
	Limit             int
	Offset            int
}

type FindWorkspacesRow

type FindWorkspacesRow struct {
	WorkspaceID                pgtype.Text        `json:"workspace_id"`
	CreatedAt                  pgtype.Timestamptz `json:"created_at"`
	UpdatedAt                  pgtype.Timestamptz `json:"updated_at"`
	AllowDestroyPlan           bool               `json:"allow_destroy_plan"`
	AutoApply                  bool               `json:"auto_apply"`
	CanQueueDestroyPlan        bool               `json:"can_queue_destroy_plan"`
	Description                pgtype.Text        `json:"description"`
	Environment                pgtype.Text        `json:"environment"`
	ExecutionMode              pgtype.Text        `json:"execution_mode"`
	FileTriggersEnabled        bool               `json:"file_triggers_enabled"`
	GlobalRemoteState          bool               `json:"global_remote_state"`
	MigrationEnvironment       pgtype.Text        `json:"migration_environment"`
	Name                       pgtype.Text        `json:"name"`
	QueueAllRuns               bool               `json:"queue_all_runs"`
	SpeculativeEnabled         bool               `json:"speculative_enabled"`
	SourceName                 pgtype.Text        `json:"source_name"`
	SourceURL                  pgtype.Text        `json:"source_url"`
	StructuredRunOutputEnabled bool               `json:"structured_run_output_enabled"`
	TerraformVersion           pgtype.Text        `json:"terraform_version"`
	TriggerPrefixes            []string           `json:"trigger_prefixes"`
	WorkingDirectory           pgtype.Text        `json:"working_directory"`
	OrganizationID             pgtype.Text        `json:"organization_id"`
	LockRunID                  pgtype.Text        `json:"lock_run_id"`
	LockUserID                 pgtype.Text        `json:"lock_user_id"`
	LatestRunID                pgtype.Text        `json:"latest_run_id"`
	Organization               *Organizations     `json:"organization"`
	UserLock                   *Users             `json:"user_lock"`
	RunLock                    *Runs              `json:"run_lock"`
	VCSRepo                    *VCSRepos          `json:"vcs_repo"`
}

type InsertAgentTokenParams

type InsertAgentTokenParams struct {
	TokenID          pgtype.Text
	Token            pgtype.Text
	CreatedAt        pgtype.Timestamptz
	Description      pgtype.Text
	OrganizationName pgtype.Text
}

type InsertConfigurationVersionParams

type InsertConfigurationVersionParams struct {
	ID            pgtype.Text
	CreatedAt     pgtype.Timestamptz
	AutoQueueRuns bool
	Source        pgtype.Text
	Speculative   bool
	Status        pgtype.Text
	WorkspaceID   pgtype.Text
}

type InsertConfigurationVersionStatusTimestampParams

type InsertConfigurationVersionStatusTimestampParams struct {
	ID        pgtype.Text
	Status    pgtype.Text
	Timestamp pgtype.Timestamptz
}

type InsertConfigurationVersionStatusTimestampRow

type InsertConfigurationVersionStatusTimestampRow struct {
	ConfigurationVersionID pgtype.Text        `json:"configuration_version_id"`
	Status                 pgtype.Text        `json:"status"`
	Timestamp              pgtype.Timestamptz `json:"timestamp"`
}

type InsertLogChunkParams

type InsertLogChunkParams struct {
	RunID  pgtype.Text
	Phase  pgtype.Text
	Chunk  []byte
	Offset int
}

type InsertOrganizationParams

type InsertOrganizationParams struct {
	ID              pgtype.Text
	CreatedAt       pgtype.Timestamptz
	UpdatedAt       pgtype.Timestamptz
	Name            pgtype.Text
	SessionRemember int
	SessionTimeout  int
}

type InsertPhaseStatusTimestampParams

type InsertPhaseStatusTimestampParams struct {
	RunID     pgtype.Text
	Phase     pgtype.Text
	Status    pgtype.Text
	Timestamp pgtype.Timestamptz
}

type InsertRunParams

type InsertRunParams struct {
	ID                     pgtype.Text
	CreatedAt              pgtype.Timestamptz
	IsDestroy              bool
	PositionInQueue        int
	Refresh                bool
	RefreshOnly            bool
	Status                 pgtype.Text
	ReplaceAddrs           []string
	TargetAddrs            []string
	ConfigurationVersionID pgtype.Text
	WorkspaceID            pgtype.Text
}

type InsertRunStatusTimestampParams

type InsertRunStatusTimestampParams struct {
	ID        pgtype.Text
	Status    pgtype.Text
	Timestamp pgtype.Timestamptz
}

type InsertSessionParams

type InsertSessionParams struct {
	Token     pgtype.Text
	CreatedAt pgtype.Timestamptz
	Address   pgtype.Text
	Expiry    pgtype.Timestamptz
	UserID    pgtype.Text
}

type InsertStateVersionOutputParams

type InsertStateVersionOutputParams struct {
	ID             pgtype.Text
	Name           pgtype.Text
	Sensitive      bool
	Type           pgtype.Text
	Value          pgtype.Text
	StateVersionID pgtype.Text
}

type InsertStateVersionParams

type InsertStateVersionParams struct {
	ID          pgtype.Text
	CreatedAt   pgtype.Timestamptz
	Serial      int
	State       []byte
	WorkspaceID pgtype.Text
}

type InsertTeamParams

type InsertTeamParams struct {
	ID             pgtype.Text
	Name           pgtype.Text
	CreatedAt      pgtype.Timestamptz
	OrganizationID pgtype.Text
}

type InsertTokenParams

type InsertTokenParams struct {
	TokenID     pgtype.Text
	Token       pgtype.Text
	CreatedAt   pgtype.Timestamptz
	Description pgtype.Text
	UserID      pgtype.Text
}

type InsertUserParams

type InsertUserParams struct {
	ID        pgtype.Text
	CreatedAt pgtype.Timestamptz
	UpdatedAt pgtype.Timestamptz
	Username  pgtype.Text
}

type InsertVCSProviderParams added in v0.0.16

type InsertVCSProviderParams struct {
	VCSProviderID       pgtype.Text
	Token               pgtype.Text
	CreatedAt           pgtype.Timestamptz
	Name                pgtype.Text
	Hostname            pgtype.Text
	SkipTLSVerification bool
	Cloud               pgtype.Text
	OrganizationName    pgtype.Text
}

type InsertVCSRepoParams added in v0.0.16

type InsertVCSRepoParams struct {
	Identifier    pgtype.Text
	Branch        pgtype.Text
	VCSProviderID pgtype.Text
	WorkspaceID   pgtype.Text
}

type InsertWorkspaceParams

type InsertWorkspaceParams struct {
	ID                         pgtype.Text
	CreatedAt                  pgtype.Timestamptz
	UpdatedAt                  pgtype.Timestamptz
	AllowDestroyPlan           bool
	AutoApply                  bool
	CanQueueDestroyPlan        bool
	Description                pgtype.Text
	Environment                pgtype.Text
	ExecutionMode              pgtype.Text
	FileTriggersEnabled        bool
	GlobalRemoteState          bool
	MigrationEnvironment       pgtype.Text
	Name                       pgtype.Text
	QueueAllRuns               bool
	SpeculativeEnabled         bool
	SourceName                 pgtype.Text
	SourceURL                  pgtype.Text
	StructuredRunOutputEnabled bool
	TerraformVersion           pgtype.Text
	TriggerPrefixes            []string
	WorkingDirectory           pgtype.Text
	OrganizationID             pgtype.Text
}

type Organizations

type Organizations struct {
	OrganizationID  pgtype.Text        `json:"organization_id"`
	CreatedAt       pgtype.Timestamptz `json:"created_at"`
	UpdatedAt       pgtype.Timestamptz `json:"updated_at"`
	Name            pgtype.Text        `json:"name"`
	SessionRemember int                `json:"session_remember"`
	SessionTimeout  int                `json:"session_timeout"`
}

Organizations represents the Postgres composite type "organizations".

type PhaseStatusTimestamps

type PhaseStatusTimestamps struct {
	RunID     pgtype.Text        `json:"run_id"`
	Phase     pgtype.Text        `json:"phase"`
	Status    pgtype.Text        `json:"status"`
	Timestamp pgtype.Timestamptz `json:"timestamp"`
}

PhaseStatusTimestamps represents the Postgres composite type "phase_status_timestamps".

type Querier

type Querier interface {
	InsertAgentToken(ctx context.Context, params InsertAgentTokenParams) (pgconn.CommandTag, error)
	// InsertAgentTokenBatch enqueues a InsertAgentToken query into batch to be executed
	// later by the batch.
	InsertAgentTokenBatch(batch genericBatch, params InsertAgentTokenParams)
	// InsertAgentTokenScan scans the result of an executed InsertAgentTokenBatch query.
	InsertAgentTokenScan(results pgx.BatchResults) (pgconn.CommandTag, error)

	FindAgentToken(ctx context.Context, token pgtype.Text) (FindAgentTokenRow, error)
	// FindAgentTokenBatch enqueues a FindAgentToken query into batch to be executed
	// later by the batch.
	FindAgentTokenBatch(batch genericBatch, token pgtype.Text)
	// FindAgentTokenScan scans the result of an executed FindAgentTokenBatch query.
	FindAgentTokenScan(results pgx.BatchResults) (FindAgentTokenRow, error)

	FindAgentTokens(ctx context.Context, organizationName pgtype.Text) ([]FindAgentTokensRow, error)
	// FindAgentTokensBatch enqueues a FindAgentTokens query into batch to be executed
	// later by the batch.
	FindAgentTokensBatch(batch genericBatch, organizationName pgtype.Text)
	// FindAgentTokensScan scans the result of an executed FindAgentTokensBatch query.
	FindAgentTokensScan(results pgx.BatchResults) ([]FindAgentTokensRow, error)

	DeleteAgentTokenByID(ctx context.Context, tokenID pgtype.Text) (pgtype.Text, error)
	// DeleteAgentTokenByIDBatch enqueues a DeleteAgentTokenByID query into batch to be executed
	// later by the batch.
	DeleteAgentTokenByIDBatch(batch genericBatch, tokenID pgtype.Text)
	// DeleteAgentTokenByIDScan scans the result of an executed DeleteAgentTokenByIDBatch query.
	DeleteAgentTokenByIDScan(results pgx.BatchResults) (pgtype.Text, error)

	InsertApply(ctx context.Context, runID pgtype.Text, status pgtype.Text) (pgconn.CommandTag, error)
	// InsertApplyBatch enqueues a InsertApply query into batch to be executed
	// later by the batch.
	InsertApplyBatch(batch genericBatch, runID pgtype.Text, status pgtype.Text)
	// InsertApplyScan scans the result of an executed InsertApplyBatch query.
	InsertApplyScan(results pgx.BatchResults) (pgconn.CommandTag, error)

	UpdateAppliedChangesByID(ctx context.Context, params UpdateAppliedChangesByIDParams) (pgtype.Text, error)
	// UpdateAppliedChangesByIDBatch enqueues a UpdateAppliedChangesByID query into batch to be executed
	// later by the batch.
	UpdateAppliedChangesByIDBatch(batch genericBatch, params UpdateAppliedChangesByIDParams)
	// UpdateAppliedChangesByIDScan scans the result of an executed UpdateAppliedChangesByIDBatch query.
	UpdateAppliedChangesByIDScan(results pgx.BatchResults) (pgtype.Text, error)

	UpdateApplyStatusByID(ctx context.Context, status pgtype.Text, runID pgtype.Text) (pgtype.Text, error)
	// UpdateApplyStatusByIDBatch enqueues a UpdateApplyStatusByID query into batch to be executed
	// later by the batch.
	UpdateApplyStatusByIDBatch(batch genericBatch, status pgtype.Text, runID pgtype.Text)
	// UpdateApplyStatusByIDScan scans the result of an executed UpdateApplyStatusByIDBatch query.
	UpdateApplyStatusByIDScan(results pgx.BatchResults) (pgtype.Text, error)

	InsertConfigurationVersion(ctx context.Context, params InsertConfigurationVersionParams) (pgconn.CommandTag, error)
	// InsertConfigurationVersionBatch enqueues a InsertConfigurationVersion query into batch to be executed
	// later by the batch.
	InsertConfigurationVersionBatch(batch genericBatch, params InsertConfigurationVersionParams)
	// InsertConfigurationVersionScan scans the result of an executed InsertConfigurationVersionBatch query.
	InsertConfigurationVersionScan(results pgx.BatchResults) (pgconn.CommandTag, error)

	InsertConfigurationVersionStatusTimestamp(ctx context.Context, params InsertConfigurationVersionStatusTimestampParams) (InsertConfigurationVersionStatusTimestampRow, error)
	// InsertConfigurationVersionStatusTimestampBatch enqueues a InsertConfigurationVersionStatusTimestamp query into batch to be executed
	// later by the batch.
	InsertConfigurationVersionStatusTimestampBatch(batch genericBatch, params InsertConfigurationVersionStatusTimestampParams)
	// InsertConfigurationVersionStatusTimestampScan scans the result of an executed InsertConfigurationVersionStatusTimestampBatch query.
	InsertConfigurationVersionStatusTimestampScan(results pgx.BatchResults) (InsertConfigurationVersionStatusTimestampRow, error)

	// FindConfigurationVersions finds configuration_versions for a given workspace.
	// Results are paginated with limit and offset, and total count is returned.
	//
	FindConfigurationVersionsByWorkspaceID(ctx context.Context, params FindConfigurationVersionsByWorkspaceIDParams) ([]FindConfigurationVersionsByWorkspaceIDRow, error)
	// FindConfigurationVersionsByWorkspaceIDBatch enqueues a FindConfigurationVersionsByWorkspaceID query into batch to be executed
	// later by the batch.
	FindConfigurationVersionsByWorkspaceIDBatch(batch genericBatch, params FindConfigurationVersionsByWorkspaceIDParams)
	// FindConfigurationVersionsByWorkspaceIDScan scans the result of an executed FindConfigurationVersionsByWorkspaceIDBatch query.
	FindConfigurationVersionsByWorkspaceIDScan(results pgx.BatchResults) ([]FindConfigurationVersionsByWorkspaceIDRow, error)

	CountConfigurationVersionsByWorkspaceID(ctx context.Context, workspaceID pgtype.Text) (*int, error)
	// CountConfigurationVersionsByWorkspaceIDBatch enqueues a CountConfigurationVersionsByWorkspaceID query into batch to be executed
	// later by the batch.
	CountConfigurationVersionsByWorkspaceIDBatch(batch genericBatch, workspaceID pgtype.Text)
	// CountConfigurationVersionsByWorkspaceIDScan scans the result of an executed CountConfigurationVersionsByWorkspaceIDBatch query.
	CountConfigurationVersionsByWorkspaceIDScan(results pgx.BatchResults) (*int, error)

	// FindConfigurationVersionByID finds a configuration_version by its id.
	//
	FindConfigurationVersionByID(ctx context.Context, configurationVersionID pgtype.Text) (FindConfigurationVersionByIDRow, error)
	// FindConfigurationVersionByIDBatch enqueues a FindConfigurationVersionByID query into batch to be executed
	// later by the batch.
	FindConfigurationVersionByIDBatch(batch genericBatch, configurationVersionID pgtype.Text)
	// FindConfigurationVersionByIDScan scans the result of an executed FindConfigurationVersionByIDBatch query.
	FindConfigurationVersionByIDScan(results pgx.BatchResults) (FindConfigurationVersionByIDRow, error)

	FindConfigurationVersionLatestByWorkspaceID(ctx context.Context, workspaceID pgtype.Text) (FindConfigurationVersionLatestByWorkspaceIDRow, error)
	// FindConfigurationVersionLatestByWorkspaceIDBatch enqueues a FindConfigurationVersionLatestByWorkspaceID query into batch to be executed
	// later by the batch.
	FindConfigurationVersionLatestByWorkspaceIDBatch(batch genericBatch, workspaceID pgtype.Text)
	// FindConfigurationVersionLatestByWorkspaceIDScan scans the result of an executed FindConfigurationVersionLatestByWorkspaceIDBatch query.
	FindConfigurationVersionLatestByWorkspaceIDScan(results pgx.BatchResults) (FindConfigurationVersionLatestByWorkspaceIDRow, error)

	FindConfigurationVersionByIDForUpdate(ctx context.Context, configurationVersionID pgtype.Text) (FindConfigurationVersionByIDForUpdateRow, error)
	// FindConfigurationVersionByIDForUpdateBatch enqueues a FindConfigurationVersionByIDForUpdate query into batch to be executed
	// later by the batch.
	FindConfigurationVersionByIDForUpdateBatch(batch genericBatch, configurationVersionID pgtype.Text)
	// FindConfigurationVersionByIDForUpdateScan scans the result of an executed FindConfigurationVersionByIDForUpdateBatch query.
	FindConfigurationVersionByIDForUpdateScan(results pgx.BatchResults) (FindConfigurationVersionByIDForUpdateRow, error)

	// DownloadConfigurationVersion gets a configuration_version config
	// tarball.
	//
	DownloadConfigurationVersion(ctx context.Context, configurationVersionID pgtype.Text) ([]byte, error)
	// DownloadConfigurationVersionBatch enqueues a DownloadConfigurationVersion query into batch to be executed
	// later by the batch.
	DownloadConfigurationVersionBatch(batch genericBatch, configurationVersionID pgtype.Text)
	// DownloadConfigurationVersionScan scans the result of an executed DownloadConfigurationVersionBatch query.
	DownloadConfigurationVersionScan(results pgx.BatchResults) ([]byte, error)

	UpdateConfigurationVersionErroredByID(ctx context.Context, id pgtype.Text) (pgtype.Text, error)
	// UpdateConfigurationVersionErroredByIDBatch enqueues a UpdateConfigurationVersionErroredByID query into batch to be executed
	// later by the batch.
	UpdateConfigurationVersionErroredByIDBatch(batch genericBatch, id pgtype.Text)
	// UpdateConfigurationVersionErroredByIDScan scans the result of an executed UpdateConfigurationVersionErroredByIDBatch query.
	UpdateConfigurationVersionErroredByIDScan(results pgx.BatchResults) (pgtype.Text, error)

	UpdateConfigurationVersionConfigByID(ctx context.Context, config []byte, id pgtype.Text) (pgtype.Text, error)
	// UpdateConfigurationVersionConfigByIDBatch enqueues a UpdateConfigurationVersionConfigByID query into batch to be executed
	// later by the batch.
	UpdateConfigurationVersionConfigByIDBatch(batch genericBatch, config []byte, id pgtype.Text)
	// UpdateConfigurationVersionConfigByIDScan scans the result of an executed UpdateConfigurationVersionConfigByIDBatch query.
	UpdateConfigurationVersionConfigByIDScan(results pgx.BatchResults) (pgtype.Text, error)

	DeleteConfigurationVersionByID(ctx context.Context, id pgtype.Text) (pgtype.Text, error)
	// DeleteConfigurationVersionByIDBatch enqueues a DeleteConfigurationVersionByID query into batch to be executed
	// later by the batch.
	DeleteConfigurationVersionByIDBatch(batch genericBatch, id pgtype.Text)
	// DeleteConfigurationVersionByIDScan scans the result of an executed DeleteConfigurationVersionByIDBatch query.
	DeleteConfigurationVersionByIDScan(results pgx.BatchResults) (pgtype.Text, error)

	FindOrganizationNameByWorkspaceID(ctx context.Context, workspaceID pgtype.Text) (pgtype.Text, error)
	// FindOrganizationNameByWorkspaceIDBatch enqueues a FindOrganizationNameByWorkspaceID query into batch to be executed
	// later by the batch.
	FindOrganizationNameByWorkspaceIDBatch(batch genericBatch, workspaceID pgtype.Text)
	// FindOrganizationNameByWorkspaceIDScan scans the result of an executed FindOrganizationNameByWorkspaceIDBatch query.
	FindOrganizationNameByWorkspaceIDScan(results pgx.BatchResults) (pgtype.Text, error)

	// FindOrganizationByName finds an organization by name.
	//
	FindOrganizationByName(ctx context.Context, name pgtype.Text) (FindOrganizationByNameRow, error)
	// FindOrganizationByNameBatch enqueues a FindOrganizationByName query into batch to be executed
	// later by the batch.
	FindOrganizationByNameBatch(batch genericBatch, name pgtype.Text)
	// FindOrganizationByNameScan scans the result of an executed FindOrganizationByNameBatch query.
	FindOrganizationByNameScan(results pgx.BatchResults) (FindOrganizationByNameRow, error)

	FindOrganizationByNameForUpdate(ctx context.Context, name pgtype.Text) (FindOrganizationByNameForUpdateRow, error)
	// FindOrganizationByNameForUpdateBatch enqueues a FindOrganizationByNameForUpdate query into batch to be executed
	// later by the batch.
	FindOrganizationByNameForUpdateBatch(batch genericBatch, name pgtype.Text)
	// FindOrganizationByNameForUpdateScan scans the result of an executed FindOrganizationByNameForUpdateBatch query.
	FindOrganizationByNameForUpdateScan(results pgx.BatchResults) (FindOrganizationByNameForUpdateRow, error)

	FindOrganizations(ctx context.Context, limit int, offset int) ([]FindOrganizationsRow, error)
	// FindOrganizationsBatch enqueues a FindOrganizations query into batch to be executed
	// later by the batch.
	FindOrganizationsBatch(batch genericBatch, limit int, offset int)
	// FindOrganizationsScan scans the result of an executed FindOrganizationsBatch query.
	FindOrganizationsScan(results pgx.BatchResults) ([]FindOrganizationsRow, error)

	CountOrganizations(ctx context.Context) (*int, error)
	// CountOrganizationsBatch enqueues a CountOrganizations query into batch to be executed
	// later by the batch.
	CountOrganizationsBatch(batch genericBatch)
	// CountOrganizationsScan scans the result of an executed CountOrganizationsBatch query.
	CountOrganizationsScan(results pgx.BatchResults) (*int, error)

	InsertOrganization(ctx context.Context, params InsertOrganizationParams) (pgconn.CommandTag, error)
	// InsertOrganizationBatch enqueues a InsertOrganization query into batch to be executed
	// later by the batch.
	InsertOrganizationBatch(batch genericBatch, params InsertOrganizationParams)
	// InsertOrganizationScan scans the result of an executed InsertOrganizationBatch query.
	InsertOrganizationScan(results pgx.BatchResults) (pgconn.CommandTag, error)

	UpdateOrganizationByName(ctx context.Context, params UpdateOrganizationByNameParams) (pgtype.Text, error)
	// UpdateOrganizationByNameBatch enqueues a UpdateOrganizationByName query into batch to be executed
	// later by the batch.
	UpdateOrganizationByNameBatch(batch genericBatch, params UpdateOrganizationByNameParams)
	// UpdateOrganizationByNameScan scans the result of an executed UpdateOrganizationByNameBatch query.
	UpdateOrganizationByNameScan(results pgx.BatchResults) (pgtype.Text, error)

	DeleteOrganization(ctx context.Context, name pgtype.Text) (pgtype.Text, error)
	// DeleteOrganizationBatch enqueues a DeleteOrganization query into batch to be executed
	// later by the batch.
	DeleteOrganizationBatch(batch genericBatch, name pgtype.Text)
	// DeleteOrganizationScan scans the result of an executed DeleteOrganizationBatch query.
	DeleteOrganizationScan(results pgx.BatchResults) (pgtype.Text, error)

	InsertOrganizationMembership(ctx context.Context, userID pgtype.Text, organizationID pgtype.Text) (pgconn.CommandTag, error)
	// InsertOrganizationMembershipBatch enqueues a InsertOrganizationMembership query into batch to be executed
	// later by the batch.
	InsertOrganizationMembershipBatch(batch genericBatch, userID pgtype.Text, organizationID pgtype.Text)
	// InsertOrganizationMembershipScan scans the result of an executed InsertOrganizationMembershipBatch query.
	InsertOrganizationMembershipScan(results pgx.BatchResults) (pgconn.CommandTag, error)

	DeleteOrganizationMembership(ctx context.Context, userID pgtype.Text, organizationID pgtype.Text) (pgtype.Text, error)
	// DeleteOrganizationMembershipBatch enqueues a DeleteOrganizationMembership query into batch to be executed
	// later by the batch.
	DeleteOrganizationMembershipBatch(batch genericBatch, userID pgtype.Text, organizationID pgtype.Text)
	// DeleteOrganizationMembershipScan scans the result of an executed DeleteOrganizationMembershipBatch query.
	DeleteOrganizationMembershipScan(results pgx.BatchResults) (pgtype.Text, error)

	InsertPhaseStatusTimestamp(ctx context.Context, params InsertPhaseStatusTimestampParams) (pgconn.CommandTag, error)
	// InsertPhaseStatusTimestampBatch enqueues a InsertPhaseStatusTimestamp query into batch to be executed
	// later by the batch.
	InsertPhaseStatusTimestampBatch(batch genericBatch, params InsertPhaseStatusTimestampParams)
	// InsertPhaseStatusTimestampScan scans the result of an executed InsertPhaseStatusTimestampBatch query.
	InsertPhaseStatusTimestampScan(results pgx.BatchResults) (pgconn.CommandTag, error)

	InsertLogChunk(ctx context.Context, params InsertLogChunkParams) (int, error)
	// InsertLogChunkBatch enqueues a InsertLogChunk query into batch to be executed
	// later by the batch.
	InsertLogChunkBatch(batch genericBatch, params InsertLogChunkParams)
	// InsertLogChunkScan scans the result of an executed InsertLogChunkBatch query.
	InsertLogChunkScan(results pgx.BatchResults) (int, error)

	FindLogChunks(ctx context.Context, params FindLogChunksParams) ([]byte, error)
	// FindLogChunksBatch enqueues a FindLogChunks query into batch to be executed
	// later by the batch.
	FindLogChunksBatch(batch genericBatch, params FindLogChunksParams)
	// FindLogChunksScan scans the result of an executed FindLogChunksBatch query.
	FindLogChunksScan(results pgx.BatchResults) ([]byte, error)

	FindLogChunkByID(ctx context.Context, chunkID int) (FindLogChunkByIDRow, error)
	// FindLogChunkByIDBatch enqueues a FindLogChunkByID query into batch to be executed
	// later by the batch.
	FindLogChunkByIDBatch(batch genericBatch, chunkID int)
	// FindLogChunkByIDScan scans the result of an executed FindLogChunkByIDBatch query.
	FindLogChunkByIDScan(results pgx.BatchResults) (FindLogChunkByIDRow, error)

	InsertPlan(ctx context.Context, runID pgtype.Text, status pgtype.Text) (pgconn.CommandTag, error)
	// InsertPlanBatch enqueues a InsertPlan query into batch to be executed
	// later by the batch.
	InsertPlanBatch(batch genericBatch, runID pgtype.Text, status pgtype.Text)
	// InsertPlanScan scans the result of an executed InsertPlanBatch query.
	InsertPlanScan(results pgx.BatchResults) (pgconn.CommandTag, error)

	UpdatePlanStatusByID(ctx context.Context, status pgtype.Text, runID pgtype.Text) (pgtype.Text, error)
	// UpdatePlanStatusByIDBatch enqueues a UpdatePlanStatusByID query into batch to be executed
	// later by the batch.
	UpdatePlanStatusByIDBatch(batch genericBatch, status pgtype.Text, runID pgtype.Text)
	// UpdatePlanStatusByIDScan scans the result of an executed UpdatePlanStatusByIDBatch query.
	UpdatePlanStatusByIDScan(results pgx.BatchResults) (pgtype.Text, error)

	UpdatePlannedChangesByID(ctx context.Context, params UpdatePlannedChangesByIDParams) (pgtype.Text, error)
	// UpdatePlannedChangesByIDBatch enqueues a UpdatePlannedChangesByID query into batch to be executed
	// later by the batch.
	UpdatePlannedChangesByIDBatch(batch genericBatch, params UpdatePlannedChangesByIDParams)
	// UpdatePlannedChangesByIDScan scans the result of an executed UpdatePlannedChangesByIDBatch query.
	UpdatePlannedChangesByIDScan(results pgx.BatchResults) (pgtype.Text, error)

	GetPlanBinByID(ctx context.Context, runID pgtype.Text) ([]byte, error)
	// GetPlanBinByIDBatch enqueues a GetPlanBinByID query into batch to be executed
	// later by the batch.
	GetPlanBinByIDBatch(batch genericBatch, runID pgtype.Text)
	// GetPlanBinByIDScan scans the result of an executed GetPlanBinByIDBatch query.
	GetPlanBinByIDScan(results pgx.BatchResults) ([]byte, error)

	GetPlanJSONByID(ctx context.Context, runID pgtype.Text) ([]byte, error)
	// GetPlanJSONByIDBatch enqueues a GetPlanJSONByID query into batch to be executed
	// later by the batch.
	GetPlanJSONByIDBatch(batch genericBatch, runID pgtype.Text)
	// GetPlanJSONByIDScan scans the result of an executed GetPlanJSONByIDBatch query.
	GetPlanJSONByIDScan(results pgx.BatchResults) ([]byte, error)

	UpdatePlanBinByID(ctx context.Context, planBin []byte, runID pgtype.Text) (pgtype.Text, error)
	// UpdatePlanBinByIDBatch enqueues a UpdatePlanBinByID query into batch to be executed
	// later by the batch.
	UpdatePlanBinByIDBatch(batch genericBatch, planBin []byte, runID pgtype.Text)
	// UpdatePlanBinByIDScan scans the result of an executed UpdatePlanBinByIDBatch query.
	UpdatePlanBinByIDScan(results pgx.BatchResults) (pgtype.Text, error)

	UpdatePlanJSONByID(ctx context.Context, planJSON []byte, runID pgtype.Text) (pgtype.Text, error)
	// UpdatePlanJSONByIDBatch enqueues a UpdatePlanJSONByID query into batch to be executed
	// later by the batch.
	UpdatePlanJSONByIDBatch(batch genericBatch, planJSON []byte, runID pgtype.Text)
	// UpdatePlanJSONByIDScan scans the result of an executed UpdatePlanJSONByIDBatch query.
	UpdatePlanJSONByIDScan(results pgx.BatchResults) (pgtype.Text, error)

	InsertRun(ctx context.Context, params InsertRunParams) (pgconn.CommandTag, error)
	// InsertRunBatch enqueues a InsertRun query into batch to be executed
	// later by the batch.
	InsertRunBatch(batch genericBatch, params InsertRunParams)
	// InsertRunScan scans the result of an executed InsertRunBatch query.
	InsertRunScan(results pgx.BatchResults) (pgconn.CommandTag, error)

	InsertRunStatusTimestamp(ctx context.Context, params InsertRunStatusTimestampParams) (pgconn.CommandTag, error)
	// InsertRunStatusTimestampBatch enqueues a InsertRunStatusTimestamp query into batch to be executed
	// later by the batch.
	InsertRunStatusTimestampBatch(batch genericBatch, params InsertRunStatusTimestampParams)
	// InsertRunStatusTimestampScan scans the result of an executed InsertRunStatusTimestampBatch query.
	InsertRunStatusTimestampScan(results pgx.BatchResults) (pgconn.CommandTag, error)

	FindRuns(ctx context.Context, params FindRunsParams) ([]FindRunsRow, error)
	// FindRunsBatch enqueues a FindRuns query into batch to be executed
	// later by the batch.
	FindRunsBatch(batch genericBatch, params FindRunsParams)
	// FindRunsScan scans the result of an executed FindRunsBatch query.
	FindRunsScan(results pgx.BatchResults) ([]FindRunsRow, error)

	CountRuns(ctx context.Context, params CountRunsParams) (*int, error)
	// CountRunsBatch enqueues a CountRuns query into batch to be executed
	// later by the batch.
	CountRunsBatch(batch genericBatch, params CountRunsParams)
	// CountRunsScan scans the result of an executed CountRunsBatch query.
	CountRunsScan(results pgx.BatchResults) (*int, error)

	FindRunByID(ctx context.Context, runID pgtype.Text) (FindRunByIDRow, error)
	// FindRunByIDBatch enqueues a FindRunByID query into batch to be executed
	// later by the batch.
	FindRunByIDBatch(batch genericBatch, runID pgtype.Text)
	// FindRunByIDScan scans the result of an executed FindRunByIDBatch query.
	FindRunByIDScan(results pgx.BatchResults) (FindRunByIDRow, error)

	FindRunByIDForUpdate(ctx context.Context, runID pgtype.Text) (FindRunByIDForUpdateRow, error)
	// FindRunByIDForUpdateBatch enqueues a FindRunByIDForUpdate query into batch to be executed
	// later by the batch.
	FindRunByIDForUpdateBatch(batch genericBatch, runID pgtype.Text)
	// FindRunByIDForUpdateScan scans the result of an executed FindRunByIDForUpdateBatch query.
	FindRunByIDForUpdateScan(results pgx.BatchResults) (FindRunByIDForUpdateRow, error)

	PutLockFile(ctx context.Context, lockFile []byte, runID pgtype.Text) (pgtype.Text, error)
	// PutLockFileBatch enqueues a PutLockFile query into batch to be executed
	// later by the batch.
	PutLockFileBatch(batch genericBatch, lockFile []byte, runID pgtype.Text)
	// PutLockFileScan scans the result of an executed PutLockFileBatch query.
	PutLockFileScan(results pgx.BatchResults) (pgtype.Text, error)

	GetLockFile(ctx context.Context, runID pgtype.Text) ([]byte, error)
	// GetLockFileBatch enqueues a GetLockFile query into batch to be executed
	// later by the batch.
	GetLockFileBatch(batch genericBatch, runID pgtype.Text)
	// GetLockFileScan scans the result of an executed GetLockFileBatch query.
	GetLockFileScan(results pgx.BatchResults) ([]byte, error)

	UpdateRunStatus(ctx context.Context, status pgtype.Text, id pgtype.Text) (pgtype.Text, error)
	// UpdateRunStatusBatch enqueues a UpdateRunStatus query into batch to be executed
	// later by the batch.
	UpdateRunStatusBatch(batch genericBatch, status pgtype.Text, id pgtype.Text)
	// UpdateRunStatusScan scans the result of an executed UpdateRunStatusBatch query.
	UpdateRunStatusScan(results pgx.BatchResults) (pgtype.Text, error)

	UpdateRunForceCancelAvailableAt(ctx context.Context, forceCancelAvailableAt pgtype.Timestamptz, id pgtype.Text) (pgtype.Text, error)
	// UpdateRunForceCancelAvailableAtBatch enqueues a UpdateRunForceCancelAvailableAt query into batch to be executed
	// later by the batch.
	UpdateRunForceCancelAvailableAtBatch(batch genericBatch, forceCancelAvailableAt pgtype.Timestamptz, id pgtype.Text)
	// UpdateRunForceCancelAvailableAtScan scans the result of an executed UpdateRunForceCancelAvailableAtBatch query.
	UpdateRunForceCancelAvailableAtScan(results pgx.BatchResults) (pgtype.Text, error)

	DeleteRunByID(ctx context.Context, runID pgtype.Text) (pgtype.Text, error)
	// DeleteRunByIDBatch enqueues a DeleteRunByID query into batch to be executed
	// later by the batch.
	DeleteRunByIDBatch(batch genericBatch, runID pgtype.Text)
	// DeleteRunByIDScan scans the result of an executed DeleteRunByIDBatch query.
	DeleteRunByIDScan(results pgx.BatchResults) (pgtype.Text, error)

	InsertSession(ctx context.Context, params InsertSessionParams) (pgconn.CommandTag, error)
	// InsertSessionBatch enqueues a InsertSession query into batch to be executed
	// later by the batch.
	InsertSessionBatch(batch genericBatch, params InsertSessionParams)
	// InsertSessionScan scans the result of an executed InsertSessionBatch query.
	InsertSessionScan(results pgx.BatchResults) (pgconn.CommandTag, error)

	FindSessionsByUserID(ctx context.Context, userID pgtype.Text) ([]FindSessionsByUserIDRow, error)
	// FindSessionsByUserIDBatch enqueues a FindSessionsByUserID query into batch to be executed
	// later by the batch.
	FindSessionsByUserIDBatch(batch genericBatch, userID pgtype.Text)
	// FindSessionsByUserIDScan scans the result of an executed FindSessionsByUserIDBatch query.
	FindSessionsByUserIDScan(results pgx.BatchResults) ([]FindSessionsByUserIDRow, error)

	FindSessionByToken(ctx context.Context, token pgtype.Text) (FindSessionByTokenRow, error)
	// FindSessionByTokenBatch enqueues a FindSessionByToken query into batch to be executed
	// later by the batch.
	FindSessionByTokenBatch(batch genericBatch, token pgtype.Text)
	// FindSessionByTokenScan scans the result of an executed FindSessionByTokenBatch query.
	FindSessionByTokenScan(results pgx.BatchResults) (FindSessionByTokenRow, error)

	UpdateSessionExpiry(ctx context.Context, expiry pgtype.Timestamptz, token pgtype.Text) (pgtype.Text, error)
	// UpdateSessionExpiryBatch enqueues a UpdateSessionExpiry query into batch to be executed
	// later by the batch.
	UpdateSessionExpiryBatch(batch genericBatch, expiry pgtype.Timestamptz, token pgtype.Text)
	// UpdateSessionExpiryScan scans the result of an executed UpdateSessionExpiryBatch query.
	UpdateSessionExpiryScan(results pgx.BatchResults) (pgtype.Text, error)

	DeleteSessionByToken(ctx context.Context, token pgtype.Text) (pgtype.Text, error)
	// DeleteSessionByTokenBatch enqueues a DeleteSessionByToken query into batch to be executed
	// later by the batch.
	DeleteSessionByTokenBatch(batch genericBatch, token pgtype.Text)
	// DeleteSessionByTokenScan scans the result of an executed DeleteSessionByTokenBatch query.
	DeleteSessionByTokenScan(results pgx.BatchResults) (pgtype.Text, error)

	DeleteSessionsExpired(ctx context.Context) (pgtype.Text, error)
	// DeleteSessionsExpiredBatch enqueues a DeleteSessionsExpired query into batch to be executed
	// later by the batch.
	DeleteSessionsExpiredBatch(batch genericBatch)
	// DeleteSessionsExpiredScan scans the result of an executed DeleteSessionsExpiredBatch query.
	DeleteSessionsExpiredScan(results pgx.BatchResults) (pgtype.Text, error)

	InsertStateVersion(ctx context.Context, params InsertStateVersionParams) (pgconn.CommandTag, error)
	// InsertStateVersionBatch enqueues a InsertStateVersion query into batch to be executed
	// later by the batch.
	InsertStateVersionBatch(batch genericBatch, params InsertStateVersionParams)
	// InsertStateVersionScan scans the result of an executed InsertStateVersionBatch query.
	InsertStateVersionScan(results pgx.BatchResults) (pgconn.CommandTag, error)

	FindStateVersionsByWorkspaceName(ctx context.Context, params FindStateVersionsByWorkspaceNameParams) ([]FindStateVersionsByWorkspaceNameRow, error)
	// FindStateVersionsByWorkspaceNameBatch enqueues a FindStateVersionsByWorkspaceName query into batch to be executed
	// later by the batch.
	FindStateVersionsByWorkspaceNameBatch(batch genericBatch, params FindStateVersionsByWorkspaceNameParams)
	// FindStateVersionsByWorkspaceNameScan scans the result of an executed FindStateVersionsByWorkspaceNameBatch query.
	FindStateVersionsByWorkspaceNameScan(results pgx.BatchResults) ([]FindStateVersionsByWorkspaceNameRow, error)

	CountStateVersionsByWorkspaceName(ctx context.Context, workspaceName pgtype.Text, organizationName pgtype.Text) (*int, error)
	// CountStateVersionsByWorkspaceNameBatch enqueues a CountStateVersionsByWorkspaceName query into batch to be executed
	// later by the batch.
	CountStateVersionsByWorkspaceNameBatch(batch genericBatch, workspaceName pgtype.Text, organizationName pgtype.Text)
	// CountStateVersionsByWorkspaceNameScan scans the result of an executed CountStateVersionsByWorkspaceNameBatch query.
	CountStateVersionsByWorkspaceNameScan(results pgx.BatchResults) (*int, error)

	FindStateVersionByID(ctx context.Context, id pgtype.Text) (FindStateVersionByIDRow, error)
	// FindStateVersionByIDBatch enqueues a FindStateVersionByID query into batch to be executed
	// later by the batch.
	FindStateVersionByIDBatch(batch genericBatch, id pgtype.Text)
	// FindStateVersionByIDScan scans the result of an executed FindStateVersionByIDBatch query.
	FindStateVersionByIDScan(results pgx.BatchResults) (FindStateVersionByIDRow, error)

	FindStateVersionLatestByWorkspaceID(ctx context.Context, workspaceID pgtype.Text) (FindStateVersionLatestByWorkspaceIDRow, error)
	// FindStateVersionLatestByWorkspaceIDBatch enqueues a FindStateVersionLatestByWorkspaceID query into batch to be executed
	// later by the batch.
	FindStateVersionLatestByWorkspaceIDBatch(batch genericBatch, workspaceID pgtype.Text)
	// FindStateVersionLatestByWorkspaceIDScan scans the result of an executed FindStateVersionLatestByWorkspaceIDBatch query.
	FindStateVersionLatestByWorkspaceIDScan(results pgx.BatchResults) (FindStateVersionLatestByWorkspaceIDRow, error)

	FindStateVersionStateByID(ctx context.Context, id pgtype.Text) ([]byte, error)
	// FindStateVersionStateByIDBatch enqueues a FindStateVersionStateByID query into batch to be executed
	// later by the batch.
	FindStateVersionStateByIDBatch(batch genericBatch, id pgtype.Text)
	// FindStateVersionStateByIDScan scans the result of an executed FindStateVersionStateByIDBatch query.
	FindStateVersionStateByIDScan(results pgx.BatchResults) ([]byte, error)

	DeleteStateVersionByID(ctx context.Context, stateVersionID pgtype.Text) (pgtype.Text, error)
	// DeleteStateVersionByIDBatch enqueues a DeleteStateVersionByID query into batch to be executed
	// later by the batch.
	DeleteStateVersionByIDBatch(batch genericBatch, stateVersionID pgtype.Text)
	// DeleteStateVersionByIDScan scans the result of an executed DeleteStateVersionByIDBatch query.
	DeleteStateVersionByIDScan(results pgx.BatchResults) (pgtype.Text, error)

	InsertStateVersionOutput(ctx context.Context, params InsertStateVersionOutputParams) (pgconn.CommandTag, error)
	// InsertStateVersionOutputBatch enqueues a InsertStateVersionOutput query into batch to be executed
	// later by the batch.
	InsertStateVersionOutputBatch(batch genericBatch, params InsertStateVersionOutputParams)
	// InsertStateVersionOutputScan scans the result of an executed InsertStateVersionOutputBatch query.
	InsertStateVersionOutputScan(results pgx.BatchResults) (pgconn.CommandTag, error)

	InsertTeam(ctx context.Context, params InsertTeamParams) (pgconn.CommandTag, error)
	// InsertTeamBatch enqueues a InsertTeam query into batch to be executed
	// later by the batch.
	InsertTeamBatch(batch genericBatch, params InsertTeamParams)
	// InsertTeamScan scans the result of an executed InsertTeamBatch query.
	InsertTeamScan(results pgx.BatchResults) (pgconn.CommandTag, error)

	FindTeamsByOrg(ctx context.Context, organizationName pgtype.Text) ([]FindTeamsByOrgRow, error)
	// FindTeamsByOrgBatch enqueues a FindTeamsByOrg query into batch to be executed
	// later by the batch.
	FindTeamsByOrgBatch(batch genericBatch, organizationName pgtype.Text)
	// FindTeamsByOrgScan scans the result of an executed FindTeamsByOrgBatch query.
	FindTeamsByOrgScan(results pgx.BatchResults) ([]FindTeamsByOrgRow, error)

	FindTeamByName(ctx context.Context, name pgtype.Text, organizationName pgtype.Text) (FindTeamByNameRow, error)
	// FindTeamByNameBatch enqueues a FindTeamByName query into batch to be executed
	// later by the batch.
	FindTeamByNameBatch(batch genericBatch, name pgtype.Text, organizationName pgtype.Text)
	// FindTeamByNameScan scans the result of an executed FindTeamByNameBatch query.
	FindTeamByNameScan(results pgx.BatchResults) (FindTeamByNameRow, error)

	FindTeamByNameForUpdate(ctx context.Context, name pgtype.Text, organizationName pgtype.Text) (FindTeamByNameForUpdateRow, error)
	// FindTeamByNameForUpdateBatch enqueues a FindTeamByNameForUpdate query into batch to be executed
	// later by the batch.
	FindTeamByNameForUpdateBatch(batch genericBatch, name pgtype.Text, organizationName pgtype.Text)
	// FindTeamByNameForUpdateScan scans the result of an executed FindTeamByNameForUpdateBatch query.
	FindTeamByNameForUpdateScan(results pgx.BatchResults) (FindTeamByNameForUpdateRow, error)

	UpdateTeamByName(ctx context.Context, params UpdateTeamByNameParams) (pgtype.Text, error)
	// UpdateTeamByNameBatch enqueues a UpdateTeamByName query into batch to be executed
	// later by the batch.
	UpdateTeamByNameBatch(batch genericBatch, params UpdateTeamByNameParams)
	// UpdateTeamByNameScan scans the result of an executed UpdateTeamByNameBatch query.
	UpdateTeamByNameScan(results pgx.BatchResults) (pgtype.Text, error)

	DeleteTeamByName(ctx context.Context, name pgtype.Text, organizationName pgtype.Text) (pgtype.Text, error)
	// DeleteTeamByNameBatch enqueues a DeleteTeamByName query into batch to be executed
	// later by the batch.
	DeleteTeamByNameBatch(batch genericBatch, name pgtype.Text, organizationName pgtype.Text)
	// DeleteTeamByNameScan scans the result of an executed DeleteTeamByNameBatch query.
	DeleteTeamByNameScan(results pgx.BatchResults) (pgtype.Text, error)

	InsertTeamMembership(ctx context.Context, userID pgtype.Text, teamID pgtype.Text) (pgconn.CommandTag, error)
	// InsertTeamMembershipBatch enqueues a InsertTeamMembership query into batch to be executed
	// later by the batch.
	InsertTeamMembershipBatch(batch genericBatch, userID pgtype.Text, teamID pgtype.Text)
	// InsertTeamMembershipScan scans the result of an executed InsertTeamMembershipBatch query.
	InsertTeamMembershipScan(results pgx.BatchResults) (pgconn.CommandTag, error)

	DeleteTeamMembership(ctx context.Context, userID pgtype.Text, teamID pgtype.Text) (pgtype.Text, error)
	// DeleteTeamMembershipBatch enqueues a DeleteTeamMembership query into batch to be executed
	// later by the batch.
	DeleteTeamMembershipBatch(batch genericBatch, userID pgtype.Text, teamID pgtype.Text)
	// DeleteTeamMembershipScan scans the result of an executed DeleteTeamMembershipBatch query.
	DeleteTeamMembershipScan(results pgx.BatchResults) (pgtype.Text, error)

	InsertToken(ctx context.Context, params InsertTokenParams) (pgconn.CommandTag, error)
	// InsertTokenBatch enqueues a InsertToken query into batch to be executed
	// later by the batch.
	InsertTokenBatch(batch genericBatch, params InsertTokenParams)
	// InsertTokenScan scans the result of an executed InsertTokenBatch query.
	InsertTokenScan(results pgx.BatchResults) (pgconn.CommandTag, error)

	FindTokensByUserID(ctx context.Context, userID pgtype.Text) ([]FindTokensByUserIDRow, error)
	// FindTokensByUserIDBatch enqueues a FindTokensByUserID query into batch to be executed
	// later by the batch.
	FindTokensByUserIDBatch(batch genericBatch, userID pgtype.Text)
	// FindTokensByUserIDScan scans the result of an executed FindTokensByUserIDBatch query.
	FindTokensByUserIDScan(results pgx.BatchResults) ([]FindTokensByUserIDRow, error)

	DeleteTokenByID(ctx context.Context, tokenID pgtype.Text) (pgtype.Text, error)
	// DeleteTokenByIDBatch enqueues a DeleteTokenByID query into batch to be executed
	// later by the batch.
	DeleteTokenByIDBatch(batch genericBatch, tokenID pgtype.Text)
	// DeleteTokenByIDScan scans the result of an executed DeleteTokenByIDBatch query.
	DeleteTokenByIDScan(results pgx.BatchResults) (pgtype.Text, error)

	InsertUser(ctx context.Context, params InsertUserParams) (pgconn.CommandTag, error)
	// InsertUserBatch enqueues a InsertUser query into batch to be executed
	// later by the batch.
	InsertUserBatch(batch genericBatch, params InsertUserParams)
	// InsertUserScan scans the result of an executed InsertUserBatch query.
	InsertUserScan(results pgx.BatchResults) (pgconn.CommandTag, error)

	FindUsers(ctx context.Context) ([]FindUsersRow, error)
	// FindUsersBatch enqueues a FindUsers query into batch to be executed
	// later by the batch.
	FindUsersBatch(batch genericBatch)
	// FindUsersScan scans the result of an executed FindUsersBatch query.
	FindUsersScan(results pgx.BatchResults) ([]FindUsersRow, error)

	FindUsersByOrganization(ctx context.Context, organizationName pgtype.Text) ([]FindUsersByOrganizationRow, error)
	// FindUsersByOrganizationBatch enqueues a FindUsersByOrganization query into batch to be executed
	// later by the batch.
	FindUsersByOrganizationBatch(batch genericBatch, organizationName pgtype.Text)
	// FindUsersByOrganizationScan scans the result of an executed FindUsersByOrganizationBatch query.
	FindUsersByOrganizationScan(results pgx.BatchResults) ([]FindUsersByOrganizationRow, error)

	FindUsersByTeam(ctx context.Context, organizationName pgtype.Text, teamName pgtype.Text) ([]FindUsersByTeamRow, error)
	// FindUsersByTeamBatch enqueues a FindUsersByTeam query into batch to be executed
	// later by the batch.
	FindUsersByTeamBatch(batch genericBatch, organizationName pgtype.Text, teamName pgtype.Text)
	// FindUsersByTeamScan scans the result of an executed FindUsersByTeamBatch query.
	FindUsersByTeamScan(results pgx.BatchResults) ([]FindUsersByTeamRow, error)

	FindUserByID(ctx context.Context, userID pgtype.Text) (FindUserByIDRow, error)
	// FindUserByIDBatch enqueues a FindUserByID query into batch to be executed
	// later by the batch.
	FindUserByIDBatch(batch genericBatch, userID pgtype.Text)
	// FindUserByIDScan scans the result of an executed FindUserByIDBatch query.
	FindUserByIDScan(results pgx.BatchResults) (FindUserByIDRow, error)

	FindUserByUsername(ctx context.Context, username pgtype.Text) (FindUserByUsernameRow, error)
	// FindUserByUsernameBatch enqueues a FindUserByUsername query into batch to be executed
	// later by the batch.
	FindUserByUsernameBatch(batch genericBatch, username pgtype.Text)
	// FindUserByUsernameScan scans the result of an executed FindUserByUsernameBatch query.
	FindUserByUsernameScan(results pgx.BatchResults) (FindUserByUsernameRow, error)

	FindUserBySessionToken(ctx context.Context, token pgtype.Text) (FindUserBySessionTokenRow, error)
	// FindUserBySessionTokenBatch enqueues a FindUserBySessionToken query into batch to be executed
	// later by the batch.
	FindUserBySessionTokenBatch(batch genericBatch, token pgtype.Text)
	// FindUserBySessionTokenScan scans the result of an executed FindUserBySessionTokenBatch query.
	FindUserBySessionTokenScan(results pgx.BatchResults) (FindUserBySessionTokenRow, error)

	FindUserByAuthenticationToken(ctx context.Context, token pgtype.Text) (FindUserByAuthenticationTokenRow, error)
	// FindUserByAuthenticationTokenBatch enqueues a FindUserByAuthenticationToken query into batch to be executed
	// later by the batch.
	FindUserByAuthenticationTokenBatch(batch genericBatch, token pgtype.Text)
	// FindUserByAuthenticationTokenScan scans the result of an executed FindUserByAuthenticationTokenBatch query.
	FindUserByAuthenticationTokenScan(results pgx.BatchResults) (FindUserByAuthenticationTokenRow, error)

	DeleteUserByID(ctx context.Context, userID pgtype.Text) (pgtype.Text, error)
	// DeleteUserByIDBatch enqueues a DeleteUserByID query into batch to be executed
	// later by the batch.
	DeleteUserByIDBatch(batch genericBatch, userID pgtype.Text)
	// DeleteUserByIDScan scans the result of an executed DeleteUserByIDBatch query.
	DeleteUserByIDScan(results pgx.BatchResults) (pgtype.Text, error)

	DeleteUserByUsername(ctx context.Context, username pgtype.Text) (pgtype.Text, error)
	// DeleteUserByUsernameBatch enqueues a DeleteUserByUsername query into batch to be executed
	// later by the batch.
	DeleteUserByUsernameBatch(batch genericBatch, username pgtype.Text)
	// DeleteUserByUsernameScan scans the result of an executed DeleteUserByUsernameBatch query.
	DeleteUserByUsernameScan(results pgx.BatchResults) (pgtype.Text, error)

	InsertVCSProvider(ctx context.Context, params InsertVCSProviderParams) (pgconn.CommandTag, error)
	// InsertVCSProviderBatch enqueues a InsertVCSProvider query into batch to be executed
	// later by the batch.
	InsertVCSProviderBatch(batch genericBatch, params InsertVCSProviderParams)
	// InsertVCSProviderScan scans the result of an executed InsertVCSProviderBatch query.
	InsertVCSProviderScan(results pgx.BatchResults) (pgconn.CommandTag, error)

	FindVCSProviders(ctx context.Context, organizationName pgtype.Text) ([]FindVCSProvidersRow, error)
	// FindVCSProvidersBatch enqueues a FindVCSProviders query into batch to be executed
	// later by the batch.
	FindVCSProvidersBatch(batch genericBatch, organizationName pgtype.Text)
	// FindVCSProvidersScan scans the result of an executed FindVCSProvidersBatch query.
	FindVCSProvidersScan(results pgx.BatchResults) ([]FindVCSProvidersRow, error)

	FindVCSProvider(ctx context.Context, vcsProviderID pgtype.Text) (FindVCSProviderRow, error)
	// FindVCSProviderBatch enqueues a FindVCSProvider query into batch to be executed
	// later by the batch.
	FindVCSProviderBatch(batch genericBatch, vcsProviderID pgtype.Text)
	// FindVCSProviderScan scans the result of an executed FindVCSProviderBatch query.
	FindVCSProviderScan(results pgx.BatchResults) (FindVCSProviderRow, error)

	DeleteVCSProviderByID(ctx context.Context, vcsProviderID pgtype.Text) (pgtype.Text, error)
	// DeleteVCSProviderByIDBatch enqueues a DeleteVCSProviderByID query into batch to be executed
	// later by the batch.
	DeleteVCSProviderByIDBatch(batch genericBatch, vcsProviderID pgtype.Text)
	// DeleteVCSProviderByIDScan scans the result of an executed DeleteVCSProviderByIDBatch query.
	DeleteVCSProviderByIDScan(results pgx.BatchResults) (pgtype.Text, error)

	InsertVCSRepo(ctx context.Context, params InsertVCSRepoParams) (pgconn.CommandTag, error)
	// InsertVCSRepoBatch enqueues a InsertVCSRepo query into batch to be executed
	// later by the batch.
	InsertVCSRepoBatch(batch genericBatch, params InsertVCSRepoParams)
	// InsertVCSRepoScan scans the result of an executed InsertVCSRepoBatch query.
	InsertVCSRepoScan(results pgx.BatchResults) (pgconn.CommandTag, error)

	UpdateVCSRepo(ctx context.Context, params UpdateVCSRepoParams) (pgtype.Text, error)
	// UpdateVCSRepoBatch enqueues a UpdateVCSRepo query into batch to be executed
	// later by the batch.
	UpdateVCSRepoBatch(batch genericBatch, params UpdateVCSRepoParams)
	// UpdateVCSRepoScan scans the result of an executed UpdateVCSRepoBatch query.
	UpdateVCSRepoScan(results pgx.BatchResults) (pgtype.Text, error)

	DeleteVCSRepo(ctx context.Context, workspaceID pgtype.Text) (pgconn.CommandTag, error)
	// DeleteVCSRepoBatch enqueues a DeleteVCSRepo query into batch to be executed
	// later by the batch.
	DeleteVCSRepoBatch(batch genericBatch, workspaceID pgtype.Text)
	// DeleteVCSRepoScan scans the result of an executed DeleteVCSRepoBatch query.
	DeleteVCSRepoScan(results pgx.BatchResults) (pgconn.CommandTag, error)

	InsertWorkspace(ctx context.Context, params InsertWorkspaceParams) (pgconn.CommandTag, error)
	// InsertWorkspaceBatch enqueues a InsertWorkspace query into batch to be executed
	// later by the batch.
	InsertWorkspaceBatch(batch genericBatch, params InsertWorkspaceParams)
	// InsertWorkspaceScan scans the result of an executed InsertWorkspaceBatch query.
	InsertWorkspaceScan(results pgx.BatchResults) (pgconn.CommandTag, error)

	FindWorkspaces(ctx context.Context, params FindWorkspacesParams) ([]FindWorkspacesRow, error)
	// FindWorkspacesBatch enqueues a FindWorkspaces query into batch to be executed
	// later by the batch.
	FindWorkspacesBatch(batch genericBatch, params FindWorkspacesParams)
	// FindWorkspacesScan scans the result of an executed FindWorkspacesBatch query.
	FindWorkspacesScan(results pgx.BatchResults) ([]FindWorkspacesRow, error)

	CountWorkspaces(ctx context.Context, prefix pgtype.Text, organizationNames []string) (*int, error)
	// CountWorkspacesBatch enqueues a CountWorkspaces query into batch to be executed
	// later by the batch.
	CountWorkspacesBatch(batch genericBatch, prefix pgtype.Text, organizationNames []string)
	// CountWorkspacesScan scans the result of an executed CountWorkspacesBatch query.
	CountWorkspacesScan(results pgx.BatchResults) (*int, error)

	FindWorkspacesByUserID(ctx context.Context, params FindWorkspacesByUserIDParams) ([]FindWorkspacesByUserIDRow, error)
	// FindWorkspacesByUserIDBatch enqueues a FindWorkspacesByUserID query into batch to be executed
	// later by the batch.
	FindWorkspacesByUserIDBatch(batch genericBatch, params FindWorkspacesByUserIDParams)
	// FindWorkspacesByUserIDScan scans the result of an executed FindWorkspacesByUserIDBatch query.
	FindWorkspacesByUserIDScan(results pgx.BatchResults) ([]FindWorkspacesByUserIDRow, error)

	CountWorkspacesByUserID(ctx context.Context, organizationName pgtype.Text, userID pgtype.Text) (*int, error)
	// CountWorkspacesByUserIDBatch enqueues a CountWorkspacesByUserID query into batch to be executed
	// later by the batch.
	CountWorkspacesByUserIDBatch(batch genericBatch, organizationName pgtype.Text, userID pgtype.Text)
	// CountWorkspacesByUserIDScan scans the result of an executed CountWorkspacesByUserIDBatch query.
	CountWorkspacesByUserIDScan(results pgx.BatchResults) (*int, error)

	FindWorkspaceIDByRunID(ctx context.Context, runID pgtype.Text) (pgtype.Text, error)
	// FindWorkspaceIDByRunIDBatch enqueues a FindWorkspaceIDByRunID query into batch to be executed
	// later by the batch.
	FindWorkspaceIDByRunIDBatch(batch genericBatch, runID pgtype.Text)
	// FindWorkspaceIDByRunIDScan scans the result of an executed FindWorkspaceIDByRunIDBatch query.
	FindWorkspaceIDByRunIDScan(results pgx.BatchResults) (pgtype.Text, error)

	FindWorkspaceIDByStateVersionID(ctx context.Context, stateVersionID pgtype.Text) (pgtype.Text, error)
	// FindWorkspaceIDByStateVersionIDBatch enqueues a FindWorkspaceIDByStateVersionID query into batch to be executed
	// later by the batch.
	FindWorkspaceIDByStateVersionIDBatch(batch genericBatch, stateVersionID pgtype.Text)
	// FindWorkspaceIDByStateVersionIDScan scans the result of an executed FindWorkspaceIDByStateVersionIDBatch query.
	FindWorkspaceIDByStateVersionIDScan(results pgx.BatchResults) (pgtype.Text, error)

	FindWorkspaceIDByCVID(ctx context.Context, configurationVersionID pgtype.Text) (pgtype.Text, error)
	// FindWorkspaceIDByCVIDBatch enqueues a FindWorkspaceIDByCVID query into batch to be executed
	// later by the batch.
	FindWorkspaceIDByCVIDBatch(batch genericBatch, configurationVersionID pgtype.Text)
	// FindWorkspaceIDByCVIDScan scans the result of an executed FindWorkspaceIDByCVIDBatch query.
	FindWorkspaceIDByCVIDScan(results pgx.BatchResults) (pgtype.Text, error)

	FindWorkspaceIDByName(ctx context.Context, name pgtype.Text, organizationName pgtype.Text) (pgtype.Text, error)
	// FindWorkspaceIDByNameBatch enqueues a FindWorkspaceIDByName query into batch to be executed
	// later by the batch.
	FindWorkspaceIDByNameBatch(batch genericBatch, name pgtype.Text, organizationName pgtype.Text)
	// FindWorkspaceIDByNameScan scans the result of an executed FindWorkspaceIDByNameBatch query.
	FindWorkspaceIDByNameScan(results pgx.BatchResults) (pgtype.Text, error)

	// FindWorkspaceByName finds a workspace by name and organization name.
	//
	FindWorkspaceByName(ctx context.Context, name pgtype.Text, organizationName pgtype.Text) (FindWorkspaceByNameRow, error)
	// FindWorkspaceByNameBatch enqueues a FindWorkspaceByName query into batch to be executed
	// later by the batch.
	FindWorkspaceByNameBatch(batch genericBatch, name pgtype.Text, organizationName pgtype.Text)
	// FindWorkspaceByNameScan scans the result of an executed FindWorkspaceByNameBatch query.
	FindWorkspaceByNameScan(results pgx.BatchResults) (FindWorkspaceByNameRow, error)

	FindWorkspaceByID(ctx context.Context, id pgtype.Text) (FindWorkspaceByIDRow, error)
	// FindWorkspaceByIDBatch enqueues a FindWorkspaceByID query into batch to be executed
	// later by the batch.
	FindWorkspaceByIDBatch(batch genericBatch, id pgtype.Text)
	// FindWorkspaceByIDScan scans the result of an executed FindWorkspaceByIDBatch query.
	FindWorkspaceByIDScan(results pgx.BatchResults) (FindWorkspaceByIDRow, error)

	FindWorkspaceByIDForUpdate(ctx context.Context, id pgtype.Text) (FindWorkspaceByIDForUpdateRow, error)
	// FindWorkspaceByIDForUpdateBatch enqueues a FindWorkspaceByIDForUpdate query into batch to be executed
	// later by the batch.
	FindWorkspaceByIDForUpdateBatch(batch genericBatch, id pgtype.Text)
	// FindWorkspaceByIDForUpdateScan scans the result of an executed FindWorkspaceByIDForUpdateBatch query.
	FindWorkspaceByIDForUpdateScan(results pgx.BatchResults) (FindWorkspaceByIDForUpdateRow, error)

	UpdateWorkspaceByID(ctx context.Context, params UpdateWorkspaceByIDParams) (pgtype.Text, error)
	// UpdateWorkspaceByIDBatch enqueues a UpdateWorkspaceByID query into batch to be executed
	// later by the batch.
	UpdateWorkspaceByIDBatch(batch genericBatch, params UpdateWorkspaceByIDParams)
	// UpdateWorkspaceByIDScan scans the result of an executed UpdateWorkspaceByIDBatch query.
	UpdateWorkspaceByIDScan(results pgx.BatchResults) (pgtype.Text, error)

	UpdateWorkspaceLockByID(ctx context.Context, params UpdateWorkspaceLockByIDParams) (pgconn.CommandTag, error)
	// UpdateWorkspaceLockByIDBatch enqueues a UpdateWorkspaceLockByID query into batch to be executed
	// later by the batch.
	UpdateWorkspaceLockByIDBatch(batch genericBatch, params UpdateWorkspaceLockByIDParams)
	// UpdateWorkspaceLockByIDScan scans the result of an executed UpdateWorkspaceLockByIDBatch query.
	UpdateWorkspaceLockByIDScan(results pgx.BatchResults) (pgconn.CommandTag, error)

	UpdateWorkspaceLatestRun(ctx context.Context, runID pgtype.Text, workspaceID pgtype.Text) (pgconn.CommandTag, error)
	// UpdateWorkspaceLatestRunBatch enqueues a UpdateWorkspaceLatestRun query into batch to be executed
	// later by the batch.
	UpdateWorkspaceLatestRunBatch(batch genericBatch, runID pgtype.Text, workspaceID pgtype.Text)
	// UpdateWorkspaceLatestRunScan scans the result of an executed UpdateWorkspaceLatestRunBatch query.
	UpdateWorkspaceLatestRunScan(results pgx.BatchResults) (pgconn.CommandTag, error)

	// DeleteOrganization deletes an organization by id.
	// DeleteWorkspaceByID deletes a workspace by id.
	//
	DeleteWorkspaceByID(ctx context.Context, workspaceID pgtype.Text) (pgconn.CommandTag, error)
	// DeleteWorkspaceByIDBatch enqueues a DeleteWorkspaceByID query into batch to be executed
	// later by the batch.
	DeleteWorkspaceByIDBatch(batch genericBatch, workspaceID pgtype.Text)
	// DeleteWorkspaceByIDScan scans the result of an executed DeleteWorkspaceByIDBatch query.
	DeleteWorkspaceByIDScan(results pgx.BatchResults) (pgconn.CommandTag, error)

	// DeleteWorkspaceByName deletes a workspace by name and organization name.
	//
	DeleteWorkspaceByName(ctx context.Context, name pgtype.Text, organizationName pgtype.Text) (pgconn.CommandTag, error)
	// DeleteWorkspaceByNameBatch enqueues a DeleteWorkspaceByName query into batch to be executed
	// later by the batch.
	DeleteWorkspaceByNameBatch(batch genericBatch, name pgtype.Text, organizationName pgtype.Text)
	// DeleteWorkspaceByNameScan scans the result of an executed DeleteWorkspaceByNameBatch query.
	DeleteWorkspaceByNameScan(results pgx.BatchResults) (pgconn.CommandTag, error)

	UpsertWorkspacePermission(ctx context.Context, params UpsertWorkspacePermissionParams) (pgconn.CommandTag, error)
	// UpsertWorkspacePermissionBatch enqueues a UpsertWorkspacePermission query into batch to be executed
	// later by the batch.
	UpsertWorkspacePermissionBatch(batch genericBatch, params UpsertWorkspacePermissionParams)
	// UpsertWorkspacePermissionScan scans the result of an executed UpsertWorkspacePermissionBatch query.
	UpsertWorkspacePermissionScan(results pgx.BatchResults) (pgconn.CommandTag, error)

	FindWorkspacePermissionsByID(ctx context.Context, workspaceID pgtype.Text) ([]FindWorkspacePermissionsByIDRow, error)
	// FindWorkspacePermissionsByIDBatch enqueues a FindWorkspacePermissionsByID query into batch to be executed
	// later by the batch.
	FindWorkspacePermissionsByIDBatch(batch genericBatch, workspaceID pgtype.Text)
	// FindWorkspacePermissionsByIDScan scans the result of an executed FindWorkspacePermissionsByIDBatch query.
	FindWorkspacePermissionsByIDScan(results pgx.BatchResults) ([]FindWorkspacePermissionsByIDRow, error)

	FindWorkspacePermissionsByName(ctx context.Context, workspaceName pgtype.Text, organizationName pgtype.Text) ([]FindWorkspacePermissionsByNameRow, error)
	// FindWorkspacePermissionsByNameBatch enqueues a FindWorkspacePermissionsByName query into batch to be executed
	// later by the batch.
	FindWorkspacePermissionsByNameBatch(batch genericBatch, workspaceName pgtype.Text, organizationName pgtype.Text)
	// FindWorkspacePermissionsByNameScan scans the result of an executed FindWorkspacePermissionsByNameBatch query.
	FindWorkspacePermissionsByNameScan(results pgx.BatchResults) ([]FindWorkspacePermissionsByNameRow, error)

	DeleteWorkspacePermissionByID(ctx context.Context, workspaceID pgtype.Text, teamName pgtype.Text) (pgconn.CommandTag, error)
	// DeleteWorkspacePermissionByIDBatch enqueues a DeleteWorkspacePermissionByID query into batch to be executed
	// later by the batch.
	DeleteWorkspacePermissionByIDBatch(batch genericBatch, workspaceID pgtype.Text, teamName pgtype.Text)
	// DeleteWorkspacePermissionByIDScan scans the result of an executed DeleteWorkspacePermissionByIDBatch query.
	DeleteWorkspacePermissionByIDScan(results pgx.BatchResults) (pgconn.CommandTag, error)

	DeleteWorkspacePermissionByName(ctx context.Context, params DeleteWorkspacePermissionByNameParams) (pgconn.CommandTag, error)
	// DeleteWorkspacePermissionByNameBatch enqueues a DeleteWorkspacePermissionByName query into batch to be executed
	// later by the batch.
	DeleteWorkspacePermissionByNameBatch(batch genericBatch, params DeleteWorkspacePermissionByNameParams)
	// DeleteWorkspacePermissionByNameScan scans the result of an executed DeleteWorkspacePermissionByNameBatch query.
	DeleteWorkspacePermissionByNameScan(results pgx.BatchResults) (pgconn.CommandTag, error)
}

Querier is a typesafe Go interface backed by SQL queries.

Methods ending with Batch enqueue a query to run later in a pgx.Batch. After calling SendBatch on pgx.Conn, pgxpool.Pool, or pgx.Tx, use the Scan methods to parse the results.

type QuerierConfig

type QuerierConfig struct {
	// DataTypes contains pgtype.Value to use for encoding and decoding instead
	// of pggen-generated pgtype.ValueTranscoder.
	//
	// If OIDs are available for an input parameter type and all of its
	// transitive dependencies, pggen will use the binary encoding format for
	// the input parameter.
	DataTypes []pgtype.DataType
}

type Report

type Report struct {
	Additions    int `json:"additions"`
	Changes      int `json:"changes"`
	Destructions int `json:"destructions"`
}

Report represents the Postgres composite type "report".

type RunStatusTimestamps

type RunStatusTimestamps struct {
	RunID     pgtype.Text        `json:"run_id"`
	Status    pgtype.Text        `json:"status"`
	Timestamp pgtype.Timestamptz `json:"timestamp"`
}

RunStatusTimestamps represents the Postgres composite type "run_status_timestamps".

type Runs

type Runs struct {
	RunID                  pgtype.Text        `json:"run_id"`
	CreatedAt              pgtype.Timestamptz `json:"created_at"`
	ForceCancelAvailableAt pgtype.Timestamptz `json:"force_cancel_available_at"`
	IsDestroy              bool               `json:"is_destroy"`
	PositionInQueue        int                `json:"position_in_queue"`
	Refresh                bool               `json:"refresh"`
	RefreshOnly            bool               `json:"refresh_only"`
	ReplaceAddrs           []string           `json:"replace_addrs"`
	TargetAddrs            []string           `json:"target_addrs"`
	LockFile               []byte             `json:"lock_file"`
	Status                 pgtype.Text        `json:"status"`
	WorkspaceID            pgtype.Text        `json:"workspace_id"`
	ConfigurationVersionID pgtype.Text        `json:"configuration_version_id"`
}

Runs represents the Postgres composite type "runs".

type StateVersionOutputs

type StateVersionOutputs struct {
	StateVersionOutputID pgtype.Text `json:"state_version_output_id"`
	Name                 pgtype.Text `json:"name"`
	Sensitive            bool        `json:"sensitive"`
	Type                 pgtype.Text `json:"type"`
	Value                pgtype.Text `json:"value"`
	StateVersionID       pgtype.Text `json:"state_version_id"`
}

StateVersionOutputs represents the Postgres composite type "state_version_outputs".

type Teams

type Teams struct {
	TeamID                     pgtype.Text        `json:"team_id"`
	Name                       pgtype.Text        `json:"name"`
	CreatedAt                  pgtype.Timestamptz `json:"created_at"`
	OrganizationID             pgtype.Text        `json:"organization_id"`
	PermissionManageWorkspaces bool               `json:"permission_manage_workspaces"`
}

Teams represents the Postgres composite type "teams".

type UpdateAppliedChangesByIDParams

type UpdateAppliedChangesByIDParams struct {
	Additions    int
	Changes      int
	Destructions int
	RunID        pgtype.Text
}

type UpdateOrganizationByNameParams

type UpdateOrganizationByNameParams struct {
	NewName         pgtype.Text
	SessionRemember int
	SessionTimeout  int
	UpdatedAt       pgtype.Timestamptz
	Name            pgtype.Text
}

type UpdatePlannedChangesByIDParams

type UpdatePlannedChangesByIDParams struct {
	Additions    int
	Changes      int
	Destructions int
	RunID        pgtype.Text
}

type UpdateTeamByNameParams

type UpdateTeamByNameParams struct {
	PermissionManageWorkspaces bool
	OrganizationName           pgtype.Text
	Name                       pgtype.Text
}

type UpdateVCSRepoParams added in v0.0.16

type UpdateVCSRepoParams struct {
	Identifier    pgtype.Text
	Branch        pgtype.Text
	VCSProviderID pgtype.Text
	WorkspaceID   pgtype.Text
}

type UpdateWorkspaceByIDParams

type UpdateWorkspaceByIDParams struct {
	AllowDestroyPlan           bool
	Description                pgtype.Text
	ExecutionMode              pgtype.Text
	Name                       pgtype.Text
	QueueAllRuns               bool
	SpeculativeEnabled         bool
	StructuredRunOutputEnabled bool
	TerraformVersion           pgtype.Text
	TriggerPrefixes            []string
	WorkingDirectory           pgtype.Text
	UpdatedAt                  pgtype.Timestamptz
	ID                         pgtype.Text
}

type UpdateWorkspaceLockByIDParams

type UpdateWorkspaceLockByIDParams struct {
	UserID      pgtype.Text
	RunID       pgtype.Text
	WorkspaceID pgtype.Text
}

type UpsertWorkspacePermissionParams

type UpsertWorkspacePermissionParams struct {
	Role        pgtype.Text
	TeamName    pgtype.Text
	WorkspaceID pgtype.Text
}

type Users

type Users struct {
	UserID    pgtype.Text        `json:"user_id"`
	Username  pgtype.Text        `json:"username"`
	CreatedAt pgtype.Timestamptz `json:"created_at"`
	UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}

Users represents the Postgres composite type "users".

type VCSRepos added in v0.0.16

type VCSRepos struct {
	Identifier    pgtype.Text `json:"identifier"`
	Branch        pgtype.Text `json:"branch"`
	VCSProviderID pgtype.Text `json:"vcs_provider_id"`
	WorkspaceID   pgtype.Text `json:"workspace_id"`
}

VCSRepos represents the Postgres composite type "vcs_repos".

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL