driver

package
v0.0.0-...-ca1160e Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package driver opens *sql.DB handles for the databases dbfoundry supports.

It imports all three drivers. If your application only needs one, delete the others from this file (and from go.mod with `go mod tidy`).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(driver, dsn string) (*sql.DB, error)

Open opens the database. driver is postgres, mysql or sqlite (aliases accepted). dsn examples:

postgres://user:pass@localhost:5432/app?sslmode=disable
user:pass@tcp(127.0.0.1:3306)/app?parseTime=true&multiStatements=false
file:app.db?_pragma=foreign_keys(1)

Types

This section is empty.

Jump to

Keyboard shortcuts

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