test commit
This commit is contained in:
9
main.go
9
main.go
@ -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
|
||||
|
Reference in New Issue
Block a user