data_postgres

package module
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2026 License: MIT Imports: 9 Imported by: 1 module, 1 package

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.

README

data-postgres

data-postgres 是 github.com/infrago/data 的postgresql 驱动。

包定位

  • 类型:驱动
  • 作用:把 data 模块的统一接口落到 postgresql 后端实现

快速接入

import (
    _ "github.com/infrago/data"
    _ "github.com/infrago/data-postgres"
)
[data]
driver = "postgresql"

setting 专用配置项

配置位置:[data].setting

  • dsn

说明

  • setting 仅对当前驱动生效,不同驱动键名可能不同
  • 连接失败时优先核对 setting 中 host/port/认证/超时等参数

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Driver

func Driver() data.Driver

Types

This section is empty.

Jump to

Keyboard shortcuts

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