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 ¶
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.
Click to show internal directories.
Click to hide internal directories.