db

package
v0.0.0-...-e29e17f Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2020 License: Apache-2.0, Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const Indexes = `` /* 511-byte string literal not displayed */

Indexes represents possible indexes to run on tables

View Source
const Schema = `` /* 1966-byte string literal not displayed */

Schema represents the database schema

Variables

View Source
var Seed = []string{
	fmt.Sprintf(`
		INSERT INTO document_type(document_type_id, name)
		VALUES('%v','%v') ON CONFLICT DO NOTHING

	`, document.TypeMarkdown, "Markdown"),
	fmt.Sprintf(`
		INSERT INTO document_type(document_type_id, name)
		VALUES('%v','%v') ON CONFLICT DO NOTHING
	`, document.TypePDF, "PDF"),
	fmt.Sprintf(`
		INSERT INTO document_type(document_type_id, name)
		VALUES('%v','%v') ON CONFLICT DO NOTHING
	`, document.TypeUnsupported, "Unsupported"),
}

Seed represents data that should exist in the database and ignores values that already exist

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