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

#current_timestamp_utc, #integer_booleans, #transaction_mode, #use_timestamp_timezones

Instance Method Summary collapse

Methods included from SQLite::DatabaseMethods

#database_type, #freeze, #set_integer_booleans, #sqlite_version, #support_without_rowid?, #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.



41
42
43
44
45
46
# File 'lib/sequel/adapters/jdbc/sqlite.rb', line 41

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.



50
51
52
53
54
55
# File 'lib/sequel/adapters/jdbc/sqlite.rb', line 50

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