Included modules
Constants
DATABASE_ERROR_REGEXPS | = | Sequel::SQLite::DatabaseMethods::DATABASE_ERROR_REGEXPS.merge(/Abort due to constraint violation/ => ConstraintViolation).freeze |
Public Instance methods
foreign_key_list(table, opts=OPTS)
Swallow pointless exceptions when the foreign key list pragma doesn’t return any rows.
[show source]
# File lib/sequel/adapters/jdbc/sqlite.rb 41 def foreign_key_list(table, opts=OPTS) 42 super 43 rescue Sequel::DatabaseError => e 44 raise unless foreign_key_error?(e) 45 [] 46 end
indexes(table, opts=OPTS)
Swallow pointless exceptions when the index list pragma doesn’t return any rows.
[show source]
# File lib/sequel/adapters/jdbc/sqlite.rb 50 def indexes(table, opts=OPTS) 51 super 52 rescue Sequel::DatabaseError => e 53 raise unless foreign_key_error?(e) 54 {} 55 end