gemini-search

A simple search engine for Geminispace
git clone git://git.laack.co/gemini-search.git
Log | Files | Refs | README

sqlite3_load_extension_omit.go (625B)


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