package
1.3.5
Repository: https://github.com/loyalguru/go-kallax.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

No description provided by the author
ColumnSchemaDiff generates the change set with the diff between two column schemas.
No description provided by the author
NewField creates a new field with its name, type and struct tag.
NewGenerator creates a new generator that can save on the given filename.
NewMigration creates a new migration from the old and the new schema.
NewMigrationGenerator returns a new migration generator with the given migrations directory.
NewModel creates a new model with the given name.
NewPackage creates a new package.
NewProcessor creates a new Processor for the given path and ignored files.
No description provided by the author
SchemaDiff generates a change set with the diff between two schemas.
SchemaFromPackages returns a schema for the given packages models.
TableSchemaDiff generates a change set with the diff between two table schemas.

# Constants

AfterDelete is an event that will happen after Delete.
AfterInsert is an event that will happen after Insert operations.
AfterSave is an event that will happen after Insert or Update operations.
AfterUpdate is an event that will happen after Update operations.
Array is a field with an array type.
BaseModel is the type name of the kallax base model.
Basic is a field with a basic type.
BeforeDelete is an event that will happen before Delete.
BeforeInsert is an event that will happen before Insert operations.
BeforeSave is an event that will happen before Insert or Update operations.
BeforeUpdate is an event that will happen before Update operations.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Interface is a field with an interface type.
Invalid is an invalid field type.
No description provided by the author
Map is a field with a map type.
QueryNamePattern is the pattern used to name queries.
No description provided by the author
Relationship is a field which is a relationship to other model/s.
ResultSetNamePattern is the pattern used to name result sets.
No description provided by the author
Slice is a field with a slice type.
No description provided by the author
No description provided by the author
StoreNamePattern is the pattern used to name stores.
Struct is a field with a struct type.
No description provided by the author
No description provided by the author
URL is the type name of the net/url.URL.
No description provided by the author

# Variables

Base is the default Template instance with all templates preloaded.

# Structs

AddColumn is a change that will add a column.
ColumnSchema represents the schema of a column.
CreateIndex is a change that will create an index.
CreateTable is a change that will add a new table.
DBSchema represents a schema of all the models in the database.
DropColumn is a change that will drop a column.
DropIndex is a change that will drop an index.
DropTable is a change that will drop a table.
Field is the representation of a model field.
Generator is in charge of generating files for packages.
ImplicitFK is a foreign key that is defined on just one side of the relationship and needs to be added on the other side.
ManualChange is a change that cannot be made automatically and requires the user to write a proper migration.
Migration contains all the data to represent a schema migration.
MigrationGenerator is a generator of migrations.
Model is the representation of an user-defined model.
Package is the representation of a scanned package.
Processor is in charge of processing the package in a patch and scan models from it.
Reference represents a reference to another table column.
TableSchema represents the SQL schema of a table.
Template renders the kallax templates using given packages.
TemplateData is the structure passed to fill the templates.

# Interfaces

Change represents a change to be made in a migration.

# Type aliases

ChangeSet is a set of changes to be made in a migration.
ColumnType represents the SQL column type.
Event is the name of an event.
Events is a collection of events.
FieldKind is the kind of a field.
Timestamper is a function that returns the current time.