ddl

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

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 (
	// CreateServiceTable represents a query to
	// create the services table for Vela.
	CreateServiceTable = `` /* 474-byte string literal not displayed */

)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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