Versions in this module Expand all Collapse all v1 v1.0.1 Dec 25, 2025 Changes in this version type Paginate + Offset int v1.0.0 Dec 2, 2024 Changes in this version + const QUERY_NAME + func Close() + func Connect(options *ConnectOption) *sqlx.DB + func DropDatabase(dbURL string) error + func ExecuteQuery(queryName string, data interface{}) (sql.Result, error) + func Fetch(dest interface{}, ids ...interface{}) error + func Get(dest interface{}, queryName string, args ...interface{}) error + func GetDB() *sqlx.DB + func LoadQuery(queryName string) (string, error) + func LoadRelations(model Model) error + func Query(ctx context.Context, queryName string, args ...interface{}) (*sqlx.Rows, error) + func QuerySelect(queryName string, dest interface{}, args ...interface{}) error + func Queryx(queryName string, args ...interface{}) (*sqlx.Rows, error) + func TxExecuteQuery(tx *sqlx.Tx, queryName string, data interface{}) (sql.Result, error) + func TxQuery(ctx context.Context, tx *sqlx.Tx, queryName string, args ...interface{}) (*sqlx.Rows, error) + func UnmarshalJSONTextFields(input interface{}) error + type ConnectOption struct + Interval time.Duration + MaxRequests uint32 + SqlDir string + Timeout time.Duration + URL string + type FetchList struct + ID uuid.UUID + TotalCount int + type Filter struct + Key string + Value string + type Model interface + FetchQuery func() string + TableName func() string + type Paginate struct + Filters []Filter + Limit int + Offet int + type Relation struct + ColumnName string + ConstraintName string + ForeignColumnName string + ForeignTableName string + TableName string + func GetRelations(table string) ([]Relation, error)