本站源代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
587B

  1. // Copyright (C) 2014 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. // +build sqlite_omit_load_extension
  6. package sqlite3
  7. /*
  8. #cgo CFLAGS: -DSQLITE_OMIT_LOAD_EXTENSION
  9. */
  10. import "C"
  11. import (
  12. "errors"
  13. )
  14. func (c *SQLiteConn) loadExtensions(extensions []string) error {
  15. return errors.New("Extensions have been disabled for static builds")
  16. }
  17. func (c *SQLiteConn) LoadExtension(lib string, entry string) error {
  18. return errors.New("Extensions have been disabled for static builds")
  19. }
上海开阖软件有限公司 沪ICP备12045867号-1