postgres

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package postgres registers the "postgres" driver for dbx.

Import this package once in your main function to enable postgres:

import _ "github.com/aisphereio/kernel/dbx/postgres"

Then use `dbx.Config{Driver: "postgres", DSN: "postgres://..."}` with dbx.New.

The driver uses gorm.io/driver/postgres, which wraps pgx/stdlib. It supports all GORM features including OnConflict, soft-delete, and autoCreate/UpdateTime.

Jump to

Keyboard shortcuts

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