sqlite3-ruby
sqlite3-ruby copied to clipboard
Track names of fns created on db instance
I have found that it useful to be able check whether a function with a particular name has been created on an instance of SQLite3::Database. In the sqlite_ext gem, I monkey-patched that into the class, but I think it makes sense to have that as a native capability of the sqlite3 gem.
This PR adds that functionality.
Note that the Travis CI failure was caused by "An error occurred while installing rake (11.2.2), and Bundler cannot continue." for Ruby 1.8.7 and seems to be unrelated to the code in this PR.
I'd like to rebase this onto origin/master to ensure CI is green, but it doesn't look like I have permissions to edit your branch.
It seems like sqlite_ext still works with modern sqlite3 but it doesn't look like it's actively maintained.
I've sent a small PR to that repo to update the dev environment (https://github.com/stevecj/sqlite_ext/pull/1). If it's accepted then maybe we can revisit this change, but in the meantime I'm going to close it.
Ah, also see @tenderlove's comment on https://github.com/sparklemotion/sqlite3-ruby/issues/189