Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
Holds a connection to an SQL database as well as the prepared statements for interacting with the database
func NewConnection ¶
func NewConnection(databaseFile string) (*Connection, error)
Creates a new connection to the given database file that can be queried for tracks
func (*Connection) GetTracks ¶
func (c *Connection) GetTracks(trackName string) []Track
Queries the database for tracks containing the given trackName. This is case-insensitive
Click to show internal directories.
Click to hide internal directories.