Module: Sequel::JDBC::SQLServer::DatabaseMethods
- Includes:
- MSSQL::DatabaseMethods
- Defined in:
- lib/sequel/adapters/jdbc/sqlserver.rb
Overview
Database instance methods for SQLServer databases accessed via JDBC.
Defined Under Namespace
Modules: MetadataDatasetMethods
Constant Summary
Constants included from MSSQL::DatabaseMethods
MSSQL::DatabaseMethods::ATAT_IDENTITY, MSSQL::DatabaseMethods::PRIMARY_KEY_INDEX_RE, MSSQL::DatabaseMethods::SCOPE_IDENTITY
Constants included from MSSQL::DatabaseMethods
MSSQL::DatabaseMethods::AUTO_INCREMENT, MSSQL::DatabaseMethods::DECIMAL_TYPE_RE, MSSQL::DatabaseMethods::FOREIGN_KEY_ACTION_MAP, MSSQL::DatabaseMethods::MSSQL_DEFAULT_RE, MSSQL::DatabaseMethods::SERVER_VERSION_RE, MSSQL::DatabaseMethods::SERVER_VERSION_SQL, MSSQL::DatabaseMethods::SQL_BEGIN, MSSQL::DatabaseMethods::SQL_COMMIT, MSSQL::DatabaseMethods::SQL_ROLLBACK, MSSQL::DatabaseMethods::SQL_ROLLBACK_TO_SAVEPOINT, MSSQL::DatabaseMethods::SQL_SAVEPOINT
Instance Attribute Summary
Attributes included from MSSQL::DatabaseMethods
Instance Method Summary collapse
Methods included from MSSQL::DatabaseMethods
#call_mssql_sproc, #database_type, #foreign_key_list, #freeze, #global_index_namespace?, #indexes, #server_version, #supports_partial_indexes?, #supports_savepoints?, #supports_transaction_isolation_levels?, #supports_transactional_ddl?, #tables, #views
Instance Method Details
#setup_type_convertor_map ⇒ Object
34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/sequel/adapters/jdbc/sqlserver.rb', line 34 def setup_type_convertor_map super map = @type_convertor_map map[Java::JavaSQL::Types::TIME] = TypeConvertor::INSTANCE.method(:MSSQLRubyTime) if defined?(Java::MicrosoftSql::Types::DATETIMEOFFSET) map[Java::MicrosoftSql::Types::DATETIMEOFFSET] = lambda do |r, i| if v = r.getDateTimeOffset(i) (v.to_s) end end end end |