db

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package db provides GORM database connection management for serverless and HTTP services.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConnection

func NewConnection(cfg config.DatabaseConfig) (*gorm.DB, error)

NewConnection creates a new GORM database connection based on the configuration. It supports "sqlite" and "postgres" drivers. Accepts any type that implements the DatabaseConfig interface.

Types

This section is empty.

Jump to

Keyboard shortcuts

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