stdlib

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package stdlib adapts a *database/sql.DB to drops.Driver.

Use it with any database/sql-compatible driver — for PostgreSQL, that typically means github.com/jackc/pgx/v5/stdlib or github.com/lib/pq:

import (
    _ "github.com/jackc/pgx/v5/stdlib"
    "github.com/bernardoforcillo/drops/pg"
    "github.com/bernardoforcillo/drops/stdlib"
)

sqlDB, _ := sql.Open("pgx", dsn)
db := pg.New(stdlib.New(sqlDB))

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(db *sql.DB) drops.Driver

New wraps a *sql.DB as a drops.Driver.

Types

This section is empty.

Jump to

Keyboard shortcuts

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