github.com/CanonicalLtd/go-sqlite3@v1.6.0/sqlite3_omit_load_extension.go (about)

     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  
     7  package sqlite3
     8  
     9  /*
    10  #cgo CFLAGS: -DSQLITE_OMIT_LOAD_EXTENSION
    11  */
    12  import "C"
    13  import (
    14  	"errors"
    15  )
    16  
    17  func (c *SQLiteConn) loadExtensions(extensions []string) error {
    18  	return errors.New("Extensions have been disabled for static builds")
    19  }
    20  
    21  func (c *SQLiteConn) LoadExtension(lib string, entry string) error {
    22  	return errors.New("Extensions have been disabled for static builds")
    23  }