summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.go b/main.go
index f1598bf..7306df2 100644
--- a/main.go
+++ b/main.go
@@ -24,6 +24,11 @@ func main() {
log.Fatalf("creating table: %s", err)
}
+ _, err = db.Exec("PRAGMA synchronous = OFF;")
+ if err != nil {
+ log.Fatalf("setting risky writes: %s", err)
+ }
+
row := db.QueryRow(`SELECT count(*) as count from words`)
var count int
err = row.Scan(&count)