Categorygithub.com/fox-gonic/database
modulepackage
0.0.0-20240924034108-824aca03167b
Repository: https://github.com/fox-gonic/database.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

New database with configuration.
NewLogger return custom logger.
NewWithDialector database with dialector.

# Constants

DefaultPageSize pagination default items limit size.
MaxPageSize pagination default items max limit size.

# Variables

NowFunc returns current time, this function is exported in order to be able to give the flexibility to the developer to customize it according to their needs.

# Structs

Config mysql config.
ConnPool config.
Database instance type.
Model a basic GoLang struct which includes the following fields: ID, CreatedAt, UpdatedAt, DeletedAt It may be embedded into your model or you may build your own model without it type User struct { database.Model }.
Pagination model.