tinysqlite

package
v1.0.68 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 License: MIT Imports: 5 Imported by: 1

Documentation

Overview

Package tinysqlite provides utilities for handling sqlite.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(dsn string, config ...*Config) (*gorm.DB, error)

Open tries to open an instance of sqlite3 database and then return *gorm.DB instance to interact with it.

Types

type Config

type Config struct {
	// Verbose specifies whether to log all executed queries.
	Verbose bool

	// GormOpt allows to specify custom function that will operate directly on *gorm.Config.
	GormOpt func(*gorm.Config)
}

Config holds a configuration for Open.

Jump to

Keyboard shortcuts

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