Categorygithub.com/payfazz/FST-Database-Handler
modulepackage
1.2.0
Repository: https://github.com/payfazz/fst-database-handler.git
Documentation: pkg.go.dev

# README

FST-Database-Handler

Template for database handler for most of fst app

# Functions

NewManager creates a new manager.
NewPostgresRepository creates a new generic postgres repository.
StringToInt remove .00 space and convert string to int.

# Constants

TXCONTEXTKEY Key for transaction in context.
USERCONTEXTKEY Key for username in context.

# Structs

Manager represents the manager to manage the data consistency.
PostgresRepository is the postgres implementation of generic repository.

# Interfaces

GenericRepository represents the generic repository for the domain models that matches with its data models.
Queryer represents the data commands interface.