Module | Sequel::Swift::SQLite::DatabaseMethods |
In: |
lib/sequel/adapters/swift/sqlite.rb
|
DATABASE_ERROR_REGEXPS | = | { /\AUNIQUE constraint failed: / => UniqueConstraintViolation, /\AFOREIGN KEY constraint failed/ => ForeignKeyConstraintViolation, /\ACHECK constraint failed/ => CheckConstraintViolation, /\A(SQLITE ERROR 19 \(CONSTRAINT\) : )?constraint failed/ => ConstraintViolation, /may not be NULL\z|NOT NULL constraint failed: .+/ => NotNullConstraintViolation, /\ASQLITE ERROR \d+ \(\) : CHECK constraint failed: / => CheckConstraintViolation |
Set the correct pragmas on the connection.
# File lib/sequel/adapters/swift/sqlite.rb, line 29 29: def connect(opts) 30: c = super 31: connection_pragmas.each{|s| log_connection_yield(s, c){c.execute(s)}} 32: c 33: end