sqlite3_load_extension_omit.go 625 B

1234567891011121314151617181920212223242526
  1. // Copyright (C) 2019 Yasuhiro Matsumoto <mattn.jp@gmail.com>.
  2. //
  3. // Use of this source code is governed by an MIT-style
  4. // license that can be found in the LICENSE file.
  5. //go:build sqlite_omit_load_extension
  6. // +build sqlite_omit_load_extension
  7. package sqlite3
  8. /*
  9. #cgo CFLAGS: -DSQLITE_OMIT_LOAD_EXTENSION
  10. */
  11. import "C"
  12. import (
  13. "errors"
  14. )
  15. func (c *SQLiteConn) loadExtensions(extensions []string) error {
  16. return errors.New("Extensions have been disabled for static builds")
  17. }
  18. func (c *SQLiteConn) LoadExtension(lib string, entry string) error {
  19. return errors.New("Extensions have been disabled for static builds")
  20. }