db

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(dsn string) (*gorm.DB, error)

Open opens a gorm.DB using the given DSN. If dsn is empty, falls back to a local SQLite file. Supported DSN formats:

  • postgres: postgres://user:pass@host:5432/db?sslmode=disable
  • sqlite: sqlite:///path/to.db or file:path.db?cache=shared or :memory:

Types

This section is empty.

Jump to

Keyboard shortcuts

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