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-21 07:39:59 +01:00
Code Issues Packages Projects Releases Wiki Activity
Files
d59b0f6ff7ee24d94eaa5ad68173405faea6a81c
Gogs/internal/db/models_sqlite.go

16 lines
275 B
Go
Raw Normal View History

go vet
2014-04-13 03:14:43 -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
// 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.
internal: move packages under this directory (#5836) * Rename pkg -> internal * Rename routes -> route * Move route -> internal/route * Rename models -> db * Move db -> internal/db * Fix route2 -> route * Move cmd -> internal/cmd * Bump version
2019-10-24 01:51:46 -07:00
package db
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
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: 74ms 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