Documentation ¶
Index ¶
- type AccessRequestStatusType
- type AddTeamProjectParams
- type ApproveAccessRequestParams
- type CreateAccessRequestForDatasetParams
- type CreateBigqueryDatasourceParams
- type CreateDataproductParams
- type CreateDatasetParams
- type CreateInsightProductParams
- type CreateJoinableViewsDatasourceParams
- type CreateJoinableViewsParams
- type CreatePollyDocumentationParams
- type CreateSessionParams
- type CreateStoryParams
- type CreateStoryWithIDParams
- type DBTX
- type Dashboard
- type Dataproduct
- type DataproductGroupStatsParams
- type DataproductGroupStatsRow
- type DataproductKeywordsRow
- type DataproductView
- type DataproductWithTeamkatalogenView
- type Dataset
- type DatasetAccess
- type DatasetAccessRequest
- type DatasetView
- type DatasetsByMetabaseParams
- type DatasourceBigquery
- type DatasourceType
- type DenyAccessRequestParams
- type GetAccessibleDatasetsByOwnedServiceAccountsParams
- type GetAccessibleDatasetsByOwnedServiceAccountsRow
- type GetAccessibleDatasetsParams
- type GetAccessibleDatasetsRow
- type GetAccessiblePseudoDatasetsByUserParams
- type GetAccessiblePseudoDatasetsByUserRow
- type GetActiveAccessToDatasetForSubjectParams
- type GetAllDatasetsMinimalRow
- type GetBigqueryDatasourceParams
- type GetDataproductWithDatasetsBasicRow
- type GetDataproductsParams
- type GetDataproductsWithDatasetsAndAccessRequestsParams
- type GetDataproductsWithDatasetsAndAccessRequestsRow
- type GetDataproductsWithDatasetsParams
- type GetDataproductsWithDatasetsRow
- type GetDatasetsByMappingParams
- type GetDatasetsParams
- type GetJoinableViewWithDatasetRow
- type GetJoinableViewsForOwnerRow
- type GetJoinableViewsForReferenceAndUserParams
- type GetJoinableViewsForReferenceAndUserRow
- type GetJoinableViewsToBeDeletedWithRefDatasourceRow
- type GetJoinableViewsWithReferenceRow
- type GetKeywordsRow
- type GetOpenMetabaseTablesInSameBigQueryDatasetParams
- type GrantAccessToDatasetParams
- type HttpCache
- type InsightProduct
- type InsightProductWithTeamkatalogenView
- type JoinableView
- type JoinableViewsDatasource
- type MapDatasetParams
- type MetabaseMetadatum
- type NadaToken
- type NullAccessRequestStatusType
- type NullDatasourceType
- type NullPiiLevel
- type PiiLevel
- type PollyDocumentation
- type Querier
- type Queries
- func (q *Queries) AddTeamProject(ctx context.Context, arg AddTeamProjectParams) (TeamProject, error)
- func (q *Queries) ApproveAccessRequest(ctx context.Context, arg ApproveAccessRequestParams) error
- func (q *Queries) ClearTeamProjectsCache(ctx context.Context) error
- func (q *Queries) CreateAccessRequestForDataset(ctx context.Context, arg CreateAccessRequestForDatasetParams) (DatasetAccessRequest, error)
- func (q *Queries) CreateBigqueryDatasource(ctx context.Context, arg CreateBigqueryDatasourceParams) (DatasourceBigquery, error)
- func (q *Queries) CreateDataproduct(ctx context.Context, arg CreateDataproductParams) (Dataproduct, error)
- func (q *Queries) CreateDataset(ctx context.Context, arg CreateDatasetParams) (Dataset, error)
- func (q *Queries) CreateInsightProduct(ctx context.Context, arg CreateInsightProductParams) (InsightProduct, error)
- func (q *Queries) CreateJoinableViews(ctx context.Context, arg CreateJoinableViewsParams) (JoinableView, error)
- func (q *Queries) CreateJoinableViewsDatasource(ctx context.Context, arg CreateJoinableViewsDatasourceParams) (JoinableViewsDatasource, error)
- func (q *Queries) CreateMetabaseMetadata(ctx context.Context, datasetID uuid.UUID) error
- func (q *Queries) CreatePollyDocumentation(ctx context.Context, arg CreatePollyDocumentationParams) (PollyDocumentation, error)
- func (q *Queries) CreateSession(ctx context.Context, arg CreateSessionParams) error
- func (q *Queries) CreateStory(ctx context.Context, arg CreateStoryParams) (Story, error)
- func (q *Queries) CreateStoryWithID(ctx context.Context, arg CreateStoryWithIDParams) (Story, error)
- func (q *Queries) CreateTagIfNotExist(ctx context.Context, phrase string) error
- func (q *Queries) DataproductGroupStats(ctx context.Context, arg DataproductGroupStatsParams) ([]DataproductGroupStatsRow, error)
- func (q *Queries) DataproductKeywords(ctx context.Context, keyword string) ([]DataproductKeywordsRow, error)
- func (q *Queries) DatasetsByMetabase(ctx context.Context, arg DatasetsByMetabaseParams) ([]Dataset, error)
- func (q *Queries) DeleteAccessRequest(ctx context.Context, id uuid.UUID) error
- func (q *Queries) DeleteDataproduct(ctx context.Context, id uuid.UUID) error
- func (q *Queries) DeleteDataset(ctx context.Context, id uuid.UUID) error
- func (q *Queries) DeleteInsightProduct(ctx context.Context, id uuid.UUID) error
- func (q *Queries) DeleteMetabaseMetadata(ctx context.Context, datasetID uuid.UUID) error
- func (q *Queries) DeleteNadaToken(ctx context.Context, team string) error
- func (q *Queries) DeleteSession(ctx context.Context, token string) error
- func (q *Queries) DeleteStory(ctx context.Context, id uuid.UUID) error
- func (q *Queries) DenyAccessRequest(ctx context.Context, arg DenyAccessRequestParams) error
- func (q *Queries) GetAccessRequest(ctx context.Context, id uuid.UUID) (DatasetAccessRequest, error)
- func (q *Queries) GetAccessToDataset(ctx context.Context, id uuid.UUID) (DatasetAccess, error)
- func (q *Queries) GetAccessibleDatasets(ctx context.Context, arg GetAccessibleDatasetsParams) ([]GetAccessibleDatasetsRow, error)
- func (q *Queries) GetAccessibleDatasetsByOwnedServiceAccounts(ctx context.Context, arg GetAccessibleDatasetsByOwnedServiceAccountsParams) ([]GetAccessibleDatasetsByOwnedServiceAccountsRow, error)
- func (q *Queries) GetAccessiblePseudoDatasetsByUser(ctx context.Context, arg GetAccessiblePseudoDatasetsByUserParams) ([]GetAccessiblePseudoDatasetsByUserRow, error)
- func (q *Queries) GetActiveAccessToDatasetForSubject(ctx context.Context, arg GetActiveAccessToDatasetForSubjectParams) (DatasetAccess, error)
- func (q *Queries) GetAddMetabaseDatasetMappings(ctx context.Context) ([]uuid.UUID, error)
- func (q *Queries) GetAllDatasetsMinimal(ctx context.Context) ([]GetAllDatasetsMinimalRow, error)
- func (q *Queries) GetAllMetabaseMetadata(ctx context.Context) ([]MetabaseMetadatum, error)
- func (q *Queries) GetAllTeams(ctx context.Context) ([]TkTeam, error)
- func (q *Queries) GetBigqueryDatasource(ctx context.Context, arg GetBigqueryDatasourceParams) (DatasourceBigquery, error)
- func (q *Queries) GetBigqueryDatasources(ctx context.Context) ([]DatasourceBigquery, error)
- func (q *Queries) GetDashboard(ctx context.Context, id uuid.UUID) (Dashboard, error)
- func (q *Queries) GetDataproduct(ctx context.Context, id uuid.UUID) (Dataproduct, error)
- func (q *Queries) GetDataproductKeywords(ctx context.Context, dpid uuid.UUID) ([]string, error)
- func (q *Queries) GetDataproductWithDatasetsBasic(ctx context.Context, id uuid.UUID) ([]GetDataproductWithDatasetsBasicRow, error)
- func (q *Queries) GetDataproducts(ctx context.Context, arg GetDataproductsParams) ([]Dataproduct, error)
- func (q *Queries) GetDataproductsByGroups(ctx context.Context, groups []string) ([]Dataproduct, error)
- func (q *Queries) GetDataproductsByIDs(ctx context.Context, ids []uuid.UUID) ([]Dataproduct, error)
- func (q *Queries) GetDataproductsByProductArea(ctx context.Context, teamID []uuid.UUID) ([]DataproductWithTeamkatalogenView, error)
- func (q *Queries) GetDataproductsByTeam(ctx context.Context, teamID uuid.NullUUID) ([]Dataproduct, error)
- func (q *Queries) GetDataproductsNumberByTeam(ctx context.Context, teamID uuid.NullUUID) (int64, error)
- func (q *Queries) GetDataproductsWithDatasets(ctx context.Context, arg GetDataproductsWithDatasetsParams) ([]GetDataproductsWithDatasetsRow, error)
- func (q *Queries) GetDataproductsWithDatasetsAndAccessRequests(ctx context.Context, arg GetDataproductsWithDatasetsAndAccessRequestsParams) ([]GetDataproductsWithDatasetsAndAccessRequestsRow, error)
- func (q *Queries) GetDataset(ctx context.Context, id uuid.UUID) (Dataset, error)
- func (q *Queries) GetDatasetComplete(ctx context.Context, id uuid.UUID) ([]DatasetView, error)
- func (q *Queries) GetDatasetMappings(ctx context.Context, datasetID uuid.UUID) (ThirdPartyMapping, error)
- func (q *Queries) GetDatasets(ctx context.Context, arg GetDatasetsParams) ([]Dataset, error)
- func (q *Queries) GetDatasetsByGroups(ctx context.Context, groups []string) ([]Dataset, error)
- func (q *Queries) GetDatasetsByIDs(ctx context.Context, ids []uuid.UUID) ([]Dataset, error)
- func (q *Queries) GetDatasetsByMapping(ctx context.Context, arg GetDatasetsByMappingParams) ([]Dataset, error)
- func (q *Queries) GetDatasetsByUserAccess(ctx context.Context, id string) ([]Dataset, error)
- func (q *Queries) GetDatasetsForOwner(ctx context.Context, groups []string) ([]Dataset, error)
- func (q *Queries) GetDatasetsInDataproduct(ctx context.Context, dataproductID uuid.UUID) ([]Dataset, error)
- func (q *Queries) GetInsightProduct(ctx context.Context, id uuid.UUID) (InsightProduct, error)
- func (q *Queries) GetInsightProductByGroups_(ctx context.Context, groups []string) ([]InsightProduct, error)
- func (q *Queries) GetInsightProductWithTeamkatalogen(ctx context.Context, id uuid.UUID) (InsightProductWithTeamkatalogenView, error)
- func (q *Queries) GetInsightProducts(ctx context.Context) ([]InsightProduct, error)
- func (q *Queries) GetInsightProductsByGroups(ctx context.Context, groups []string) ([]InsightProductWithTeamkatalogenView, error)
- func (q *Queries) GetInsightProductsByIDs(ctx context.Context, id []uuid.UUID) ([]InsightProduct, error)
- func (q *Queries) GetInsightProductsByProductArea(ctx context.Context, teamID []uuid.UUID) ([]InsightProductWithTeamkatalogenView, error)
- func (q *Queries) GetInsightProductsByTeam(ctx context.Context, teamID uuid.NullUUID) ([]InsightProduct, error)
- func (q *Queries) GetInsightProductsNumberByTeam(ctx context.Context, teamID uuid.NullUUID) (int64, error)
- func (q *Queries) GetJoinableViewWithDataset(ctx context.Context, id uuid.UUID) ([]GetJoinableViewWithDatasetRow, error)
- func (q *Queries) GetJoinableViewsForOwner(ctx context.Context, owner string) ([]GetJoinableViewsForOwnerRow, error)
- func (q *Queries) GetJoinableViewsForReferenceAndUser(ctx context.Context, arg GetJoinableViewsForReferenceAndUserParams) ([]GetJoinableViewsForReferenceAndUserRow, error)
- func (q *Queries) GetJoinableViewsToBeDeletedWithRefDatasource(ctx context.Context) ([]GetJoinableViewsToBeDeletedWithRefDatasourceRow, error)
- func (q *Queries) GetJoinableViewsWithReference(ctx context.Context) ([]GetJoinableViewsWithReferenceRow, error)
- func (q *Queries) GetKeywords(ctx context.Context) ([]GetKeywordsRow, error)
- func (q *Queries) GetMetabaseMetadata(ctx context.Context, datasetID uuid.UUID) (MetabaseMetadatum, error)
- func (q *Queries) GetMetabaseMetadataWithDeleted(ctx context.Context, datasetID uuid.UUID) (MetabaseMetadatum, error)
- func (q *Queries) GetNadaToken(ctx context.Context, team string) (uuid.UUID, error)
- func (q *Queries) GetNadaTokens(ctx context.Context) ([]NadaToken, error)
- func (q *Queries) GetNadaTokensForTeams(ctx context.Context, teams []string) ([]NadaToken, error)
- func (q *Queries) GetOpenMetabaseTablesInSameBigQueryDataset(ctx context.Context, arg GetOpenMetabaseTablesInSameBigQueryDatasetParams) ([]string, error)
- func (q *Queries) GetOwnerGroupOfDataset(ctx context.Context, datasetID uuid.UUID) (string, error)
- func (q *Queries) GetPollyDocumentation(ctx context.Context, id uuid.UUID) (PollyDocumentation, error)
- func (q *Queries) GetProductArea(ctx context.Context, id uuid.UUID) (TkProductArea, error)
- func (q *Queries) GetProductAreas(ctx context.Context) ([]TkProductArea, error)
- func (q *Queries) GetPseudoDatasourcesToDelete(ctx context.Context) ([]DatasourceBigquery, error)
- func (q *Queries) GetRemoveMetabaseDatasetMappings(ctx context.Context) ([]uuid.UUID, error)
- func (q *Queries) GetSession(ctx context.Context, token string) (Session, error)
- func (q *Queries) GetStories(ctx context.Context) ([]Story, error)
- func (q *Queries) GetStoriesByGroups(ctx context.Context, groups []string) ([]Story, error)
- func (q *Queries) GetStoriesByIDs(ctx context.Context, ids []uuid.UUID) ([]Story, error)
- func (q *Queries) GetStoriesByProductArea(ctx context.Context, teamID []uuid.UUID) ([]StoryWithTeamkatalogenView, error)
- func (q *Queries) GetStoriesByTeam(ctx context.Context, teamID uuid.NullUUID) ([]Story, error)
- func (q *Queries) GetStoriesNumberByTeam(ctx context.Context, teamID uuid.NullUUID) (int64, error)
- func (q *Queries) GetStoriesWithTeamkatalogenByGroups(ctx context.Context, groups []string) ([]StoryWithTeamkatalogenView, error)
- func (q *Queries) GetStoriesWithTeamkatalogenByIDs(ctx context.Context, ids []uuid.UUID) ([]StoryWithTeamkatalogenView, error)
- func (q *Queries) GetStory(ctx context.Context, id uuid.UUID) (Story, error)
- func (q *Queries) GetTag(ctx context.Context) (Tag, error)
- func (q *Queries) GetTagByPhrase(ctx context.Context) (Tag, error)
- func (q *Queries) GetTags(ctx context.Context) ([]Tag, error)
- func (q *Queries) GetTeamFromNadaToken(ctx context.Context, token uuid.UUID) (string, error)
- func (q *Queries) GetTeamProjects(ctx context.Context) ([]TeamProject, error)
- func (q *Queries) GetTeamsInProductArea(ctx context.Context, productAreaID uuid.NullUUID) ([]TkTeam, error)
- func (q *Queries) GrantAccessToDataset(ctx context.Context, arg GrantAccessToDatasetParams) (DatasetAccess, error)
- func (q *Queries) ListAccessRequestsForDataset(ctx context.Context, datasetID uuid.UUID) ([]DatasetAccessRequest, error)
- func (q *Queries) ListAccessRequestsForOwner(ctx context.Context, owner []string) ([]DatasetAccessRequest, error)
- func (q *Queries) ListAccessToDataset(ctx context.Context, datasetID uuid.UUID) ([]DatasetAccess, error)
- func (q *Queries) ListActiveAccessToDataset(ctx context.Context, datasetID uuid.UUID) ([]DatasetAccess, error)
- func (q *Queries) ListUnrevokedExpiredAccessEntries(ctx context.Context) ([]DatasetAccess, error)
- func (q *Queries) MapDataset(ctx context.Context, arg MapDatasetParams) error
- func (q *Queries) RemoveKeywordInDatasets(ctx context.Context, keywordToRemove interface{}) error
- func (q *Queries) RemoveKeywordInStories(ctx context.Context, keywordToRemove interface{}) error
- func (q *Queries) ReplaceDatasetsTag(ctx context.Context, arg ReplaceDatasetsTagParams) error
- func (q *Queries) ReplaceKeywordInDatasets(ctx context.Context, arg ReplaceKeywordInDatasetsParams) error
- func (q *Queries) ReplaceKeywordInStories(ctx context.Context, arg ReplaceKeywordInStoriesParams) error
- func (q *Queries) ReplaceStoriesTag(ctx context.Context, arg ReplaceStoriesTagParams) error
- func (q *Queries) RestoreMetabaseMetadata(ctx context.Context, datasetID uuid.UUID) error
- func (q *Queries) RevokeAccessToDataset(ctx context.Context, id uuid.UUID) error
- func (q *Queries) RotateNadaToken(ctx context.Context, team string) error
- func (q *Queries) Search(ctx context.Context, arg SearchParams) ([]SearchRow, error)
- func (q *Queries) SetCollectionMetabaseMetadata(ctx context.Context, arg SetCollectionMetabaseMetadataParams) (MetabaseMetadatum, error)
- func (q *Queries) SetDatabaseMetabaseMetadata(ctx context.Context, arg SetDatabaseMetabaseMetadataParams) (MetabaseMetadatum, error)
- func (q *Queries) SetDatasourceDeleted(ctx context.Context, id uuid.UUID) error
- func (q *Queries) SetJoinableViewDeleted(ctx context.Context, id uuid.UUID) error
- func (q *Queries) SetPermissionGroupMetabaseMetadata(ctx context.Context, arg SetPermissionGroupMetabaseMetadataParams) (MetabaseMetadatum, error)
- func (q *Queries) SetServiceAccountMetabaseMetadata(ctx context.Context, arg SetServiceAccountMetabaseMetadataParams) (MetabaseMetadatum, error)
- func (q *Queries) SetSyncCompletedMetabaseMetadata(ctx context.Context, datasetID uuid.UUID) error
- func (q *Queries) SoftDeleteMetabaseMetadata(ctx context.Context, datasetID uuid.UUID) error
- func (q *Queries) UpdateAccessRequest(ctx context.Context, arg UpdateAccessRequestParams) (DatasetAccessRequest, error)
- func (q *Queries) UpdateBigqueryDatasource(ctx context.Context, arg UpdateBigqueryDatasourceParams) error
- func (q *Queries) UpdateBigqueryDatasourceMissing(ctx context.Context, datasetID uuid.UUID) error
- func (q *Queries) UpdateBigqueryDatasourceSchema(ctx context.Context, arg UpdateBigqueryDatasourceSchemaParams) error
- func (q *Queries) UpdateDataproduct(ctx context.Context, arg UpdateDataproductParams) (Dataproduct, error)
- func (q *Queries) UpdateDataset(ctx context.Context, arg UpdateDatasetParams) (Dataset, error)
- func (q *Queries) UpdateInsightProduct(ctx context.Context, arg UpdateInsightProductParams) (InsightProduct, error)
- func (q *Queries) UpdateStory(ctx context.Context, arg UpdateStoryParams) (Story, error)
- func (q *Queries) UpdateTag(ctx context.Context, arg UpdateTagParams) error
- func (q *Queries) UpsertProductArea(ctx context.Context, arg UpsertProductAreaParams) error
- func (q *Queries) UpsertTeam(ctx context.Context, arg UpsertTeamParams) error
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type ReplaceDatasetsTagParams
- type ReplaceKeywordInDatasetsParams
- type ReplaceKeywordInStoriesParams
- type ReplaceStoriesTagParams
- type Search
- type SearchParams
- type SearchRow
- type Session
- type SetCollectionMetabaseMetadataParams
- type SetDatabaseMetabaseMetadataParams
- type SetPermissionGroupMetabaseMetadataParams
- type SetServiceAccountMetabaseMetadataParams
- type Story
- type StoryWithTeamkatalogenView
- type Tag
- type TeamProject
- type ThirdPartyMapping
- type TkProductArea
- type TkTeam
- type UpdateAccessRequestParams
- type UpdateBigqueryDatasourceParams
- type UpdateBigqueryDatasourceSchemaParams
- type UpdateDataproductParams
- type UpdateDatasetParams
- type UpdateInsightProductParams
- type UpdateStoryParams
- type UpdateTagParams
- type UpsertProductAreaParams
- type UpsertTeamParams
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 ApproveAccessRequestParams ¶
type ApproveAccessRequestParams struct { Granter sql.NullString ID uuid.UUID }
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 CreateSessionParams ¶
type CreateStoryParams ¶
type CreateStoryWithIDParams ¶
type Dataproduct ¶
type DataproductKeywordsRow ¶
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 DatasetAccessRequest ¶
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 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 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 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 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 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 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 GetDatasetsParams ¶
type GetKeywordsRow ¶
type InsightProduct ¶
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 JoinableViewsDatasource ¶
type MapDatasetParams ¶
type MetabaseMetadatum ¶
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.
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.
type NullPiiLevel ¶
func (*NullPiiLevel) Scan ¶
func (ns *NullPiiLevel) Scan(value interface{}) error
Scan implements the Scanner interface.
type PollyDocumentation ¶
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 (*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 (*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 (*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 (*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 (*Queries) CreateStoryWithID ¶
func (*Queries) CreateTagIfNotExist ¶
func (*Queries) DataproductGroupStats ¶
func (q *Queries) DataproductGroupStats(ctx context.Context, arg DataproductGroupStatsParams) ([]DataproductGroupStatsRow, error)
func (*Queries) DataproductKeywords ¶
func (*Queries) DatasetsByMetabase ¶
func (*Queries) DeleteAccessRequest ¶
func (*Queries) DeleteDataproduct ¶
func (*Queries) DeleteDataset ¶
func (*Queries) DeleteInsightProduct ¶
func (*Queries) DeleteMetabaseMetadata ¶
func (*Queries) DeleteNadaToken ¶
func (*Queries) DeleteSession ¶
func (*Queries) DeleteStory ¶
func (*Queries) DenyAccessRequest ¶
func (q *Queries) DenyAccessRequest(ctx context.Context, arg DenyAccessRequestParams) error
func (*Queries) GetAccessRequest ¶
func (*Queries) GetAccessToDataset ¶
func (*Queries) GetAccessibleDatasets ¶
func (q *Queries) GetAccessibleDatasets(ctx context.Context, arg GetAccessibleDatasetsParams) ([]GetAccessibleDatasetsRow, error)
func (*Queries) GetAccessibleDatasetsByOwnedServiceAccounts ¶
func (q *Queries) GetAccessibleDatasetsByOwnedServiceAccounts(ctx context.Context, arg GetAccessibleDatasetsByOwnedServiceAccountsParams) ([]GetAccessibleDatasetsByOwnedServiceAccountsRow, error)
func (*Queries) GetAccessiblePseudoDatasetsByUser ¶
func (q *Queries) GetAccessiblePseudoDatasetsByUser(ctx context.Context, arg GetAccessiblePseudoDatasetsByUserParams) ([]GetAccessiblePseudoDatasetsByUserRow, error)
func (*Queries) GetActiveAccessToDatasetForSubject ¶
func (q *Queries) GetActiveAccessToDatasetForSubject(ctx context.Context, arg GetActiveAccessToDatasetForSubjectParams) (DatasetAccess, error)
func (*Queries) GetAddMetabaseDatasetMappings ¶
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) 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 (*Queries) GetDataproduct ¶
func (*Queries) GetDataproductKeywords ¶
func (*Queries) GetDataproductWithDatasetsBasic ¶
func (*Queries) GetDataproducts ¶
func (q *Queries) GetDataproducts(ctx context.Context, arg GetDataproductsParams) ([]Dataproduct, error)
func (*Queries) GetDataproductsByGroups ¶
func (*Queries) GetDataproductsByIDs ¶
func (*Queries) GetDataproductsByProductArea ¶
func (*Queries) GetDataproductsByTeam ¶
func (*Queries) GetDataproductsNumberByTeam ¶
func (*Queries) GetDataproductsWithDatasets ¶
func (q *Queries) GetDataproductsWithDatasets(ctx context.Context, arg GetDataproductsWithDatasetsParams) ([]GetDataproductsWithDatasetsRow, error)
func (*Queries) GetDataproductsWithDatasetsAndAccessRequests ¶
func (q *Queries) GetDataproductsWithDatasetsAndAccessRequests(ctx context.Context, arg GetDataproductsWithDatasetsAndAccessRequestsParams) ([]GetDataproductsWithDatasetsAndAccessRequestsRow, error)
func (*Queries) GetDataset ¶
func (*Queries) GetDatasetComplete ¶
func (*Queries) GetDatasetMappings ¶
func (*Queries) GetDatasets ¶
func (*Queries) GetDatasetsByGroups ¶
func (*Queries) GetDatasetsByIDs ¶
func (*Queries) GetDatasetsByMapping ¶
func (*Queries) GetDatasetsByUserAccess ¶
func (*Queries) GetDatasetsForOwner ¶
func (*Queries) GetDatasetsInDataproduct ¶
func (*Queries) GetInsightProduct ¶
func (*Queries) GetInsightProductByGroups_ ¶
func (*Queries) GetInsightProductWithTeamkatalogen ¶
func (*Queries) GetInsightProducts ¶
func (q *Queries) GetInsightProducts(ctx context.Context) ([]InsightProduct, error)
func (*Queries) GetInsightProductsByGroups ¶
func (*Queries) GetInsightProductsByIDs ¶
func (*Queries) GetInsightProductsByProductArea ¶
func (*Queries) GetInsightProductsByTeam ¶
func (*Queries) GetInsightProductsNumberByTeam ¶
func (*Queries) GetJoinableViewWithDataset ¶
func (*Queries) GetJoinableViewsForOwner ¶
func (*Queries) GetJoinableViewsForReferenceAndUser ¶
func (q *Queries) GetJoinableViewsForReferenceAndUser(ctx context.Context, arg GetJoinableViewsForReferenceAndUserParams) ([]GetJoinableViewsForReferenceAndUserRow, 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 (*Queries) GetMetabaseMetadataWithDeleted ¶
func (*Queries) GetNadaToken ¶
func (*Queries) GetNadaTokens ¶
func (*Queries) GetNadaTokensForTeams ¶
func (*Queries) GetOpenMetabaseTablesInSameBigQueryDataset ¶
func (*Queries) GetOwnerGroupOfDataset ¶
func (*Queries) GetPollyDocumentation ¶
func (*Queries) GetProductArea ¶
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 (*Queries) GetSession ¶
func (*Queries) GetStoriesByGroups ¶
func (*Queries) GetStoriesByIDs ¶
func (*Queries) GetStoriesByProductArea ¶
func (*Queries) GetStoriesByTeam ¶
func (*Queries) GetStoriesNumberByTeam ¶
func (*Queries) GetStoriesWithTeamkatalogenByGroups ¶
func (*Queries) GetStoriesWithTeamkatalogenByIDs ¶
func (*Queries) GetTeamFromNadaToken ¶
func (*Queries) GetTeamProjects ¶
func (q *Queries) GetTeamProjects(ctx context.Context) ([]TeamProject, error)
func (*Queries) GetTeamsInProductArea ¶
func (*Queries) GrantAccessToDataset ¶
func (q *Queries) GrantAccessToDataset(ctx context.Context, arg GrantAccessToDatasetParams) (DatasetAccess, error)
func (*Queries) ListAccessRequestsForDataset ¶
func (*Queries) ListAccessRequestsForOwner ¶
func (*Queries) ListAccessToDataset ¶
func (*Queries) ListActiveAccessToDataset ¶
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 (*Queries) RemoveKeywordInStories ¶
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 (*Queries) RevokeAccessToDataset ¶
func (*Queries) RotateNadaToken ¶
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 (*Queries) SetJoinableViewDeleted ¶
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 (*Queries) SoftDeleteMetabaseMetadata ¶
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 (*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 (*Queries) UpdateInsightProduct ¶
func (q *Queries) UpdateInsightProduct(ctx context.Context, arg UpdateInsightProductParams) (InsightProduct, error)
func (*Queries) UpdateStory ¶
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
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 SearchParams ¶
type TeamProject ¶
type ThirdPartyMapping ¶
type TkProductArea ¶
type TkProductArea struct { ID uuid.UUID Name sql.NullString AreaType sql.NullString }
type UpdateBigqueryDatasourceParams ¶
type UpdateBigqueryDatasourceParams struct { PiiTags pqtype.NullRawMessage 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 UpdateStoryParams ¶
type UpdateTagParams ¶
type UpsertProductAreaParams ¶
type UpsertProductAreaParams struct { ID uuid.UUID Name sql.NullString }
type UpsertTeamParams ¶
Source Files ¶
- dashboards.sql.go
- dataproducts.sql.go
- dataproducts_v2.sql.go
- dataset_access.sql.go
- dataset_access_requests.sql.go
- datasets.sql.go
- datasets_v2.sql.go
- db.go
- insight_products.sql.go
- insight_products_v2.sql.go
- joinable_views.sql.go
- metabase_metadata.sql.go
- models.go
- polly.sql.go
- querier.go
- search.sql.go
- sessions.sql.go
- stories_v2.sql.go
- story.sql.go
- tags.sql.go
- team.sql.go
- team_projects_cache.sql.go
- teamkatalogen.sql.go
- third_party_mappings.sql.go
Click to show internal directories.
Click to hide internal directories.