Module | Sequel::JDBC::HSQLDB::DatabaseMethods |
In: |
lib/sequel/adapters/jdbc/hsqldb.rb
|
PRIMARY_KEY_INDEX_RE | = | /\Asys_idx_sys_pk_/i.freeze |
DATABASE_ERROR_REGEXPS | = | { /integrity constraint violation: unique constraint or index violation/ => UniqueConstraintViolation, /integrity constraint violation: foreign key/ => ForeignKeyConstraintViolation, /integrity constraint violation: check constraint/ => CheckConstraintViolation, /integrity constraint violation: NOT NULL check constraint/ => NotNullConstraintViolation, /serialization failure/ => SerializationFailure, }.freeze |
The version of the database, as an integer (e.g 2.2.5 -> 20205)
# File lib/sequel/adapters/jdbc/hsqldb.rb, line 35 35: def db_version 36: @db_version ||= begin 37: v = get{DATABASE_VERSION(){}} 38: if v =~ /(\d+)\.(\d+)\.(\d+)/ 39: $1.to_i * 10000 + $2.to_i * 100 + $3.to_i 40: end 41: end 42: end