dml

package
v0.7.1 Latest Latest
Warning

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

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

Documentation

Overview

Package dml provides the data manipulation language (DML) for Vela.

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

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

Usage:

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

nolint: dupl // ignore similar code

nolint: dupl // ignore similar code

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
	WorkerService  *Service
}

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

func NewMap

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

NewMap returns the Map for DML lookups.

type Service

type Service struct {
	List   map[string]string
	Select map[string]string
	Delete string
}

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

Directories

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

Jump to

Keyboard shortcuts

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