module Sequel::JDBC::SQLite::DatabaseMethods

Instance methods for SQLite Database objects accessed via JDBC.

Constants

DATABASE_ERROR_REGEXPS
FOREIGN_KEY_ERROR_RE
LAST_INSERT_ROWID

Public Instance Methods

foreign_key_list(table, opts=OPTS) click to toggle source

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

# File lib/sequel/adapters/jdbc/sqlite.rb, line 29
def foreign_key_list(table, opts=OPTS)
  super
rescue Sequel::DatabaseError => e
  raise unless foreign_key_error?(e)
  []
end
indexes(table, opts=OPTS) click to toggle source

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

# File lib/sequel/adapters/jdbc/sqlite.rb, line 38
def indexes(table, opts=OPTS)
  super
rescue Sequel::DatabaseError => e
  raise unless foreign_key_error?(e)
  {}
end