modulepackage
0.0.0-20240426175919-59c0c062c7fc
Repository: https://github.com/iotku/genmusicsqlitedb.git
Documentation: pkg.go.dev
# README
genMusicSQLiteDB
Generate a SQLite Database of Music files (and accociated metadata) from a folder
genMusicSQLiteDB requires go 1.16 or later as it implements filepath.WalkDir.
Tags are read via the "tag" library: https://github.com/dhowden/tag
sqlite3 driver: https://github.com/mattn/go-sqlite3 (requires gcc)
Usage
Create media.db for mumzic
$ genMusicSQLiteDB [path/to/music/directory]
This creates a media.db (Currently hardcoded filename) containing 4 colums ("artist", "album", "title", "path")
Supported Formats
Currently genMusicSQLiteDB program looks for .flac/.mp3/.opus files.
# Functions
GetRowCount returns amount of rows in a table.
InitDB creates a new sqlite database with provided table containing provided columns Note: path is hardcoded to exist so shouldn't be included in columns.
No description provided by the author
No description provided by the author