Skip to content

Commit

Permalink
+ sqlite: load extension
Browse files Browse the repository at this point in the history
  • Loading branch information
artemp committed Oct 4, 2012
1 parent 3072b3f commit 10a2814
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions plugins/input/sqlite/sqlite_connection.hpp
Expand Up @@ -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:

Expand Down

1 comment on commit 10a2814

@romgen
Copy link

@romgen romgen commented on 10a2814 Nov 11, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.