factory

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEntityManagerWithConfig

func NewEntityManagerWithConfig(config *forma.Config, pool *pgxpool.Pool) (forma.EntityManager, error)

NewEntityManagerWithConfig creates a new EntityManager with the provided configuration and database pool. This is the primary way for external projects to create an EntityManager instance.

Usage:

import (
    "github.com/lychee-technology/forma"
    "github.com/lychee-technology/forma/factory"
)

config := forma.DefaultConfig()
em, err := factory.NewEntityManagerWithConfig(config, pool)
if err != nil {
    // handle error
}

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL