Module: Sequel::JDBC::SQLite::DatabaseMethods

Includes:
SQLite::DatabaseMethods
Defined in:
lib/sequel/adapters/jdbc/sqlite.rb

Constant Summary

Constants included from SQLite::DatabaseMethods

SQLite::DatabaseMethods::AUTO_VACUUM, SQLite::DatabaseMethods::SYNCHRONOUS, SQLite::DatabaseMethods::TEMP_STORE, SQLite::DatabaseMethods::TRANSACTION_MODE

Instance Attribute Summary

Attributes included from SQLite::DatabaseMethods

#integer_booleans, #transaction_mode, #use_timestamp_timezones

Instance Method Summary collapse

Methods included from SQLite::DatabaseMethods

#database_type, #freeze, #set_integer_booleans, #sqlite_version, #supports_create_table_if_not_exists?, #supports_deferrable_foreign_key_constraints?, #supports_partial_indexes?, #supports_savepoints?, #tables, #use_timestamp_timezones?, #values, #views

Instance Method Details

#foreign_key_list(table, opts = OPTS) ⇒ Object

Swallow pointless exceptions when the foreign key list pragma doesn't return any rows.



23
24
25
26
27
28
# File 'lib/sequel/adapters/jdbc/sqlite.rb', line 23

def foreign_key_list(table, opts=OPTS)
  super
rescue Sequel::DatabaseError => e
  raise unless foreign_key_error?(e)
  []
end

#indexes(table, opts = OPTS) ⇒ Object

Swallow pointless exceptions when the index list pragma doesn't return any rows.



32
33
34
35
36
37
# File 'lib/sequel/adapters/jdbc/sqlite.rb', line 32

def indexes(table, opts=OPTS)
  super
rescue Sequel::DatabaseError => e
  raise unless foreign_key_error?(e)
  {}
end