Skip to content

Commit

Permalink
Use WAL mode with SQLite
Browse files Browse the repository at this point in the history
  • Loading branch information
ocdtrekkie committed Jun 21, 2024
1 parent 53be670 commit 131140d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modDatabase.vb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Module modDatabase
Public conn As SQLiteConnection = New SQLiteConnection

Sub CreateDb()
Execute("PRAGMA journal_mode = WAL")
Execute("CREATE TABLE IF NOT EXISTS ""CONFIG"" (""Key"" varchar(100) primary key not null ,""Value"" varchar )")
Execute("CREATE TABLE IF NOT EXISTS DEVICES(Id INTEGER PRIMARY KEY, Name TEXT, Type TEXT, Model TEXT, Location TEXT, Address TEXT UNIQUE)")
Execute("CREATE TABLE IF NOT EXISTS ENVIRONMENT(Id INTEGER PRIMARY KEY, Date TEXT, Source TEXT, Location TEXT, Temperature INTEGER, Humidity INTEGER, Condition TEXT)")
Expand Down

0 comments on commit 131140d

Please sign in to comment.