db

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ResourceConfigInput = &ast.Definition{
		Kind: ast.InputObject,
		Name: "XgenResourceDbConfigInput",
		Fields: ast.FieldList{
			{
				Name: "Table",
				Type: ast.NamedType("String", nil),
			},
		},
	}
	ResourceFieldConfigInput = &ast.Definition{
		Kind: ast.InputObject,
		Name: consts.SchemaDefFieldDbConfigInputType,
		Fields: ast.FieldList{
			{
				Name: "Column",
				Type: ast.NamedType("String", nil),
			},
			{
				Name: "PrimaryKey",
				Type: ast.NamedType("Boolean", nil),
			},
			{
				Name: "AutoIncrement",
				Type: ast.NamedType("Boolean", nil),
			},
			{
				Name: "Unique",
				Type: ast.NamedType("Boolean", nil),
			},
			{
				Name: "NotNull",
				Type: ast.NamedType("Boolean", nil),
			},
			{
				Name: "Index",
				Type: ast.NamedType("Boolean", nil),
			},
			{
				Name: "UniqueIndex",
				Type: ast.NamedType("Boolean", nil),
			},
			{
				Name: "Size",
				Type: ast.NamedType("Int", nil),
			},
			{
				Name: "Precision",
				Type: ast.NamedType("Int", nil),
			},
			{
				Name: "Type",
				Type: ast.NamedType("String", nil),
			},
			{
				Name: "Scale",
				Type: ast.NamedType("Int", nil),
			},
			{
				Name: "AutoIncrementIncrement",
				Type: ast.NamedType("Int", nil),
			},
		},
	}

	AllDefinitions = []*ast.Definition{
		ResourceConfigInput,
		ResourceFieldConfigInput,
	}
)

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