summaryrefslogtreecommitdiffstats
path: root/modules/setting/database_sqlite.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/setting/database_sqlite.go')
-rw-r--r--modules/setting/database_sqlite.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/modules/setting/database_sqlite.go b/modules/setting/database_sqlite.go
new file mode 100644
index 0000000000..623326ddc2
--- /dev/null
+++ b/modules/setting/database_sqlite.go
@@ -0,0 +1,16 @@
+// +build sqlite
+
+// Copyright 2014 The Gogs Authors. All rights reserved.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+
+package setting
+
+import (
+ _ "github.com/mattn/go-sqlite3"
+)
+
+func init() {
+ EnableSQLite3 = true
+ SupportedDatabases = append(SupportedDatabases, "SQLite3")
+}