From 25fd495b2e790001e9c138205606ec4fa16bf129 Mon Sep 17 00:00:00 2001 From: Michael Crosby Date: Sat, 12 Apr 2014 11:48:12 -0700 Subject: 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. --- models/models_sqlite.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 models/models_sqlite.go (limited to 'models/models_sqlite.go') diff --git a/models/models_sqlite.go b/models/models_sqlite.go new file mode 100644 index 00000000..02c3f582 --- /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" +) -- cgit v1.2.3