package
0.2.7
Repository: https://github.com/verticalgmbh/database-go.git
Documentation: pkg.go.dev

# Functions

CreateModel - creates a new entity model for a type.
CreateModelWithTable - creates a new entity model for a type.
CreateViewModel creates an entity model with a view as source **Parameters** - entitytype: type of entity reflected by view - statement: operation providing command text of view **Returns** - *EntityModel: created entity model.
NewIndexDescriptor creates a new IndexDescriptor.
NewSchemaColumn creates a new SchemaColumn **Parameters** - name: name of column - dbtype: database type of column - isprimarykey: determines whether column in a primary key - isautoincrement: determines whether column has auto increment flag - isunique: determines whether values of column have to be unique - isnotnull: determines whether values of column are not allowed to contain null values - defaultvalue: default value of column if no value is specified in insert statement **Returns** - *SchemaColumn: created column information.
NewTableDescriptor creates a new Table **Parameters** - name: name of table - columns: columns of table - indices: index definitions of table - uniques: unique descriptors of table **Returns** - *Table: created table descriptor.

# Constants

SchemaTypeTable regular database table.
SchemaTypeView database view.

# Structs

ColumnDescriptor - metadata of a column in an entity model.
EntityModel - model of an entity in a database.
IndexDescriptor database description of an index.
Table information about a regular database table.
View information about a view.

# Interfaces

Schema schema of a structure in database.

# Type aliases

SchemaType type of database schema.