db_open_cgo.go 484 B

123456789101112131415161718
  1. // Copyright (C) 2025 The Syncthing Authors.
  2. //
  3. // This Source Code Form is subject to the terms of the Mozilla Public
  4. // License, v. 2.0. If a copy of the MPL was not distributed with this file,
  5. // You can obtain one at https://mozilla.org/MPL/2.0/.
  6. //go:build cgo
  7. package sqlite
  8. import (
  9. _ "github.com/mattn/go-sqlite3" // register sqlite3 database driver
  10. )
  11. const (
  12. dbDriver = "sqlite3"
  13. commonOptions = "_fk=true&_rt=true&_cache_size=-65536&_sync=1&_txlock=immediate"
  14. )