package
3.7.1+incompatible
Repository: https://github.com/knocknote/sqlboiler.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
ColumnDBTypes of the columns.
ColumnNames of the columns.
ColumnsFromList takes a whitelist or blacklist and returns the columns for a given table.
DefaultEnv grabs a value from the environment or a default.
DriverMain helps dry up the implementation of main.go for drivers.
FilterColumnsByAuto generates the list of columns that have autogenerated values.
FilterColumnsByDefault generates the list of columns that have default values.
FilterColumnsByEnum generates the list of columns that are enum values.
GetDriver retrieves the driver by name.
GetTable by name.
RegisterBinary is used to register drivers that are binaries.
RegisterFromInit is typically called by a side-effect loaded driver during init time.
SQLColDefinitions creates a definition in sql format for a column.
Tables returns the metadata for all tables, minus the tables specified in the blacklist.
TablesFromList takes a whitelist or blacklist and returns the table names.
ToManyRelationships relationship lookups Input should be the sql name of a table like: videos.
ToOneRelationships relationship lookups Input should be the sql name of a table like: videos.
# Constants
These constants are used in the config map passed into the driver.
These constants are used in the config map passed into the driver.
These constants are used in the config map passed into the driver.
These constants are used in the config map passed into the driver.
These constants are used in the config map passed into the driver.
These constants are used in the config map passed into the driver.
These constants are used in the config map passed into the driver.
These constants are used in the config map passed into the driver.
These constants are used in the config map passed into the driver.
# Structs
Column holds information about a database column.
DBInfo is the database's table data and dialect.
Dialect describes the databases requirements in terms of which features it speaks and what kind of quoting mechanisms it uses.
ForeignKey represents a foreign key constraint in a database.
PrimaryKey represents a primary key constraint in a database.
SQLColumnDef formats a column name and type like an SQL column definition.
Table metadata from the database schema.
ToManyRelationship describes a relationship between two tables where the local table has no id, and the foreign table has an id that matches a column in the local table.
ToOneRelationship describes a relationship between two tables where the local table has no id, and the foreign table has an id that matches a column in the local table, that column can also be unique which changes the dynamic into a one-to-one style, not a to-many.
# Interfaces
Constructor breaks down the functionality required to implement a driver such that the drivers.Tables method can be used to reduce duplication in driver implementations.
Interface abstracts either a side-effect imported driver or a binary that is called in order to produce the data required for generation.
# Type aliases
Config is a map with helper functions.
SQLColumnDefs has small helper functions.