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