ddl

package
v0.3.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package ddl provides the data definition language (DDL) for Vela.

Due to the slight differences between Database types, this package contains different DDL for each supported database type.

https://en.wikipedia.org/wiki/Data_definition_language

Usage:

import "github.com/go-vela/server/database/ddl"

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Map

type Map struct {
	BuildService   *Service
	HookService    *Service
	LogService     *Service
	RepoService    *Service
	SecretService  *Service
	ServiceService *Service
	StepService    *Service
	UserService    *Service
}

Map represents the common DDL services in a struct for lookups.

func NewMap

func NewMap(name string) (*Map, error)

NewMap returns the Map for DDL lookups.

type Service

type Service struct {
	Create  string
	Indexes []string
}

Service represents the common DDL for a table in the database.

Directories

Path Synopsis
Package postgres provides the Postgres data definition language (DDL) for Vela.
Package postgres provides the Postgres data definition language (DDL) for Vela.
Package sqlite provides the Sqlite data definition language (DDL) for Vela.
Package sqlite provides the Sqlite data definition language (DDL) for Vela.

Jump to

Keyboard shortcuts

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