@@ -201,8 +201,25 @@ Init_sqlite3_native(void)
201201 rb_define_singleton_method (mSqlite3 , "libversion" , libversion , 0 );
202202 rb_define_singleton_method (mSqlite3 , "threadsafe" , threadsafe_p , 0 );
203203 rb_define_singleton_method (mSqlite3 , "status" , rb_sqlite3_status , -1 );
204+
205+ /* (String) The version of the sqlite3 library compiled with (e.g., "3.46.1") */
204206 rb_define_const (mSqlite3 , "SQLITE_VERSION" , rb_str_new2 (SQLITE_VERSION ));
207+
208+ /* (Integer) The version of the sqlite3 library compiled with (e.g., 346001) */
205209 rb_define_const (mSqlite3 , "SQLITE_VERSION_NUMBER" , INT2FIX (SQLITE_VERSION_NUMBER ));
210+
211+ /* (String) The version of the sqlite3 library loaded at runtime (e.g., "3.46.1") */
206212 rb_define_const (mSqlite3 , "SQLITE_LOADED_VERSION" , rb_str_new2 (sqlite3_libversion ()));
207213
214+ #ifdef USING_PACKAGED_LIBRARIES
215+ rb_define_const (mSqlite3 , "SQLITE_PACKAGED_LIBRARIES" , Qtrue );
216+ #else
217+ rb_define_const (mSqlite3 , "SQLITE_PACKAGED_LIBRARIES" , Qfalse );
218+ #endif
219+
220+ #ifdef USING_PRECOMPILED_LIBRARIES
221+ rb_define_const (mSqlite3 , "SQLITE_PRECOMPILED_LIBRARIES" , Qtrue );
222+ #else
223+ rb_define_const (mSqlite3 , "SQLITE_PRECOMPILED_LIBRARIES" , Qfalse );
224+ #endif
208225}
0 commit comments