package
0.0.0-20211008083621-3438cf80670b
Repository: https://github.com/code-hex/xo.git
Documentation: pkg.go.dev

# Functions

GenRandomID generates a 8 character random string.
NewDefaultArgs returns the default arguments.
SinguralizeIdentifier will singularize a identifier, returning it in CamelCase.

# Constants

No description provided by the author
the order here will be the alter the output order per file.
FkModeField causes a foreign key field to be named in the form of "<type>.<ParentName>By<Field>".
FkModeKey causes a foreign key field to be named in the form of "<type>.<ParentName>By<ForeignKeyName>".
FkModeParent causes a foreign key field to be named in the form of "<type>.<ParentName>".
FkModeSmart is the default FkMode.
the order here will be the alter the output order per file.
the order here will be the alter the output order per file.
the order here will be the alter the output order per file.
the order here will be the alter the output order per file.
the order here will be the alter the output order per file.
No description provided by the author
the order here will be the alter the output order per file.
Table reltype.
No description provided by the author
the order here will be the alter the output order per file.
View reltype.
always last.

# Variables

Args are the application arguments.
IndexChopSuffixRE is the regexp of index name suffixes that will be chopped off.
IntRE matches Go int types.
PrecScaleRE is the regexp that matches "(precision[,scale])" definitions in a database.
SchemaLoaders are the available schema loaders.

# Structs

ArgType is the type that specifies the command line arguments.
Enum is a template item for a enum.
EnumValue holds data for a single enum value.
Field contains field information.
ForeignKey is a template item for a foreign relationship on a table.
Index is a template item for a index into a table.
Proc is a template item for a stored procedure.
Query is a template item for a custom query.
QueryParam is a query parameter for a custom query.
Set is a template item for a set.
SetValue holds data for a single set value.
TBuf is to hold the executed templates.
TemplateSet is a set of templates.
Type is a template item for a type (ie, table/view/custom query).
TypeLoader provides a common Loader implementation used by the built in schema/query loaders.

# Interfaces

Loader is the common interface for database drivers that can generate code from a database schema.

# Type aliases

EscType represents the different escape types.
FkMode represents the different foreign key naming modes.
RelType represents the different types of relational storage (table/view).
TBufSlice is a slice of TBuf compatible with sort.Interface.
TemplateType represents a template type.