Module Sequel::Swift::SQLite::DatabaseMethods
In: lib/sequel/adapters/swift/sqlite.rb

Database instance methods for SQLite databases accessed via Swift.

Methods

Included Modules

Sequel::SQLite::DatabaseMethods

Constants

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

Public Instance methods

Set the correct pragmas on the connection.

[Source]

    # 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

[Source]

    # File lib/sequel/adapters/swift/sqlite.rb, line 24
24:         def database_error_regexps
25:           DATABASE_ERROR_REGEXPS
26:         end

[Validate]