sqlite3adapter

package
v0.0.0-...-dbea759 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package sqlite3adapter provides an implementation of the Adapter interface in the sqlset package that works over a SQLite3 database.

Index

Constants

View Source
const (

	// MaxDiscreteValueInsertionsPerStatement is the maximum number
	// of discrete values that are allowed to be added with a single
	// insert command with the AddDiscreteValues method of the adapter.
	// Trying to add more will result in making more insertion commands
	MaxDiscreteValueInsertionsPerStatement = 10

	// MaxSampleInsertionsPerStatement is the maximum number
	// of samples that are allowed to be added with a single
	// insert command with the AddSamples method of the adapter.
	// Trying to add more will result in making more insertion commands
	MaxSampleInsertionsPerStatement = 10
)

Variables

This section is empty.

Functions

func New

func New(path string, maxConn int) (sqlset.Adapter, error)

New takes a path to an SQLite3 database file and a maxConn integer and returns an Adapter that works on the file's database or an error if it fails to open as an sqlite3 database. If the given maxConn is greater than 0, it will be the maximum concurrent connections to the database that will be used. This limit is useful when the OS limits the number of files a process can open, which is the case for Mac OS X.

Types

This section is empty.

Jump to

Keyboard shortcuts

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