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