test commit

This commit is contained in:
2024-09-27 16:33:19 +02:00
parent 63eae96126
commit dc0d30fa4e

View File

@ -18,8 +18,10 @@ var db *sqlite3.Conn
func initDb() error {
var err error
/* Not necessary because I am currently saving the db in memory
sqlstmt := `
var sqlstmt string
// Not really necessary because I am currently saving the db in memory
sqlstmt = `
DROP TABLE IF EXISTS artists;
DROP TABLE IF EXISTS websites;
DROP TABLE IF EXISTS links;
@ -28,9 +30,8 @@ func initDb() error {
if err != nil {
log.Fatal(err)
}
*/
sqlstmt := `
sqlstmt = `
CREATE TABLE IF NOT EXISTS artists (
id integer NOT NULL CONSTRAINT artists_pk PRIMARY KEY AUTOINCREMENT,
name text NOT NULL