Logo
Explore Help
Register Sign In
Nemcio/Gogs
1
0
Fork 0
You've already forked Gogs
mirror of https://github.com/gogs/gogs.git synced 2025-12-20 23:30:00 +01:00
Code Issues Packages Projects Releases Wiki Activity
Files
23bba7633bbd8ae8f9f41404352c327f9e8c9fdc
Gogs/models/models_sqlite.go

16 lines
279 B
Go
Raw Normal View History

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.
2014-04-12 11:48:12 -07:00
// 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.
Mirror fix on sqlite3 tag
2014-04-12 16:24:09 -04:00
// +build sqlite
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.
2014-04-12 11:48:12 -07:00
package models
import (
_ "github.com/mattn/go-sqlite3"
)
Mirror fix on sqlite3 tag
2014-04-12 16:24:09 -04:00
func init() {
EnableSQLite3 = true
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.1 Page: 36ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API