gormlite

package module
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 14 Imported by: 2

README

GORM SQLite Driver

Go Reference

Usage

import (
	_ "github.com/ncruces/go-sqlite3/embed"
	"github.com/ncruces/go-sqlite3/gormlite"
	"gorm.io/gorm"
)

db, err := gorm.Open(gormlite.Open("gorm.db"), &gorm.Config{})

Checkout https://gorm.io for details.

Documentation

Overview

Package gormlite provides a GORM driver for SQLite.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(dsn string) gorm.Dialector

Open opens a GORM dialector from a data source name.

func OpenDB added in v0.9.1

func OpenDB(db *sql.DB) gorm.Dialector

Open opens a GORM dialector from a database handle.

Types

This section is empty.

Jump to

Keyboard shortcuts

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