core

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: MIT Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const DriverMariaDB = "mariadb"
View Source
const DriverMysql = "mysql"
View Source
const DriverSqlite = "sqlite"

Variables

This section is empty.

Functions

This section is empty.

Types

type QueryMacro

type QueryMacro struct {
	Method string
	Name   string
	Query  string
}

type SQLColumn

type SQLColumn struct {
	Name       string
	As         string
	Ref        string
	Type       string
	TypeSQL    string
	Nullable   bool
	Table      string
	TableAs    string
	HasDefault bool

	Order int
}

type SQLQuery

type SQLQuery struct {
	Query  string
	Method string
	Name   string

	Select         string
	SelectOriginal string
	SelectFields   []*SQLColumn

	From    string
	Where   string
	GroupBy []string
	Having  string
}

type SQLSchema

type SQLSchema struct {
	Tables  map[string]*SQLTable
	Queries []SQLQuery
}

func (*SQLSchema) Debug

func (s *SQLSchema) Debug()

type SQLTable

type SQLTable struct {
	Name    string
	Columns map[string]*SQLColumn

	Constraints []*SQLTableConstraint
	Indexes     []*SQLTableIndex
	References  []*SQLTableReference
	Referenced  []*SQLTableReference

	Order int
}

type SQLTableConstraint

type SQLTableConstraint struct {
	Name    string
	Columns []string
	Type    string
}

type SQLTableIndex

type SQLTableIndex struct {
	Name    string
	Columns []string
}

type SQLTableReference

type SQLTableReference struct {
	Name         string
	Columns      []string
	Table        string
	TableColumns []string
}

type TableDeps

type TableDeps struct {
	Names []string
	As    string
}

Jump to

Keyboard shortcuts

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