Documentation ¶
Overview ¶
Package ddl provides the Postgres data definition language (DDL) for Vela.
https://en.wikipedia.org/wiki/Data_definition_language
Usage:
import "github.com/go-vela/server/database/postgres/ddl"
Index ¶
Constants ¶
View Source
const ( // CreateBuildTable represents a query to // create the builds table for Vela. CreateBuildTable = `` /* 993-byte string literal not displayed */ // CreateBuildRepoIDIndex represents a query to create an // index on the builds table for the repo_id column. CreateBuildRepoIDIndex = ` CREATE INDEX IF NOT EXISTS builds_repo_id ON builds (repo_id); ` // CreateBuildStatusIndex represents a query to create an // index on the builds table for the status column. CreateBuildStatusIndex = ` CREATE INDEX IF NOT EXISTS builds_status ON builds (status); ` // CreateBuildCreatedIndex represents a query to create an // index on the builds table for the created column. CreateBuildCreatedIndex = ` CREATE INDEX CONCURRENTLY IF NOT EXISTS builds_created ON builds (created); ` // CreateBuildSourceIndex represents a query to create an // index on the builds table for the source column. CreateBuildSourceIndex = ` CREATE INDEX CONCURRENTLY IF NOT EXISTS builds_source ON builds (source); ` )
View Source
const ( // CreateSecretTable represents a query to // create the secrets table for Vela. CreateSecretTable = `` /* 496-byte string literal not displayed */ // CreateSecretTypeOrgRepo represents a query to create an // index on the secrets table for the type, org and repo columns. // //nolint:gosec // ignore false positive CreateSecretTypeOrgRepo = ` CREATE INDEX IF NOT EXISTS secrets_type_org_repo ON secrets (type, org, repo); ` // CreateSecretTypeOrgTeam represents a query to create an // index on the secrets table for the type, org and team columns. // //nolint:gosec // ignore false positive CreateSecretTypeOrgTeam = ` CREATE INDEX IF NOT EXISTS secrets_type_org_team ON secrets (type, org, team); ` // CreateSecretTypeOrg represents a query to create an // index on the secrets table for the type, and org columns. // //nolint:gosec // ignore false positive CreateSecretTypeOrg = ` CREATE INDEX IF NOT EXISTS secrets_type_org ON secrets (type, org); ` )
View Source
const ( // CreateServiceTable represents a query to // create the services table for Vela. CreateServiceTable = `` /* 474-byte string literal not displayed */ )
View Source
const ( // CreateStepTable represents a query to // create the steps table for Vela. CreateStepTable = `` /* 500-byte string literal not displayed */ )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.