db

package
v0.0.0-...-1559108 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TableName string = "GraphQL3"
)

Variables

View Source
var (
	// error categories - returned from Unwrap()
	NoItemFoundErr  = errors.New("does not exist in document")
	SystemErr       = errors.New("Database system error")
	MarshalingErr   = errors.New("Database marshaling error")
	UnmarshalingErr = errors.New("Database unmarshaling error")
)

Functions

func DBFetch

func DBFetch(name string) (string, error)

func DeleteType

func DeleteType(input string) error

func GetDocument

func GetDocument() string

func Persist

func Persist(input string, ast_ ast.GQLTypeProvider) error

func SetDefaultDoc

func SetDefaultDoc(doc string)

func SetDocument

func SetDocument(doc string)

Types

type DBFetchErr

type DBFetchErr struct {
	// contains filtered or unexported fields
}

func (*DBFetchErr) Error

func (e *DBFetchErr) Error() string

func (*DBFetchErr) Unwrap

func (e *DBFetchErr) Unwrap() error

type PkRow

type PkRow struct {
	PKey  string
	SortK string
}

type TypeRow

type TypeRow struct {
	PKey  string
	SortK string
	Stmt  string
	Type  string //this maps to ast.Type.Base - reqired for ENUM types but maybe useful for others
	I     string // Insert time
	U     string // Update time
	D     string // Delete time
}

Jump to

Keyboard shortcuts

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