Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

+ sqlite: load extension

  • Loading branch information...
commit 10a28145b4215b1b426c69321417766a0edeec3c 1 parent 3072b3f
@artemp artemp authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 plugins/input/sqlite/sqlite_connection.hpp
View
6 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

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.
Something went wrong with that request. Please try again.