class

ODBC::Config

Inherits Reference / Object

Configuration options for ODBC connections and operations.

Values are applied to each new connection via Connection#apply_config. Can be configured programmatically or via environment variables.

ODBC::Config.configure do |c|
  c.connection_timeout = 60.seconds
  c.query_timeout = 30.seconds
  c.enable_tracing = true
end

Constructors

from_env

Load configuration from environment variables. Called automatically on first access of Config.instance.

Source
instance
Source

Class methods

configure
Source
reset!

Reset configuration to defaults (useful for testing)

Source

Instance methods

auto_commit=(auto_commit : Bool)
Source
auto_commit?
Source
connection_timeout
Source
connection_timeout=(connection_timeout : Time::Span)
Source
default_buffer_size
Source
default_buffer_size=(default_buffer_size : Int32)
Source
enable_tracing=(enable_tracing : Bool)
Source
enable_tracing?
Source
login_timeout
Source
login_timeout=(login_timeout : Time::Span)
Source
max_string_length
Source
max_string_length=(max_string_length : Int32)
Source
query_timeout
Source
query_timeout=(query_timeout : Time::Span)
Source
trace_file
trace_file=(trace_file : String)