Where is HAVE_SQLITE3_COLUMN_DATABASE_NAME defined? #464
-
I am trying to understand how the gem determines whether or not to include the The code references a sqlite3-ruby/ext/sqlite3/statement.c Line 414 in 5361528 sqlite3-ruby/ext/sqlite3/statement.c Line 452 in 5361528 And the tests say that this method is defined or not depending on how SQLite was compiled: sqlite3-ruby/test/test_statement.rb Line 48 in 5361528 But, a search of the SQLite source doesn't return any use of this constant. And the docs say that the compilation flag used is So, how and where is the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Happy to answer questions! Let's do it in Discussions, though, and not Issues. In the extconf ( have_func('sqlite3_column_database_name') The method https://docs.ruby-lang.org/en/master/MakeMakefile.html#method-i-have_func Relevant:
Make sense? |
Beta Was this translation helpful? Give feedback.
Happy to answer questions! Let's do it in Discussions, though, and not Issues.
In the extconf (
ext/sqlite3/extconf.rb
), which is where the C extension is configured, you'll see this line:The method
have_func
comes from Ruby'smkmf.rb
orMakeMakefile
module, and is documented here:https://docs.ruby-lang.org/en/master/MakeMakefile.html#method-i-have_func
Relevant: