db

package
v2.5.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver interface {
	GetTables() []string
	GetFields(string) []Field
}

Driver is the minimal interface needed for db.json generation

type Field

type Field struct {
	Name     string `json:"name"`
	Type     string `json:"data_type,omitempty"`
	Nullable bool   `json:"null,omitempty"`
	Size     int    `json:"size,omitempty"`
}

Field represents the structure for a db.json field

type Table

type Table struct {
	Name   string  `json:"name"`
	Fields []Field `json:"fields"`
}

Table represents the basic structure of db.json

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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