package
Version:
v0.0.0-...-1e39069
Opens a new window with list of versions in this module.
Published: Nov 24, 2021
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package db provides helper functionality for interacting with the database.
type DB struct {
*sql.DB
}
DB is a wrapper for *sql.DB, for the purpose of "inheriting" methods like Close
that can be used alongside the custom ones here.
New returns DB struct, given a valid path to the local database file.
Get retrieves the first track matching the specified pattern.
Init initializes the database with the tracks table.
Insert inserts a track into the database.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.