Discover Packages
github.com/Ithildur/EiluneKit
postgres
gorm
package
Version:
v0.1.3
Opens a new window with list of versions in this module.
Published: Apr 21, 2026
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0 modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package gorm provides GORM helpers for Postgres.
Package gorm 提供 Postgres 的 GORM 辅助。
BuildDSN returns a Postgres DSN.
BuildDSN 返回 Postgres DSN。
Connect opens and verifies a GORM DB with Postgres driver.
Connect 使用 Postgres 驱动打开并验证 GORM DB。
Example / 示例:
db, _ := gorm.Connect(ctx, gorm.Config{Host: "localhost", Port: 5432, User: "app", Name: "db"})
NewLogger builds a GORM logger using the provided logging.Logger.
NewLogger 使用指定的 logging.Logger 构建 GORM logger。
Ping performs a lightweight health check using the underlying sql.DB.
Ping 使用底层 sql.DB 执行轻量健康检查。
Config holds Postgres connection settings.
Config 包含 Postgres 连接配置。
LogOptions configures a GORM logger backed by EiluneKit logging.
LogOptions 配置基于 EiluneKit logging 的 GORM logger。
Source Files
¶
Click to show internal directories.
Click to hide internal directories.