package
0.0.0-20250302012944-701c1ceec546
Repository: https://github.com/khulnasoft/devsecdb.git
Documentation: pkg.go.dev
# README
Devsecdb storage package
For schema update, please follow Devsecdb Schema Update Guide
# Packages
No description provided by the author
# Functions
GetConnectionConfig gets connection config from pgURL.
GetEmbeddedConnectionConfig gets the embedded connection config.
IgnoreDatabaseAndTableCaseSensitive returns true if the engine ignores database and table case sensitive.
New creates a new instance of Store.
NewDB returns a new instance of DB associated with the given datasource name.
# Constants
Archived is the status for an archived row.
ASC is the sort order to return in ascending order.
The methods other than v1 api.
DESC is the sort order to return in descending order.
ExistsOperatorType is the operator type for Exists.
InOperatorType is the operator type for In.
Normal is the status for a normal row.
NotInOperatorType is the operator type for Not In.
PlanCheckDatabaseConnect is the plan check type for database connection.
PlanCheckDatabaseGhostSync is the plan check type for the gh-ost sync task.
PlanCheckDatabaseStatementAdvise is the plan check type for schema system review policy.
PlanCheckDatabaseStatementCompatibility is the plan check type for statement compatibility.
PlanCheckDatabaseStatementFakeAdvise is the plan check type for fake advise.
PlanCheckDatabaseStatementSummaryReport is the plan check type for statement summary report.
PlanCheckRunStatusCanceled is the plan check status for CANCELED.
PlanCheckRunStatusDone is the plan check status for DONE.
PlanCheckRunStatusFailed is the plan check status for FAILED.
PlanCheckRunStatusRunning is the plan check status for RUNNING.
PrivateWorkSheet is the sheet visibility for PRIVATE.
ProjectReadWorkSheet is the sheet visibility for PROJECT.
ProjectWriteWorkSheet is the sheet visibility for PROJECT.
QueryHistoryTypeExport is the type for export.
QueryHistoryTypeQuery is the type for query.
RiskRequestExport is for requesting export grant.
RiskRequestQuery is for requesting query grant.
RiskSourceDatabaseCreate is for creating databases.
RiskSourceDatabaseDataExport is for database data export.
RiskSourceDatabaseDataUpdate is for DML.
RiskSourceDatabaseSchemaUpdate is for DDL.
RiskSourceUnknown is for unknown source.
# Structs
AnomalyMessage is the message of the anomaly.
ArchiveAnomalyMessage is the message to archive an anomaly.
No description provided by the author
No description provided by the author
No description provided by the author
BranchMessage is the message for a branch.
ChangelistMessage is the message for a changelist.
No description provided by the author
CountInstanceMessage is the message for counting instances.
DatabaseGroupMessage is the message for database groups.
DatabaseMessage is the message for database.
DataSourceMessage is the message for data source.
DB represents the metdata database connection.
Deployment is the message for deployment.
DeploymentConfigMessage is the message for deployment config.
DeploymentSpec is the message for deployment specification.
EnvironmentMessage is the mssage for environment.
No description provided by the author
ExternalApprovalMessage is the message for creating an external approval.
FindBranchMessage is the API message for finding branches.
FindChangelistMessage is the API message for finding changelists.
No description provided by the author
FindDatabaseGroupMessage is the message for finding database group.
FindDatabaseMessage is the message for finding databases.
FindDataSourceMessage is the message for finding a database.
FindEnvironmentMessage is the message to find environments.
FindExportArchiveMessage is the API message for finding export archives.
FindGroupMessage is the message for finding groups.
FindIdentityProviderMessage is the message for finding identity providers.
FindInstanceChangeHistoryMessage is for listing a list of instance change history.
FindInstanceMessage is the message for finding instances.
No description provided by the author
FindIssueMessage is the message to find issues.
FindPlanCheckRunMessage is the message for finding plan check runs.
FindPlanMessage is the message to find a plan.
FindPolicyMessage is the message for finding policies.
FindProjectMessage is the message for finding projects.
FindProjectWebhookMessage is the message for finding project webhooks, if all fields are nil, it will list all project webhooks.
FindQueryHistoryMessage is the API message for finding query histories.
No description provided by the author
FindReviewConfigMessage is the API message for finding sql review.
No description provided by the author
FindSettingMessage is the message for finding setting.
FindSheetMessage is the API message for finding sheets.
FindTaskRunMessage is the message for finding task runs.
FindUserMessage is the message for finding users.
FindVCSConnectorMessage is the API message for finding VCS connectors.
No description provided by the author
FindWorkSheetMessage is the API message for finding sheets.
GroupMessage is the message for a group.
No description provided by the author
IdentityProviderMessage is the message for identity provider.
InstanceChangeHistoryMessage records the change history of an instance.
InstanceMessage is the message for instance.
No description provided by the author
IssueMessage is the mssage for issues.
LabelSelector is the message for label selector.
LabelSelectorRequirement is the message for label selector.
ListAnomalyMessage is the message to list anomalies.
ListExternalApprovalMessage is the message for listing external approvals.
ListSlowQueryMessage is the message to list slow query logs.
No description provided by the author
No description provided by the author
PatchReviewConfigMessage is the message to patch a sql review.
PatchSheetMessage is the message to patch a sheet.
PatchWorkSheetMessage is the message to patch a sheet.
PipelineFind is the API message for finding pipelines.
PipelineMessage is the message for pipelines.
PlanCheckRunMessage is the message for a plan check run.
PlanMessage is the message for plan.
PolicyMessage is the mssage for policy.
ProjectMessage is the message for project.
ProjectWebhookMessage is the store model for an project webhook.
QueryHistoryMessage is the API message for query history.
No description provided by the author
ReviewConfigMessage is the API message for sql review.
No description provided by the author
RiskMessage is the message for risks.
RoleMessage is the message for roles.
Schedule is the message for deployment schedule.
SetSettingMessage is the message for updating setting.
SettingMessage is the message of setting.
SheetMessage is the message for a sheet.
StageMessage is the message for stage.
Store provides database access to all raw objects.
No description provided by the author
TaskDAGFind is the API message to find TaskDAG.
TaskDAGMessage is the message for task dags.
TaskIndexDAG describes task dependency relationship using array index to represent task.
TaskMessage is the message for tasks.
TaskRunFind is the API message for finding task runs.
No description provided by the author
TaskRunMessage is message for task run.
TaskRunStatusPatch is the API message for patching a task run.
Tx wraps the SQL Tx object to provide a timestamp at the start of the transaction.
UpdateBranchMessage is the message to update a branch.
UpdateChangelistMessage is the message to update a changelist.
No description provided by the author
UpdateDatabaseGroupMessage is the message for updating database group.
UpdateDatabaseMessage is the mssage for updating a database.
UpdateDataSourceMessage is the message for the data source.
UpdateDBSchemaMessage is the message for updating db schema.
UpdateEnvironmentMessage is the message for updating an environment.
UpdateExternalApprovalMessage is the message for updating an external approval.
UpdateGroupMessage is the message to update a group.
UpdateIdentityProviderMessage is the message for updating an identity provider.
UpdateInstanceChangeHistoryMessage is for updating an instance change history.
UpdateInstanceMessage is the message for updating an instance.
No description provided by the author
UpdateIssueMessage is the message for updating an issue.
UpdatePlanMessage is the message to update a plan.
UpdatePolicyMessage is the message for updating a policy.
UpdateProjectMessage is the message for updating a project.
UpdateProjectWebhookMessage is the message for updating project webhooks.
No description provided by the author
UpdateRiskMessage is the message for updating a risk.
UpdateRoleMessage is the message for updating roles.
UpdateUserMessage is the message to update a user.
UpdateVCSConnectorMessage is the message to update a VCS connector.
UpdateVCSProviderMessage is a message for updating an VCS provider.
UpsertSlowLogMessage is the message to upsert slow query logs.
UserMessage is the message for an user.
VCSConnectorMessage is the message for a VCS connector.
VCSProviderMessage is a message for VCS provider.
WorkSheetMessage is the message for a sheet.
WorksheetOrganizerMessage is the store message for worksheet organizer.
# Interfaces
No description provided by the author
# Type aliases
No description provided by the author
OperatorType is the type of label selector requirement operator.
PlanCheckRunStatus is the status of a plan check run.
PlanCheckRunType is the type of a plan check run.
No description provided by the author
RiskSource is the source of the risk.
RowStatus is the status for a row.
SortOrder is the sort order for the returned list.
WorkSheetVisibility is the visibility of a sheet.