module Sequel::JDBC::Crate::DatabaseMethods
Database instance methods for Crate
databases accessed via JDBC
.
Public Instance Methods
begin_transaction(*args)
click to toggle source
crate doesn’t support transactions
# File lib/sequel/adapters/jdbc/crate.rb, line 89 def begin_transaction(*args); end
commit_transaction(*args)
click to toggle source
# File lib/sequel/adapters/jdbc/crate.rb, line 90 def commit_transaction(*args); end
database_error_classes()
click to toggle source
Sequel
error wrapper will swallow exceptions without this
# File lib/sequel/adapters/jdbc/crate.rb, line 79 def database_error_classes [Java::IoCrateActionSql::SQLActionException] end
rollback_transaction(*args)
click to toggle source
# File lib/sequel/adapters/jdbc/crate.rb, line 91 def rollback_transaction(*args); end
schema_parse_table(table_name, opts)
click to toggle source
this isn’t called but needed so that sequel will do schema parsing sequel asks: respond_to?(:schema_parse_table, true)
# File lib/sequel/adapters/jdbc/crate.rb, line 85 def schema_parse_table(table_name, opts) end
serial_primary_key_options()
click to toggle source
there is no AUTOINCREMENT
# File lib/sequel/adapters/jdbc/crate.rb, line 40 def serial_primary_key_options {:primary_key => true, :type=>:String} end
to_application_timestamp(v)
click to toggle source
default behaviour will mangle timezones
# File lib/sequel/adapters/jdbc/crate.rb, line 34 def to_application_timestamp(v) #TODO: triple check this Time.local(*v) end
type_literal_generic_bignum(column)
click to toggle source
# File lib/sequel/adapters/jdbc/crate.rb, line 58 def type_literal_generic_bignum(column) :integer end
type_literal_generic_date(column)
click to toggle source
timestamp is only time related type
# File lib/sequel/adapters/jdbc/crate.rb, line 67 def type_literal_generic_date(column) :timestamp end
type_literal_generic_datetime(column)
click to toggle source
# File lib/sequel/adapters/jdbc/crate.rb, line 70 def type_literal_generic_datetime(column) :timestamp end
type_literal_generic_float(column)
click to toggle source
# File lib/sequel/adapters/jdbc/crate.rb, line 54 def type_literal_generic_float(column) :double end
type_literal_generic_integer(column)
click to toggle source
# File lib/sequel/adapters/jdbc/crate.rb, line 62 def type_literal_generic_integer(column) :integer end
type_literal_generic_numeric(column)
click to toggle source
crate supports integer, long, short, double, float and byte
# File lib/sequel/adapters/jdbc/crate.rb, line 50 def type_literal_generic_numeric(column) :double end
type_literal_generic_string(column)
click to toggle source
only one string type called ‘string’
# File lib/sequel/adapters/jdbc/crate.rb, line 45 def type_literal_generic_string(column) :string end
type_literal_generic_timestamp(column)
click to toggle source
# File lib/sequel/adapters/jdbc/crate.rb, line 73 def type_literal_generic_timestamp(column) :timestamp end