Permalink
Browse files

+ sqlite: load extension

  • Loading branch information...
1 parent 3072b3f commit 10a28145b4215b1b426c69321417766a0edeec3c @artemp artemp committed Oct 4, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 plugins/input/sqlite/sqlite_connection.hpp
@@ -163,6 +163,12 @@ class sqlite_connection
return db_;
}
+ bool load_extension(std::string const& ext_path)
+ {
+ sqlite3_enable_load_extension(db_, 1);
+ int result = sqlite3_load_extension(db_, ext_path.c_str(), 0 , 0);
+ return (result == SQLITE_OK)? true : false;
+ }
private:

1 comment on commit 10a2814

romgen commented on 10a2814 Nov 11, 2012

Is there a way to access this function from "outside"? It doesn't seem that it is beeing called anywhere. I need this to load the spatialite" extension.

Please sign in to comment.