diff options
author | Michael Crosby <michael@crosbymichael.com> | 2014-04-12 11:48:12 -0700 |
---|---|---|
committer | Michael Crosby <michael@crosbymichael.com> | 2014-04-12 12:12:48 -0700 |
commit | 25fd495b2e790001e9c138205606ec4fa16bf129 (patch) | |
tree | 12cafa5b49502f423a3f6ab71810c75af0f09a1d /models/models_sqlite.go | |
parent | 0650c3c9f609ba833c29fa120a34f15c0f064b54 (diff) | |
download | gitea-25fd495b2e790001e9c138205606ec4fa16bf129.tar.gz gitea-25fd495b2e790001e9c138205606ec4fa16bf129.zip |
Add sqlite build tag
This adds a sqlite build tag so that you don't have to have the sqlite
import commented out in code and users can run:
go build -tags sqlite
if they want to have sqlite support enabled. It is disabled by default
so nothing changes with the default go get or build commands.
Diffstat (limited to 'models/models_sqlite.go')
-rw-r--r-- | models/models_sqlite.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/models/models_sqlite.go b/models/models_sqlite.go new file mode 100644 index 0000000000..02c3f58249 --- /dev/null +++ b/models/models_sqlite.go @@ -0,0 +1,11 @@ +// +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 models + +import ( + _ "github.com/mattn/go-sqlite3" +) |