dinkurdb

package
v0.0.0-...-d280c18 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: GPL-3.0 Imports: 24 Imported by: 2

Documentation

Overview

Package dinkurdb contains a dinkur.Client implementation that targets an Sqlite3 database file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(dsn string, opt Options) dinkur.Client

NewClient creates a new dinkur.Client-compatible client that uses an Sqlite3 database file for persistence.

Types

type Options

type Options struct {
	// MkdirAll lets the client create any containing directory for where the
	// database file is to be stored upon connecting to it. If set to false and
	// the containing directory does not exist, then the Connect method will
	// return a "file not found" error.
	MkdirAll bool
	// SkipMigrateOnConnect disables the migration check done when the Connect
	// method is invoked.
	SkipMigrateOnConnect bool
	// DebugLogging enables logging of SQL queries and warnings issued by
	// GORM.
	DebugLogging bool
}

Options for the client's Sqlite3 database connection.

Jump to

Keyboard shortcuts

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