gensql

package
v0.0.0-...-5597880 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessRequestStatusType

type AccessRequestStatusType string
const (
	AccessRequestStatusTypePending  AccessRequestStatusType = "pending"
	AccessRequestStatusTypeApproved AccessRequestStatusType = "approved"
	AccessRequestStatusTypeDenied   AccessRequestStatusType = "denied"
)

func (*AccessRequestStatusType) Scan

func (e *AccessRequestStatusType) Scan(src interface{}) error

type AddTeamProjectParams

type AddTeamProjectParams struct {
	Team    string
	Project string
}

type ApproveAccessRequestParams

type ApproveAccessRequestParams struct {
	Granter sql.NullString
	ID      uuid.UUID
}

type CreateAccessRequestForDatasetParams

type CreateAccessRequestForDatasetParams struct {
	DatasetID            uuid.UUID
	Subject              string
	Owner                string
	Expires              sql.NullTime
	PollyDocumentationID uuid.NullUUID
}

type CreateBigqueryDatasourceParams

type CreateBigqueryDatasourceParams struct {
	DatasetID     uuid.UUID
	ProjectID     string
	Dataset       string
	TableName     string
	Schema        pqtype.NullRawMessage
	LastModified  time.Time
	Created       time.Time
	Expires       sql.NullTime
	TableType     string
	PiiTags       pqtype.NullRawMessage
	PseudoColumns []string
	IsReference   bool
}

type CreateDataproductParams

type CreateDataproductParams struct {
	Name                  string
	Description           sql.NullString
	OwnerGroup            string
	OwnerTeamkatalogenUrl sql.NullString
	Slug                  string
	TeamContact           sql.NullString
	TeamID                uuid.NullUUID
}

type CreateDatasetParams

type CreateDatasetParams struct {
	DataproductID            uuid.UUID
	Name                     string
	Description              sql.NullString
	Pii                      PiiLevel
	Type                     DatasourceType
	Slug                     string
	Repo                     sql.NullString
	Keywords                 []string
	AnonymisationDescription sql.NullString
	TargetUser               sql.NullString
}

type CreateInsightProductParams

type CreateInsightProductParams struct {
	Name             string
	Creator          string
	Description      sql.NullString
	Type             string
	Link             string
	Keywords         []string
	OwnerGroup       string
	TeamkatalogenUrl sql.NullString
	TeamID           uuid.NullUUID
}

type CreateJoinableViewsDatasourceParams

type CreateJoinableViewsDatasourceParams struct {
	JoinableViewID uuid.UUID
	DatasourceID   uuid.UUID
}

type CreateJoinableViewsParams

type CreateJoinableViewsParams struct {
	Name    string
	Owner   string
	Created time.Time
	Expires sql.NullTime
}

type CreatePollyDocumentationParams

type CreatePollyDocumentationParams struct {
	ExternalID string
	Name       string
	Url        string
}

type CreateSessionParams

type CreateSessionParams struct {
	Token       string
	AccessToken string
	Email       string
	Name        string
	Expires     time.Time
}

type CreateStoryParams

type CreateStoryParams struct {
	Name             string
	Creator          string
	Description      string
	Keywords         []string
	TeamkatalogenUrl sql.NullString
	TeamID           uuid.NullUUID
	OwnerGroup       string
}

type CreateStoryWithIDParams

type CreateStoryWithIDParams struct {
	ID               uuid.UUID
	Name             string
	Creator          string
	Description      string
	Keywords         []string
	TeamkatalogenUrl sql.NullString
	TeamID           uuid.NullUUID
	OwnerGroup       string
}

type DBTX

type DBTX interface {
	ExecContext(context.Context, string, ...interface{}) (sql.Result, error)
	PrepareContext(context.Context, string) (*sql.Stmt, error)
	QueryContext(context.Context, string, ...interface{}) (*sql.Rows, error)
	QueryRowContext(context.Context, string, ...interface{}) *sql.Row
}

type Dashboard

type Dashboard struct {
	ID  uuid.UUID
	Url string
}

type Dataproduct

type Dataproduct struct {
	ID               uuid.UUID
	Name             string
	Description      sql.NullString
	Group            string
	Created          time.Time
	LastModified     time.Time
	TsvDocument      interface{}
	Slug             string
	TeamkatalogenUrl sql.NullString
	TeamContact      sql.NullString
	TeamID           uuid.NullUUID
}

type DataproductGroupStatsParams

type DataproductGroupStatsParams struct {
	Offs int32
	Lim  int32
}

type DataproductGroupStatsRow

type DataproductGroupStatsRow struct {
	Group string
	Count int64
}

type DataproductKeywordsRow

type DataproductKeywordsRow struct {
	Keyword string
	Count   int64
}

type DataproductView

type DataproductView struct {
	DpID             uuid.UUID
	DpName           string
	DpDescription    sql.NullString
	DpGroup          string
	DpCreated        time.Time
	DpLastModified   time.Time
	DpSlug           string
	TeamkatalogenUrl sql.NullString
	TeamContact      sql.NullString
	TeamID           uuid.NullUUID
	TeamName         sql.NullString
	PaName           sql.NullString
	PaID             uuid.NullUUID
	DsDpID           uuid.NullUUID
	DsID             uuid.NullUUID
	DsName           sql.NullString
	DsDescription    sql.NullString
	DsCreated        sql.NullTime
	DsLastModified   sql.NullTime
	DsSlug           sql.NullString
	DsKeywords       []string
}

type DataproductWithTeamkatalogenView

type DataproductWithTeamkatalogenView struct {
	ID               uuid.UUID
	Name             string
	Description      sql.NullString
	Group            string
	Created          time.Time
	LastModified     time.Time
	TsvDocument      interface{}
	Slug             string
	TeamkatalogenUrl sql.NullString
	TeamContact      sql.NullString
	TeamID           uuid.NullUUID
	TeamName         sql.NullString
	PaName           sql.NullString
	PaID             uuid.NullUUID
}

type Dataset

type Dataset struct {
	ID                       uuid.UUID
	Name                     string
	Description              sql.NullString
	Pii                      PiiLevel
	Created                  time.Time
	LastModified             time.Time
	Type                     DatasourceType
	TsvDocument              interface{}
	Slug                     string
	Repo                     sql.NullString
	Keywords                 []string
	DataproductID            uuid.UUID
	AnonymisationDescription sql.NullString
	TargetUser               sql.NullString
}

type DatasetAccess

type DatasetAccess struct {
	ID              uuid.UUID
	DatasetID       uuid.UUID
	Subject         string
	Granter         string
	Expires         sql.NullTime
	Created         time.Time
	Revoked         sql.NullTime
	AccessRequestID uuid.NullUUID
	Owner           string
}

type DatasetAccessRequest

type DatasetAccessRequest struct {
	ID                   uuid.UUID
	DatasetID            uuid.UUID
	Subject              string
	Owner                string
	PollyDocumentationID uuid.NullUUID
	LastModified         time.Time
	Created              time.Time
	Expires              sql.NullTime
	Status               AccessRequestStatusType
	Closed               sql.NullTime
	Granter              sql.NullString
	Reason               sql.NullString
}

type DatasetView

type DatasetView struct {
	DsID            uuid.UUID
	DsName          string
	DsDescription   sql.NullString
	DsCreated       time.Time
	DsLastModified  time.Time
	DsSlug          string
	Pii             PiiLevel
	DsKeywords      []string
	DsRepo          sql.NullString
	BqID            uuid.UUID
	BqCreated       time.Time
	BqLastModified  time.Time
	BqExpires       sql.NullTime
	BqDescription   sql.NullString
	BqMissingSince  sql.NullTime
	PiiTags         pqtype.NullRawMessage
	BqProject       string
	BqDataset       string
	BqTableName     string
	BqTableType     string
	PseudoColumns   []string
	BqSchema        pqtype.NullRawMessage
	DsDpID          uuid.UUID
	MappingServices []string
	AccessID        uuid.NullUUID
	AccessSubject   sql.NullString
	AccessOwner     sql.NullString
	AccessGranter   sql.NullString
	AccessExpires   sql.NullTime
	AccessCreated   sql.NullTime
	AccessRevoked   sql.NullTime
	AccessRequestID uuid.NullUUID
	MbDatabaseID    sql.NullInt32
	MbDeletedAt     sql.NullTime
}

type DatasetsByMetabaseParams

type DatasetsByMetabaseParams struct {
	Offs int32
	Lim  int32
}

type DatasourceBigquery

type DatasourceBigquery struct {
	DatasetID     uuid.UUID
	ProjectID     string
	Dataset       string
	TableName     string
	Schema        pqtype.NullRawMessage
	LastModified  time.Time
	Created       time.Time
	Expires       sql.NullTime
	TableType     string
	Description   sql.NullString
	PiiTags       pqtype.NullRawMessage
	MissingSince  sql.NullTime
	ID            uuid.UUID
	IsReference   bool
	PseudoColumns []string
	Deleted       sql.NullTime
}

type DatasourceType

type DatasourceType string
const (
	DatasourceTypeBigquery DatasourceType = "bigquery"
)

func (*DatasourceType) Scan

func (e *DatasourceType) Scan(src interface{}) error

type DenyAccessRequestParams

type DenyAccessRequestParams struct {
	Granter sql.NullString
	Reason  sql.NullString
	ID      uuid.UUID
}

type GetAccessibleDatasetsByOwnedServiceAccountsParams

type GetAccessibleDatasetsByOwnedServiceAccountsParams struct {
	Requester string
	Groups    []string
}

type GetAccessibleDatasetsByOwnedServiceAccountsRow

type GetAccessibleDatasetsByOwnedServiceAccountsRow struct {
	ID                       uuid.UUID
	Name                     string
	Description              sql.NullString
	Pii                      PiiLevel
	Created                  time.Time
	LastModified             time.Time
	Type                     DatasourceType
	TsvDocument              interface{}
	Slug                     string
	Repo                     sql.NullString
	Keywords                 []string
	DataproductID            uuid.UUID
	AnonymisationDescription sql.NullString
	TargetUser               sql.NullString
	Subject                  sql.NullString
	AccessOwner              sql.NullString
	DpSlug                   sql.NullString
	DpName                   sql.NullString
	Group                    sql.NullString
}

type GetAccessibleDatasetsParams

type GetAccessibleDatasetsParams struct {
	Groups    []string
	Requester string
}

type GetAccessibleDatasetsRow

type GetAccessibleDatasetsRow struct {
	ID                       uuid.UUID
	Name                     string
	Description              sql.NullString
	Pii                      PiiLevel
	Created                  time.Time
	LastModified             time.Time
	Type                     DatasourceType
	TsvDocument              interface{}
	Slug                     string
	Repo                     sql.NullString
	Keywords                 []string
	DataproductID            uuid.UUID
	AnonymisationDescription sql.NullString
	TargetUser               sql.NullString
	Subject                  sql.NullString
	AccessOwner              sql.NullString
	DpSlug                   sql.NullString
	DpName                   sql.NullString
	Group                    sql.NullString
}

type GetAccessiblePseudoDatasetsByUserParams

type GetAccessiblePseudoDatasetsByUserParams struct {
	AccessSubjects []string
	OwnerSubjects  []string
}

type GetAccessiblePseudoDatasetsByUserRow

type GetAccessiblePseudoDatasetsByUserRow struct {
	DatasetID      uuid.UUID
	Name           string
	BqProjectID    string
	BqDatasetID    string
	BqTableID      string
	BqDatasourceID uuid.UUID
}

type GetActiveAccessToDatasetForSubjectParams

type GetActiveAccessToDatasetForSubjectParams struct {
	DatasetID uuid.UUID
	Subject   string
}

type GetAllDatasetsMinimalRow

type GetAllDatasetsMinimalRow struct {
	ID        uuid.UUID
	Created   time.Time
	Name      string
	ProjectID string
	Dataset   string
	TableName string
}

type GetBigqueryDatasourceParams

type GetBigqueryDatasourceParams struct {
	DatasetID   uuid.UUID
	IsReference bool
}

type GetDataproductWithDatasetsBasicRow

type GetDataproductWithDatasetsBasicRow struct {
	ID                       uuid.UUID
	Name                     string
	Description              sql.NullString
	Group                    string
	Created                  time.Time
	LastModified             time.Time
	TsvDocument              interface{}
	Slug                     string
	TeamkatalogenUrl         sql.NullString
	TeamContact              sql.NullString
	TeamID                   uuid.NullUUID
	TeamName                 sql.NullString
	PaName                   sql.NullString
	PaID                     uuid.NullUUID
	ID_2                     uuid.NullUUID
	Name_2                   sql.NullString
	Description_2            sql.NullString
	Pii                      NullPiiLevel
	Created_2                sql.NullTime
	LastModified_2           sql.NullTime
	Type                     NullDatasourceType
	TsvDocument_2            interface{}
	Slug_2                   sql.NullString
	Repo                     sql.NullString
	Keywords                 []string
	DataproductID            uuid.NullUUID
	AnonymisationDescription sql.NullString
	TargetUser               sql.NullString
}

type GetDataproductsParams

type GetDataproductsParams struct {
	Offset int32
	Limit  int32
}

type GetDataproductsWithDatasetsAndAccessRequestsParams

type GetDataproductsWithDatasetsAndAccessRequestsParams struct {
	Ids    []uuid.UUID
	Groups []string
}

type GetDataproductsWithDatasetsAndAccessRequestsRow

type GetDataproductsWithDatasetsAndAccessRequestsRow struct {
	DpID                    uuid.UUID
	DpName                  string
	DpDescription           sql.NullString
	DpGroup                 string
	DpCreated               time.Time
	DpLastModified          time.Time
	DpSlug                  string
	TeamkatalogenUrl        sql.NullString
	TeamContact             sql.NullString
	TeamID                  uuid.NullUUID
	TeamName                sql.NullString
	PaName                  sql.NullString
	PaID                    uuid.NullUUID
	DsDpID                  uuid.NullUUID
	DsID                    uuid.NullUUID
	DsName                  sql.NullString
	DsDescription           sql.NullString
	DsCreated               sql.NullTime
	DsLastModified          sql.NullTime
	DsSlug                  sql.NullString
	DsKeywords              []string
	DsrcLastModified        sql.NullTime
	DarID                   uuid.NullUUID
	DarDatasetID            uuid.NullUUID
	DarSubject              sql.NullString
	DarOwner                sql.NullString
	DarExpires              sql.NullTime
	DarStatus               NullAccessRequestStatusType
	DarGranter              sql.NullString
	DarReason               sql.NullString
	DarClosed               sql.NullTime
	DarPollyDocumentationID uuid.NullUUID
	DarCreated              sql.NullTime
}

type GetDataproductsWithDatasetsParams

type GetDataproductsWithDatasetsParams struct {
	Ids    []uuid.UUID
	Groups []string
}

type GetDataproductsWithDatasetsRow

type GetDataproductsWithDatasetsRow struct {
	DpID             uuid.UUID
	DpName           string
	DpDescription    sql.NullString
	DpGroup          string
	DpCreated        time.Time
	DpLastModified   time.Time
	DpSlug           string
	TeamkatalogenUrl sql.NullString
	TeamContact      sql.NullString
	TeamID           uuid.NullUUID
	TeamName         sql.NullString
	PaName           sql.NullString
	PaID             uuid.NullUUID
	DsDpID           uuid.NullUUID
	DsID             uuid.NullUUID
	DsName           sql.NullString
	DsDescription    sql.NullString
	DsCreated        sql.NullTime
	DsLastModified   sql.NullTime
	DsSlug           sql.NullString
	DsKeywords       []string
	DsrcLastModified sql.NullTime
}

type GetDatasetsByMappingParams

type GetDatasetsByMappingParams struct {
	Service string
	Offs    int32
	Lim     int32
}

type GetDatasetsParams

type GetDatasetsParams struct {
	Offset int32
	Limit  int32
}

type GetJoinableViewWithDatasetRow

type GetJoinableViewWithDatasetRow struct {
	BqProject           string
	BqDataset           string
	BqTable             string
	Deleted             sql.NullTime
	DatasetID           uuid.NullUUID
	JoinableViewID      uuid.UUID
	Group               sql.NullString
	JoinableViewName    string
	JoinableViewCreated time.Time
	JoinableViewExpires sql.NullTime
}

type GetJoinableViewsForOwnerRow

type GetJoinableViewsForOwnerRow struct {
	ID        uuid.UUID
	Name      string
	Owner     string
	Created   time.Time
	Expires   sql.NullTime
	ProjectID string
	DatasetID string
	TableID   string
}

type GetJoinableViewsForReferenceAndUserParams

type GetJoinableViewsForReferenceAndUserParams struct {
	Owner           string
	PseudoDatasetID uuid.UUID
}

type GetJoinableViewsForReferenceAndUserRow

type GetJoinableViewsForReferenceAndUserRow struct {
	ID      uuid.UUID
	Dataset string
}

type GetJoinableViewsToBeDeletedWithRefDatasourceRow

type GetJoinableViewsToBeDeletedWithRefDatasourceRow struct {
	JoinableViewID   uuid.UUID
	JoinableViewName string
	BqProjectID      string
	BqDatasetID      string
	BqTableID        string
}

type GetJoinableViewsWithReferenceRow

type GetJoinableViewsWithReferenceRow struct {
	Owner               string
	JoinableViewID      uuid.UUID
	JoinableViewDataset string
	PseudoViewID        uuid.UUID
	PseudoProjectID     string
	PseudoDataset       string
	PseudoTable         string
	Expires             sql.NullTime
}

type GetKeywordsRow

type GetKeywordsRow struct {
	Keyword string
	Count   int64
}

type GetOpenMetabaseTablesInSameBigQueryDatasetParams

type GetOpenMetabaseTablesInSameBigQueryDatasetParams struct {
	ProjectID string
	Dataset   string
}

type GrantAccessToDatasetParams

type GrantAccessToDatasetParams struct {
	DatasetID       uuid.UUID
	Subject         string
	Owner           string
	Granter         string
	Expires         sql.NullTime
	AccessRequestID uuid.NullUUID
}

type HttpCache

type HttpCache struct {
	ID                int32
	Endpoint          string
	ResponseBody      []byte
	CreatedAt         time.Time
	LastTriedUpdateAt time.Time
}

type InsightProduct

type InsightProduct struct {
	ID               uuid.UUID
	Name             string
	Description      sql.NullString
	Creator          string
	Created          time.Time
	LastModified     time.Time
	Type             string
	TsvDocument      interface{}
	Link             string
	Keywords         []string
	Group            string
	TeamkatalogenUrl sql.NullString
	TeamID           uuid.NullUUID
}

type InsightProductWithTeamkatalogenView

type InsightProductWithTeamkatalogenView struct {
	ID               uuid.UUID
	Name             string
	Description      sql.NullString
	Creator          string
	Created          time.Time
	LastModified     time.Time
	Type             string
	TsvDocument      interface{}
	Link             string
	Keywords         []string
	Group            string
	TeamkatalogenUrl sql.NullString
	TeamID           uuid.NullUUID
	TeamName         sql.NullString
	PaName           sql.NullString
}

type JoinableView

type JoinableView struct {
	ID      uuid.UUID
	Owner   string
	Name    string
	Created time.Time
	Expires sql.NullTime
	Deleted sql.NullTime
}

type JoinableViewsDatasource

type JoinableViewsDatasource struct {
	ID             uuid.UUID
	JoinableViewID uuid.UUID
	DatasourceID   uuid.UUID
	Deleted        sql.NullTime
}

type MapDatasetParams

type MapDatasetParams struct {
	DatasetID uuid.UUID
	Services  []string
}

type MetabaseMetadatum

type MetabaseMetadatum struct {
	DatabaseID        sql.NullInt32
	PermissionGroupID sql.NullInt32
	SaEmail           string
	CollectionID      sql.NullInt32
	DeletedAt         sql.NullTime
	DatasetID         uuid.UUID
	SyncCompleted     sql.NullTime
}

type NadaToken

type NadaToken struct {
	Team  string
	Token uuid.UUID
}

type NullAccessRequestStatusType

type NullAccessRequestStatusType struct {
	AccessRequestStatusType AccessRequestStatusType
	Valid                   bool // Valid is true if AccessRequestStatusType is not NULL
}

func (*NullAccessRequestStatusType) Scan

func (ns *NullAccessRequestStatusType) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullAccessRequestStatusType) Value

Value implements the driver Valuer interface.

type NullDatasourceType

type NullDatasourceType struct {
	DatasourceType DatasourceType
	Valid          bool // Valid is true if DatasourceType is not NULL
}

func (*NullDatasourceType) Scan

func (ns *NullDatasourceType) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullDatasourceType) Value

func (ns NullDatasourceType) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type NullPiiLevel

type NullPiiLevel struct {
	PiiLevel PiiLevel
	Valid    bool // Valid is true if PiiLevel is not NULL
}

func (*NullPiiLevel) Scan

func (ns *NullPiiLevel) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullPiiLevel) Value

func (ns NullPiiLevel) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type PiiLevel

type PiiLevel string
const (
	PiiLevelSensitive  PiiLevel = "sensitive"
	PiiLevelAnonymised PiiLevel = "anonymised"
	PiiLevelNone       PiiLevel = "none"
)

func (*PiiLevel) Scan

func (e *PiiLevel) Scan(src interface{}) error

type PollyDocumentation

type PollyDocumentation struct {
	ID         uuid.UUID
	ExternalID string
	Name       string
	Url        string
}

type Querier

type Querier interface {
	AddTeamProject(ctx context.Context, arg AddTeamProjectParams) (TeamProject, error)
	ApproveAccessRequest(ctx context.Context, arg ApproveAccessRequestParams) error
	ClearTeamProjectsCache(ctx context.Context) error
	CreateAccessRequestForDataset(ctx context.Context, arg CreateAccessRequestForDatasetParams) (DatasetAccessRequest, error)
	CreateBigqueryDatasource(ctx context.Context, arg CreateBigqueryDatasourceParams) (DatasourceBigquery, error)
	CreateDataproduct(ctx context.Context, arg CreateDataproductParams) (Dataproduct, error)
	CreateDataset(ctx context.Context, arg CreateDatasetParams) (Dataset, error)
	CreateInsightProduct(ctx context.Context, arg CreateInsightProductParams) (InsightProduct, error)
	CreateJoinableViews(ctx context.Context, arg CreateJoinableViewsParams) (JoinableView, error)
	CreateJoinableViewsDatasource(ctx context.Context, arg CreateJoinableViewsDatasourceParams) (JoinableViewsDatasource, error)
	CreateMetabaseMetadata(ctx context.Context, datasetID uuid.UUID) error
	CreatePollyDocumentation(ctx context.Context, arg CreatePollyDocumentationParams) (PollyDocumentation, error)
	CreateSession(ctx context.Context, arg CreateSessionParams) error
	CreateStory(ctx context.Context, arg CreateStoryParams) (Story, error)
	CreateStoryWithID(ctx context.Context, arg CreateStoryWithIDParams) (Story, error)
	CreateTagIfNotExist(ctx context.Context, phrase string) error
	DataproductGroupStats(ctx context.Context, arg DataproductGroupStatsParams) ([]DataproductGroupStatsRow, error)
	DataproductKeywords(ctx context.Context, keyword string) ([]DataproductKeywordsRow, error)
	DatasetsByMetabase(ctx context.Context, arg DatasetsByMetabaseParams) ([]Dataset, error)
	DeleteAccessRequest(ctx context.Context, id uuid.UUID) error
	DeleteDataproduct(ctx context.Context, id uuid.UUID) error
	DeleteDataset(ctx context.Context, id uuid.UUID) error
	DeleteInsightProduct(ctx context.Context, id uuid.UUID) error
	DeleteMetabaseMetadata(ctx context.Context, datasetID uuid.UUID) error
	DeleteNadaToken(ctx context.Context, team string) error
	DeleteSession(ctx context.Context, token string) error
	DeleteStory(ctx context.Context, id uuid.UUID) error
	DenyAccessRequest(ctx context.Context, arg DenyAccessRequestParams) error
	GetAccessRequest(ctx context.Context, id uuid.UUID) (DatasetAccessRequest, error)
	GetAccessToDataset(ctx context.Context, id uuid.UUID) (DatasetAccess, error)
	GetAccessibleDatasets(ctx context.Context, arg GetAccessibleDatasetsParams) ([]GetAccessibleDatasetsRow, error)
	GetAccessibleDatasetsByOwnedServiceAccounts(ctx context.Context, arg GetAccessibleDatasetsByOwnedServiceAccountsParams) ([]GetAccessibleDatasetsByOwnedServiceAccountsRow, error)
	GetAccessiblePseudoDatasetsByUser(ctx context.Context, arg GetAccessiblePseudoDatasetsByUserParams) ([]GetAccessiblePseudoDatasetsByUserRow, error)
	GetActiveAccessToDatasetForSubject(ctx context.Context, arg GetActiveAccessToDatasetForSubjectParams) (DatasetAccess, error)
	GetAddMetabaseDatasetMappings(ctx context.Context) ([]uuid.UUID, error)
	GetAllDatasetsMinimal(ctx context.Context) ([]GetAllDatasetsMinimalRow, error)
	GetAllMetabaseMetadata(ctx context.Context) ([]MetabaseMetadatum, error)
	GetAllTeams(ctx context.Context) ([]TkTeam, error)
	GetBigqueryDatasource(ctx context.Context, arg GetBigqueryDatasourceParams) (DatasourceBigquery, error)
	GetBigqueryDatasources(ctx context.Context) ([]DatasourceBigquery, error)
	GetDashboard(ctx context.Context, id uuid.UUID) (Dashboard, error)
	GetDataproduct(ctx context.Context, id uuid.UUID) (Dataproduct, error)
	GetDataproductKeywords(ctx context.Context, dpid uuid.UUID) ([]string, error)
	GetDataproductWithDatasetsBasic(ctx context.Context, id uuid.UUID) ([]GetDataproductWithDatasetsBasicRow, error)
	GetDataproducts(ctx context.Context, arg GetDataproductsParams) ([]Dataproduct, error)
	GetDataproductsByGroups(ctx context.Context, groups []string) ([]Dataproduct, error)
	GetDataproductsByIDs(ctx context.Context, ids []uuid.UUID) ([]Dataproduct, error)
	GetDataproductsByProductArea(ctx context.Context, teamID []uuid.UUID) ([]DataproductWithTeamkatalogenView, error)
	GetDataproductsByTeam(ctx context.Context, teamID uuid.NullUUID) ([]Dataproduct, error)
	GetDataproductsNumberByTeam(ctx context.Context, teamID uuid.NullUUID) (int64, error)
	GetDataproductsWithDatasets(ctx context.Context, arg GetDataproductsWithDatasetsParams) ([]GetDataproductsWithDatasetsRow, error)
	GetDataproductsWithDatasetsAndAccessRequests(ctx context.Context, arg GetDataproductsWithDatasetsAndAccessRequestsParams) ([]GetDataproductsWithDatasetsAndAccessRequestsRow, error)
	GetDataset(ctx context.Context, id uuid.UUID) (Dataset, error)
	GetDatasetComplete(ctx context.Context, id uuid.UUID) ([]DatasetView, error)
	GetDatasetMappings(ctx context.Context, datasetID uuid.UUID) (ThirdPartyMapping, error)
	GetDatasets(ctx context.Context, arg GetDatasetsParams) ([]Dataset, error)
	GetDatasetsByGroups(ctx context.Context, groups []string) ([]Dataset, error)
	GetDatasetsByIDs(ctx context.Context, ids []uuid.UUID) ([]Dataset, error)
	GetDatasetsByMapping(ctx context.Context, arg GetDatasetsByMappingParams) ([]Dataset, error)
	GetDatasetsByUserAccess(ctx context.Context, id string) ([]Dataset, error)
	GetDatasetsForOwner(ctx context.Context, groups []string) ([]Dataset, error)
	GetDatasetsInDataproduct(ctx context.Context, dataproductID uuid.UUID) ([]Dataset, error)
	GetInsightProduct(ctx context.Context, id uuid.UUID) (InsightProduct, error)
	GetInsightProductByGroups_(ctx context.Context, groups []string) ([]InsightProduct, error)
	GetInsightProductWithTeamkatalogen(ctx context.Context, id uuid.UUID) (InsightProductWithTeamkatalogenView, error)
	GetInsightProducts(ctx context.Context) ([]InsightProduct, error)
	GetInsightProductsByGroups(ctx context.Context, groups []string) ([]InsightProductWithTeamkatalogenView, error)
	GetInsightProductsByIDs(ctx context.Context, id []uuid.UUID) ([]InsightProduct, error)
	GetInsightProductsByProductArea(ctx context.Context, teamID []uuid.UUID) ([]InsightProductWithTeamkatalogenView, error)
	GetInsightProductsByTeam(ctx context.Context, teamID uuid.NullUUID) ([]InsightProduct, error)
	GetInsightProductsNumberByTeam(ctx context.Context, teamID uuid.NullUUID) (int64, error)
	GetJoinableViewWithDataset(ctx context.Context, id uuid.UUID) ([]GetJoinableViewWithDatasetRow, error)
	GetJoinableViewsForOwner(ctx context.Context, owner string) ([]GetJoinableViewsForOwnerRow, error)
	GetJoinableViewsForReferenceAndUser(ctx context.Context, arg GetJoinableViewsForReferenceAndUserParams) ([]GetJoinableViewsForReferenceAndUserRow, error)
	GetJoinableViewsToBeDeletedWithRefDatasource(ctx context.Context) ([]GetJoinableViewsToBeDeletedWithRefDatasourceRow, error)
	GetJoinableViewsWithReference(ctx context.Context) ([]GetJoinableViewsWithReferenceRow, error)
	GetKeywords(ctx context.Context) ([]GetKeywordsRow, error)
	GetMetabaseMetadata(ctx context.Context, datasetID uuid.UUID) (MetabaseMetadatum, error)
	GetMetabaseMetadataWithDeleted(ctx context.Context, datasetID uuid.UUID) (MetabaseMetadatum, error)
	GetNadaToken(ctx context.Context, team string) (uuid.UUID, error)
	GetNadaTokens(ctx context.Context) ([]NadaToken, error)
	GetNadaTokensForTeams(ctx context.Context, teams []string) ([]NadaToken, error)
	GetOpenMetabaseTablesInSameBigQueryDataset(ctx context.Context, arg GetOpenMetabaseTablesInSameBigQueryDatasetParams) ([]string, error)
	GetOwnerGroupOfDataset(ctx context.Context, datasetID uuid.UUID) (string, error)
	GetPollyDocumentation(ctx context.Context, id uuid.UUID) (PollyDocumentation, error)
	GetProductArea(ctx context.Context, id uuid.UUID) (TkProductArea, error)
	GetProductAreas(ctx context.Context) ([]TkProductArea, error)
	GetPseudoDatasourcesToDelete(ctx context.Context) ([]DatasourceBigquery, error)
	GetRemoveMetabaseDatasetMappings(ctx context.Context) ([]uuid.UUID, error)
	GetSession(ctx context.Context, token string) (Session, error)
	GetStories(ctx context.Context) ([]Story, error)
	GetStoriesByGroups(ctx context.Context, groups []string) ([]Story, error)
	GetStoriesByIDs(ctx context.Context, ids []uuid.UUID) ([]Story, error)
	GetStoriesByProductArea(ctx context.Context, teamID []uuid.UUID) ([]StoryWithTeamkatalogenView, error)
	GetStoriesByTeam(ctx context.Context, teamID uuid.NullUUID) ([]Story, error)
	GetStoriesNumberByTeam(ctx context.Context, teamID uuid.NullUUID) (int64, error)
	GetStoriesWithTeamkatalogenByGroups(ctx context.Context, groups []string) ([]StoryWithTeamkatalogenView, error)
	GetStoriesWithTeamkatalogenByIDs(ctx context.Context, ids []uuid.UUID) ([]StoryWithTeamkatalogenView, error)
	GetStory(ctx context.Context, id uuid.UUID) (Story, error)
	GetTag(ctx context.Context) (Tag, error)
	GetTagByPhrase(ctx context.Context) (Tag, error)
	GetTags(ctx context.Context) ([]Tag, error)
	GetTeamFromNadaToken(ctx context.Context, token uuid.UUID) (string, error)
	GetTeamProjects(ctx context.Context) ([]TeamProject, error)
	GetTeamsInProductArea(ctx context.Context, productAreaID uuid.NullUUID) ([]TkTeam, error)
	GrantAccessToDataset(ctx context.Context, arg GrantAccessToDatasetParams) (DatasetAccess, error)
	ListAccessRequestsForDataset(ctx context.Context, datasetID uuid.UUID) ([]DatasetAccessRequest, error)
	ListAccessRequestsForOwner(ctx context.Context, owner []string) ([]DatasetAccessRequest, error)
	ListAccessToDataset(ctx context.Context, datasetID uuid.UUID) ([]DatasetAccess, error)
	ListActiveAccessToDataset(ctx context.Context, datasetID uuid.UUID) ([]DatasetAccess, error)
	ListUnrevokedExpiredAccessEntries(ctx context.Context) ([]DatasetAccess, error)
	MapDataset(ctx context.Context, arg MapDatasetParams) error
	RemoveKeywordInDatasets(ctx context.Context, keywordToRemove interface{}) error
	RemoveKeywordInStories(ctx context.Context, keywordToRemove interface{}) error
	ReplaceDatasetsTag(ctx context.Context, arg ReplaceDatasetsTagParams) error
	ReplaceKeywordInDatasets(ctx context.Context, arg ReplaceKeywordInDatasetsParams) error
	ReplaceKeywordInStories(ctx context.Context, arg ReplaceKeywordInStoriesParams) error
	ReplaceStoriesTag(ctx context.Context, arg ReplaceStoriesTagParams) error
	RestoreMetabaseMetadata(ctx context.Context, datasetID uuid.UUID) error
	RevokeAccessToDataset(ctx context.Context, id uuid.UUID) error
	RotateNadaToken(ctx context.Context, team string) error
	Search(ctx context.Context, arg SearchParams) ([]SearchRow, error)
	SetCollectionMetabaseMetadata(ctx context.Context, arg SetCollectionMetabaseMetadataParams) (MetabaseMetadatum, error)
	SetDatabaseMetabaseMetadata(ctx context.Context, arg SetDatabaseMetabaseMetadataParams) (MetabaseMetadatum, error)
	SetDatasourceDeleted(ctx context.Context, id uuid.UUID) error
	SetJoinableViewDeleted(ctx context.Context, id uuid.UUID) error
	SetPermissionGroupMetabaseMetadata(ctx context.Context, arg SetPermissionGroupMetabaseMetadataParams) (MetabaseMetadatum, error)
	SetServiceAccountMetabaseMetadata(ctx context.Context, arg SetServiceAccountMetabaseMetadataParams) (MetabaseMetadatum, error)
	SetSyncCompletedMetabaseMetadata(ctx context.Context, datasetID uuid.UUID) error
	SoftDeleteMetabaseMetadata(ctx context.Context, datasetID uuid.UUID) error
	UpdateAccessRequest(ctx context.Context, arg UpdateAccessRequestParams) (DatasetAccessRequest, error)
	UpdateBigqueryDatasource(ctx context.Context, arg UpdateBigqueryDatasourceParams) error
	UpdateBigqueryDatasourceMissing(ctx context.Context, datasetID uuid.UUID) error
	UpdateBigqueryDatasourceSchema(ctx context.Context, arg UpdateBigqueryDatasourceSchemaParams) error
	UpdateDataproduct(ctx context.Context, arg UpdateDataproductParams) (Dataproduct, error)
	UpdateDataset(ctx context.Context, arg UpdateDatasetParams) (Dataset, error)
	UpdateInsightProduct(ctx context.Context, arg UpdateInsightProductParams) (InsightProduct, error)
	UpdateStory(ctx context.Context, arg UpdateStoryParams) (Story, error)
	UpdateTag(ctx context.Context, arg UpdateTagParams) error
	UpsertProductArea(ctx context.Context, arg UpsertProductAreaParams) error
	UpsertTeam(ctx context.Context, arg UpsertTeamParams) error
}

type Queries

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

func New

func New(db DBTX) *Queries

func (*Queries) AddTeamProject

func (q *Queries) AddTeamProject(ctx context.Context, arg AddTeamProjectParams) (TeamProject, error)

func (*Queries) ApproveAccessRequest

func (q *Queries) ApproveAccessRequest(ctx context.Context, arg ApproveAccessRequestParams) error

func (*Queries) ClearTeamProjectsCache

func (q *Queries) ClearTeamProjectsCache(ctx context.Context) error

func (*Queries) CreateAccessRequestForDataset

func (q *Queries) CreateAccessRequestForDataset(ctx context.Context, arg CreateAccessRequestForDatasetParams) (DatasetAccessRequest, error)

func (*Queries) CreateBigqueryDatasource

func (q *Queries) CreateBigqueryDatasource(ctx context.Context, arg CreateBigqueryDatasourceParams) (DatasourceBigquery, error)

func (*Queries) CreateDataproduct

func (q *Queries) CreateDataproduct(ctx context.Context, arg CreateDataproductParams) (Dataproduct, error)

func (*Queries) CreateDataset

func (q *Queries) CreateDataset(ctx context.Context, arg CreateDatasetParams) (Dataset, error)

func (*Queries) CreateInsightProduct

func (q *Queries) CreateInsightProduct(ctx context.Context, arg CreateInsightProductParams) (InsightProduct, error)

func (*Queries) CreateJoinableViews

func (q *Queries) CreateJoinableViews(ctx context.Context, arg CreateJoinableViewsParams) (JoinableView, error)

func (*Queries) CreateJoinableViewsDatasource

func (q *Queries) CreateJoinableViewsDatasource(ctx context.Context, arg CreateJoinableViewsDatasourceParams) (JoinableViewsDatasource, error)

func (*Queries) CreateMetabaseMetadata

func (q *Queries) CreateMetabaseMetadata(ctx context.Context, datasetID uuid.UUID) error

func (*Queries) CreatePollyDocumentation

func (q *Queries) CreatePollyDocumentation(ctx context.Context, arg CreatePollyDocumentationParams) (PollyDocumentation, error)

func (*Queries) CreateSession

func (q *Queries) CreateSession(ctx context.Context, arg CreateSessionParams) error

func (*Queries) CreateStory

func (q *Queries) CreateStory(ctx context.Context, arg CreateStoryParams) (Story, error)

func (*Queries) CreateStoryWithID

func (q *Queries) CreateStoryWithID(ctx context.Context, arg CreateStoryWithIDParams) (Story, error)

func (*Queries) CreateTagIfNotExist

func (q *Queries) CreateTagIfNotExist(ctx context.Context, phrase string) error

func (*Queries) DataproductGroupStats

func (q *Queries) DataproductGroupStats(ctx context.Context, arg DataproductGroupStatsParams) ([]DataproductGroupStatsRow, error)

func (*Queries) DataproductKeywords

func (q *Queries) DataproductKeywords(ctx context.Context, keyword string) ([]DataproductKeywordsRow, error)

func (*Queries) DatasetsByMetabase

func (q *Queries) DatasetsByMetabase(ctx context.Context, arg DatasetsByMetabaseParams) ([]Dataset, error)

func (*Queries) DeleteAccessRequest

func (q *Queries) DeleteAccessRequest(ctx context.Context, id uuid.UUID) error

func (*Queries) DeleteDataproduct

func (q *Queries) DeleteDataproduct(ctx context.Context, id uuid.UUID) error

func (*Queries) DeleteDataset

func (q *Queries) DeleteDataset(ctx context.Context, id uuid.UUID) error

func (*Queries) DeleteInsightProduct

func (q *Queries) DeleteInsightProduct(ctx context.Context, id uuid.UUID) error

func (*Queries) DeleteMetabaseMetadata

func (q *Queries) DeleteMetabaseMetadata(ctx context.Context, datasetID uuid.UUID) error

func (*Queries) DeleteNadaToken

func (q *Queries) DeleteNadaToken(ctx context.Context, team string) error

func (*Queries) DeleteSession

func (q *Queries) DeleteSession(ctx context.Context, token string) error

func (*Queries) DeleteStory

func (q *Queries) DeleteStory(ctx context.Context, id uuid.UUID) error

func (*Queries) DenyAccessRequest

func (q *Queries) DenyAccessRequest(ctx context.Context, arg DenyAccessRequestParams) error

func (*Queries) GetAccessRequest

func (q *Queries) GetAccessRequest(ctx context.Context, id uuid.UUID) (DatasetAccessRequest, error)

func (*Queries) GetAccessToDataset

func (q *Queries) GetAccessToDataset(ctx context.Context, id uuid.UUID) (DatasetAccess, error)

func (*Queries) GetAccessibleDatasets

func (q *Queries) GetAccessibleDatasets(ctx context.Context, arg GetAccessibleDatasetsParams) ([]GetAccessibleDatasetsRow, error)

func (*Queries) GetActiveAccessToDatasetForSubject

func (q *Queries) GetActiveAccessToDatasetForSubject(ctx context.Context, arg GetActiveAccessToDatasetForSubjectParams) (DatasetAccess, error)

func (*Queries) GetAddMetabaseDatasetMappings

func (q *Queries) GetAddMetabaseDatasetMappings(ctx context.Context) ([]uuid.UUID, error)

func (*Queries) GetAllDatasetsMinimal

func (q *Queries) GetAllDatasetsMinimal(ctx context.Context) ([]GetAllDatasetsMinimalRow, error)

func (*Queries) GetAllMetabaseMetadata

func (q *Queries) GetAllMetabaseMetadata(ctx context.Context) ([]MetabaseMetadatum, error)

func (*Queries) GetAllTeams

func (q *Queries) GetAllTeams(ctx context.Context) ([]TkTeam, error)

func (*Queries) GetBigqueryDatasource

func (q *Queries) GetBigqueryDatasource(ctx context.Context, arg GetBigqueryDatasourceParams) (DatasourceBigquery, error)

func (*Queries) GetBigqueryDatasources

func (q *Queries) GetBigqueryDatasources(ctx context.Context) ([]DatasourceBigquery, error)

func (*Queries) GetDashboard

func (q *Queries) GetDashboard(ctx context.Context, id uuid.UUID) (Dashboard, error)

func (*Queries) GetDataproduct

func (q *Queries) GetDataproduct(ctx context.Context, id uuid.UUID) (Dataproduct, error)

func (*Queries) GetDataproductKeywords

func (q *Queries) GetDataproductKeywords(ctx context.Context, dpid uuid.UUID) ([]string, error)

func (*Queries) GetDataproductWithDatasetsBasic

func (q *Queries) GetDataproductWithDatasetsBasic(ctx context.Context, id uuid.UUID) ([]GetDataproductWithDatasetsBasicRow, error)

func (*Queries) GetDataproducts

func (q *Queries) GetDataproducts(ctx context.Context, arg GetDataproductsParams) ([]Dataproduct, error)

func (*Queries) GetDataproductsByGroups

func (q *Queries) GetDataproductsByGroups(ctx context.Context, groups []string) ([]Dataproduct, error)

func (*Queries) GetDataproductsByIDs

func (q *Queries) GetDataproductsByIDs(ctx context.Context, ids []uuid.UUID) ([]Dataproduct, error)

func (*Queries) GetDataproductsByProductArea

func (q *Queries) GetDataproductsByProductArea(ctx context.Context, teamID []uuid.UUID) ([]DataproductWithTeamkatalogenView, error)

func (*Queries) GetDataproductsByTeam

func (q *Queries) GetDataproductsByTeam(ctx context.Context, teamID uuid.NullUUID) ([]Dataproduct, error)

func (*Queries) GetDataproductsNumberByTeam

func (q *Queries) GetDataproductsNumberByTeam(ctx context.Context, teamID uuid.NullUUID) (int64, error)

func (*Queries) GetDataset

func (q *Queries) GetDataset(ctx context.Context, id uuid.UUID) (Dataset, error)

func (*Queries) GetDatasetComplete

func (q *Queries) GetDatasetComplete(ctx context.Context, id uuid.UUID) ([]DatasetView, error)

func (*Queries) GetDatasetMappings

func (q *Queries) GetDatasetMappings(ctx context.Context, datasetID uuid.UUID) (ThirdPartyMapping, error)

func (*Queries) GetDatasets

func (q *Queries) GetDatasets(ctx context.Context, arg GetDatasetsParams) ([]Dataset, error)

func (*Queries) GetDatasetsByGroups

func (q *Queries) GetDatasetsByGroups(ctx context.Context, groups []string) ([]Dataset, error)

func (*Queries) GetDatasetsByIDs

func (q *Queries) GetDatasetsByIDs(ctx context.Context, ids []uuid.UUID) ([]Dataset, error)

func (*Queries) GetDatasetsByMapping

func (q *Queries) GetDatasetsByMapping(ctx context.Context, arg GetDatasetsByMappingParams) ([]Dataset, error)

func (*Queries) GetDatasetsByUserAccess

func (q *Queries) GetDatasetsByUserAccess(ctx context.Context, id string) ([]Dataset, error)

func (*Queries) GetDatasetsForOwner

func (q *Queries) GetDatasetsForOwner(ctx context.Context, groups []string) ([]Dataset, error)

func (*Queries) GetDatasetsInDataproduct

func (q *Queries) GetDatasetsInDataproduct(ctx context.Context, dataproductID uuid.UUID) ([]Dataset, error)

func (*Queries) GetInsightProduct

func (q *Queries) GetInsightProduct(ctx context.Context, id uuid.UUID) (InsightProduct, error)

func (*Queries) GetInsightProductByGroups_

func (q *Queries) GetInsightProductByGroups_(ctx context.Context, groups []string) ([]InsightProduct, error)

func (*Queries) GetInsightProductWithTeamkatalogen

func (q *Queries) GetInsightProductWithTeamkatalogen(ctx context.Context, id uuid.UUID) (InsightProductWithTeamkatalogenView, error)

func (*Queries) GetInsightProducts

func (q *Queries) GetInsightProducts(ctx context.Context) ([]InsightProduct, error)

func (*Queries) GetInsightProductsByGroups

func (q *Queries) GetInsightProductsByGroups(ctx context.Context, groups []string) ([]InsightProductWithTeamkatalogenView, error)

func (*Queries) GetInsightProductsByIDs

func (q *Queries) GetInsightProductsByIDs(ctx context.Context, id []uuid.UUID) ([]InsightProduct, error)

func (*Queries) GetInsightProductsByProductArea

func (q *Queries) GetInsightProductsByProductArea(ctx context.Context, teamID []uuid.UUID) ([]InsightProductWithTeamkatalogenView, error)

func (*Queries) GetInsightProductsByTeam

func (q *Queries) GetInsightProductsByTeam(ctx context.Context, teamID uuid.NullUUID) ([]InsightProduct, error)

func (*Queries) GetInsightProductsNumberByTeam

func (q *Queries) GetInsightProductsNumberByTeam(ctx context.Context, teamID uuid.NullUUID) (int64, error)

func (*Queries) GetJoinableViewWithDataset

func (q *Queries) GetJoinableViewWithDataset(ctx context.Context, id uuid.UUID) ([]GetJoinableViewWithDatasetRow, error)

func (*Queries) GetJoinableViewsForOwner

func (q *Queries) GetJoinableViewsForOwner(ctx context.Context, owner string) ([]GetJoinableViewsForOwnerRow, error)

func (*Queries) GetJoinableViewsToBeDeletedWithRefDatasource

func (q *Queries) GetJoinableViewsToBeDeletedWithRefDatasource(ctx context.Context) ([]GetJoinableViewsToBeDeletedWithRefDatasourceRow, error)

func (*Queries) GetJoinableViewsWithReference

func (q *Queries) GetJoinableViewsWithReference(ctx context.Context) ([]GetJoinableViewsWithReferenceRow, error)

func (*Queries) GetKeywords

func (q *Queries) GetKeywords(ctx context.Context) ([]GetKeywordsRow, error)

func (*Queries) GetMetabaseMetadata

func (q *Queries) GetMetabaseMetadata(ctx context.Context, datasetID uuid.UUID) (MetabaseMetadatum, error)

func (*Queries) GetMetabaseMetadataWithDeleted

func (q *Queries) GetMetabaseMetadataWithDeleted(ctx context.Context, datasetID uuid.UUID) (MetabaseMetadatum, error)

func (*Queries) GetNadaToken

func (q *Queries) GetNadaToken(ctx context.Context, team string) (uuid.UUID, error)

func (*Queries) GetNadaTokens

func (q *Queries) GetNadaTokens(ctx context.Context) ([]NadaToken, error)

func (*Queries) GetNadaTokensForTeams

func (q *Queries) GetNadaTokensForTeams(ctx context.Context, teams []string) ([]NadaToken, error)

func (*Queries) GetOpenMetabaseTablesInSameBigQueryDataset

func (q *Queries) GetOpenMetabaseTablesInSameBigQueryDataset(ctx context.Context, arg GetOpenMetabaseTablesInSameBigQueryDatasetParams) ([]string, error)

func (*Queries) GetOwnerGroupOfDataset

func (q *Queries) GetOwnerGroupOfDataset(ctx context.Context, datasetID uuid.UUID) (string, error)

func (*Queries) GetPollyDocumentation

func (q *Queries) GetPollyDocumentation(ctx context.Context, id uuid.UUID) (PollyDocumentation, error)

func (*Queries) GetProductArea

func (q *Queries) GetProductArea(ctx context.Context, id uuid.UUID) (TkProductArea, error)

func (*Queries) GetProductAreas

func (q *Queries) GetProductAreas(ctx context.Context) ([]TkProductArea, error)

func (*Queries) GetPseudoDatasourcesToDelete

func (q *Queries) GetPseudoDatasourcesToDelete(ctx context.Context) ([]DatasourceBigquery, error)

func (*Queries) GetRemoveMetabaseDatasetMappings

func (q *Queries) GetRemoveMetabaseDatasetMappings(ctx context.Context) ([]uuid.UUID, error)

func (*Queries) GetSession

func (q *Queries) GetSession(ctx context.Context, token string) (Session, error)

func (*Queries) GetStories

func (q *Queries) GetStories(ctx context.Context) ([]Story, error)

func (*Queries) GetStoriesByGroups

func (q *Queries) GetStoriesByGroups(ctx context.Context, groups []string) ([]Story, error)

func (*Queries) GetStoriesByIDs

func (q *Queries) GetStoriesByIDs(ctx context.Context, ids []uuid.UUID) ([]Story, error)

func (*Queries) GetStoriesByProductArea

func (q *Queries) GetStoriesByProductArea(ctx context.Context, teamID []uuid.UUID) ([]StoryWithTeamkatalogenView, error)

func (*Queries) GetStoriesByTeam

func (q *Queries) GetStoriesByTeam(ctx context.Context, teamID uuid.NullUUID) ([]Story, error)

func (*Queries) GetStoriesNumberByTeam

func (q *Queries) GetStoriesNumberByTeam(ctx context.Context, teamID uuid.NullUUID) (int64, error)

func (*Queries) GetStoriesWithTeamkatalogenByGroups

func (q *Queries) GetStoriesWithTeamkatalogenByGroups(ctx context.Context, groups []string) ([]StoryWithTeamkatalogenView, error)

func (*Queries) GetStoriesWithTeamkatalogenByIDs

func (q *Queries) GetStoriesWithTeamkatalogenByIDs(ctx context.Context, ids []uuid.UUID) ([]StoryWithTeamkatalogenView, error)

func (*Queries) GetStory

func (q *Queries) GetStory(ctx context.Context, id uuid.UUID) (Story, error)

func (*Queries) GetTag

func (q *Queries) GetTag(ctx context.Context) (Tag, error)

func (*Queries) GetTagByPhrase

func (q *Queries) GetTagByPhrase(ctx context.Context) (Tag, error)

func (*Queries) GetTags

func (q *Queries) GetTags(ctx context.Context) ([]Tag, error)

func (*Queries) GetTeamFromNadaToken

func (q *Queries) GetTeamFromNadaToken(ctx context.Context, token uuid.UUID) (string, error)

func (*Queries) GetTeamProjects

func (q *Queries) GetTeamProjects(ctx context.Context) ([]TeamProject, error)

func (*Queries) GetTeamsInProductArea

func (q *Queries) GetTeamsInProductArea(ctx context.Context, productAreaID uuid.NullUUID) ([]TkTeam, error)

func (*Queries) GrantAccessToDataset

func (q *Queries) GrantAccessToDataset(ctx context.Context, arg GrantAccessToDatasetParams) (DatasetAccess, error)

func (*Queries) ListAccessRequestsForDataset

func (q *Queries) ListAccessRequestsForDataset(ctx context.Context, datasetID uuid.UUID) ([]DatasetAccessRequest, error)

func (*Queries) ListAccessRequestsForOwner

func (q *Queries) ListAccessRequestsForOwner(ctx context.Context, owner []string) ([]DatasetAccessRequest, error)

func (*Queries) ListAccessToDataset

func (q *Queries) ListAccessToDataset(ctx context.Context, datasetID uuid.UUID) ([]DatasetAccess, error)

func (*Queries) ListActiveAccessToDataset

func (q *Queries) ListActiveAccessToDataset(ctx context.Context, datasetID uuid.UUID) ([]DatasetAccess, error)

func (*Queries) ListUnrevokedExpiredAccessEntries

func (q *Queries) ListUnrevokedExpiredAccessEntries(ctx context.Context) ([]DatasetAccess, error)

func (*Queries) MapDataset

func (q *Queries) MapDataset(ctx context.Context, arg MapDatasetParams) error

func (*Queries) RemoveKeywordInDatasets

func (q *Queries) RemoveKeywordInDatasets(ctx context.Context, keywordToRemove interface{}) error

func (*Queries) RemoveKeywordInStories

func (q *Queries) RemoveKeywordInStories(ctx context.Context, keywordToRemove interface{}) error

func (*Queries) ReplaceDatasetsTag

func (q *Queries) ReplaceDatasetsTag(ctx context.Context, arg ReplaceDatasetsTagParams) error

func (*Queries) ReplaceKeywordInDatasets

func (q *Queries) ReplaceKeywordInDatasets(ctx context.Context, arg ReplaceKeywordInDatasetsParams) error

func (*Queries) ReplaceKeywordInStories

func (q *Queries) ReplaceKeywordInStories(ctx context.Context, arg ReplaceKeywordInStoriesParams) error

func (*Queries) ReplaceStoriesTag

func (q *Queries) ReplaceStoriesTag(ctx context.Context, arg ReplaceStoriesTagParams) error

func (*Queries) RestoreMetabaseMetadata

func (q *Queries) RestoreMetabaseMetadata(ctx context.Context, datasetID uuid.UUID) error

func (*Queries) RevokeAccessToDataset

func (q *Queries) RevokeAccessToDataset(ctx context.Context, id uuid.UUID) error

func (*Queries) RotateNadaToken

func (q *Queries) RotateNadaToken(ctx context.Context, team string) error

func (*Queries) Search

func (q *Queries) Search(ctx context.Context, arg SearchParams) ([]SearchRow, error)

func (*Queries) SetCollectionMetabaseMetadata

func (q *Queries) SetCollectionMetabaseMetadata(ctx context.Context, arg SetCollectionMetabaseMetadataParams) (MetabaseMetadatum, error)

func (*Queries) SetDatabaseMetabaseMetadata

func (q *Queries) SetDatabaseMetabaseMetadata(ctx context.Context, arg SetDatabaseMetabaseMetadataParams) (MetabaseMetadatum, error)

func (*Queries) SetDatasourceDeleted

func (q *Queries) SetDatasourceDeleted(ctx context.Context, id uuid.UUID) error

func (*Queries) SetJoinableViewDeleted

func (q *Queries) SetJoinableViewDeleted(ctx context.Context, id uuid.UUID) error

func (*Queries) SetPermissionGroupMetabaseMetadata

func (q *Queries) SetPermissionGroupMetabaseMetadata(ctx context.Context, arg SetPermissionGroupMetabaseMetadataParams) (MetabaseMetadatum, error)

func (*Queries) SetServiceAccountMetabaseMetadata

func (q *Queries) SetServiceAccountMetabaseMetadata(ctx context.Context, arg SetServiceAccountMetabaseMetadataParams) (MetabaseMetadatum, error)

func (*Queries) SetSyncCompletedMetabaseMetadata

func (q *Queries) SetSyncCompletedMetabaseMetadata(ctx context.Context, datasetID uuid.UUID) error

func (*Queries) SoftDeleteMetabaseMetadata

func (q *Queries) SoftDeleteMetabaseMetadata(ctx context.Context, datasetID uuid.UUID) error

func (*Queries) UpdateAccessRequest

func (q *Queries) UpdateAccessRequest(ctx context.Context, arg UpdateAccessRequestParams) (DatasetAccessRequest, error)

func (*Queries) UpdateBigqueryDatasource

func (q *Queries) UpdateBigqueryDatasource(ctx context.Context, arg UpdateBigqueryDatasourceParams) error

func (*Queries) UpdateBigqueryDatasourceMissing

func (q *Queries) UpdateBigqueryDatasourceMissing(ctx context.Context, datasetID uuid.UUID) error

func (*Queries) UpdateBigqueryDatasourceSchema

func (q *Queries) UpdateBigqueryDatasourceSchema(ctx context.Context, arg UpdateBigqueryDatasourceSchemaParams) error

func (*Queries) UpdateDataproduct

func (q *Queries) UpdateDataproduct(ctx context.Context, arg UpdateDataproductParams) (Dataproduct, error)

func (*Queries) UpdateDataset

func (q *Queries) UpdateDataset(ctx context.Context, arg UpdateDatasetParams) (Dataset, error)

func (*Queries) UpdateInsightProduct

func (q *Queries) UpdateInsightProduct(ctx context.Context, arg UpdateInsightProductParams) (InsightProduct, error)

func (*Queries) UpdateStory

func (q *Queries) UpdateStory(ctx context.Context, arg UpdateStoryParams) (Story, error)

func (*Queries) UpdateTag

func (q *Queries) UpdateTag(ctx context.Context, arg UpdateTagParams) error

func (*Queries) UpsertProductArea

func (q *Queries) UpsertProductArea(ctx context.Context, arg UpsertProductAreaParams) error

func (*Queries) UpsertTeam

func (q *Queries) UpsertTeam(ctx context.Context, arg UpsertTeamParams) error

func (*Queries) WithTx

func (q *Queries) WithTx(tx *sql.Tx) *Queries

type ReplaceDatasetsTagParams

type ReplaceDatasetsTagParams struct {
	TagToReplace interface{}
	TagUpdated   interface{}
}

type ReplaceKeywordInDatasetsParams

type ReplaceKeywordInDatasetsParams struct {
	Keyword           interface{}
	NewTextForKeyword interface{}
}

type ReplaceKeywordInStoriesParams

type ReplaceKeywordInStoriesParams struct {
	Keyword           interface{}
	NewTextForKeyword interface{}
}

type ReplaceStoriesTagParams

type ReplaceStoriesTagParams struct {
	TagToReplace interface{}
	TagUpdated   interface{}
}
type Search struct {
	ElementID    uuid.UUID
	ElementType  string
	Description  string
	Keywords     interface{}
	Group        string
	TeamID       uuid.NullUUID
	Created      time.Time
	LastModified time.Time
	TsvDocument  interface{}
	Services     string
}

type SearchParams

type SearchParams struct {
	Query   string
	Types   []string
	Keyword []string
	Grp     []string
	TeamID  []uuid.UUID
	Service []string
	Offs    int32
	Lim     int32
}

type SearchRow

type SearchRow struct {
	ElementID   uuid.UUID
	ElementType string
	Rank        float32
	Excerpt     string
}

type Session

type Session struct {
	Token       string
	AccessToken string
	Email       string
	Name        string
	Created     time.Time
	Expires     time.Time
}

type SetCollectionMetabaseMetadataParams

type SetCollectionMetabaseMetadataParams struct {
	CollectionID sql.NullInt32
	DatasetID    uuid.UUID
}

type SetDatabaseMetabaseMetadataParams

type SetDatabaseMetabaseMetadataParams struct {
	DatabaseID sql.NullInt32
	DatasetID  uuid.UUID
}

type SetPermissionGroupMetabaseMetadataParams

type SetPermissionGroupMetabaseMetadataParams struct {
	PermissionGroupID sql.NullInt32
	DatasetID         uuid.UUID
}

type SetServiceAccountMetabaseMetadataParams

type SetServiceAccountMetabaseMetadataParams struct {
	SaEmail   string
	DatasetID uuid.UUID
}

type Story

type Story struct {
	ID               uuid.UUID
	Name             string
	Creator          string
	Created          time.Time
	LastModified     time.Time
	Description      string
	Keywords         []string
	TeamkatalogenUrl sql.NullString
	TeamID           uuid.NullUUID
	Group            string
}

type StoryWithTeamkatalogenView

type StoryWithTeamkatalogenView struct {
	ID               uuid.UUID
	Name             string
	Creator          string
	Created          time.Time
	LastModified     time.Time
	Description      string
	Keywords         []string
	TeamkatalogenUrl sql.NullString
	TeamID           uuid.NullUUID
	Group            string
	TeamName         sql.NullString
	PaName           sql.NullString
}

type Tag

type Tag struct {
	ID     uuid.UUID
	Phrase string
}

type TeamProject

type TeamProject struct {
	Team    string
	Project string
}

type ThirdPartyMapping

type ThirdPartyMapping struct {
	Services  []string
	DatasetID uuid.UUID
}

type TkProductArea

type TkProductArea struct {
	ID       uuid.UUID
	Name     sql.NullString
	AreaType sql.NullString
}

type TkTeam

type TkTeam struct {
	ID            uuid.UUID
	ProductAreaID uuid.NullUUID
	Name          sql.NullString
}

type UpdateAccessRequestParams

type UpdateAccessRequestParams struct {
	Owner                string
	PollyDocumentationID uuid.NullUUID
	Expires              sql.NullTime
	ID                   uuid.UUID
}

type UpdateBigqueryDatasourceParams

type UpdateBigqueryDatasourceParams struct {
	PiiTags       pqtype.NullRawMessage
	PseudoColumns []string
	DatasetID     uuid.UUID
}

type UpdateBigqueryDatasourceSchemaParams

type UpdateBigqueryDatasourceSchemaParams struct {
	Schema        pqtype.NullRawMessage
	LastModified  time.Time
	Expires       sql.NullTime
	Description   sql.NullString
	PseudoColumns []string
	DatasetID     uuid.UUID
}

type UpdateDataproductParams

type UpdateDataproductParams struct {
	Name                  string
	Description           sql.NullString
	Slug                  string
	OwnerTeamkatalogenUrl sql.NullString
	TeamContact           sql.NullString
	TeamID                uuid.NullUUID
	ID                    uuid.UUID
}

type UpdateDatasetParams

type UpdateDatasetParams struct {
	Name                     string
	Description              sql.NullString
	Pii                      PiiLevel
	Slug                     string
	Repo                     sql.NullString
	Keywords                 []string
	DataproductID            uuid.UUID
	AnonymisationDescription sql.NullString
	TargetUser               sql.NullString
	ID                       uuid.UUID
}

type UpdateInsightProductParams

type UpdateInsightProductParams struct {
	Name             string
	Creator          string
	Description      sql.NullString
	Type             string
	Link             string
	Keywords         []string
	TeamkatalogenUrl sql.NullString
	TeamID           uuid.NullUUID
	ID               uuid.UUID
}

type UpdateStoryParams

type UpdateStoryParams struct {
	Name             string
	Description      string
	Keywords         []string
	TeamkatalogenUrl sql.NullString
	TeamID           uuid.NullUUID
	OwnerGroup       string
	ID               uuid.UUID
}

type UpdateTagParams

type UpdateTagParams struct {
	NewPhrase string
	OldPhrase string
}

type UpsertProductAreaParams

type UpsertProductAreaParams struct {
	ID   uuid.UUID
	Name sql.NullString
}

type UpsertTeamParams

type UpsertTeamParams struct {
	ID            uuid.UUID
	ProductAreaID uuid.NullUUID
	Name          sql.NullString
}

Jump to

Keyboard shortcuts

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