class

TDS::Connection

Inherits DB::Connection < DB::BeginTransaction < DB::SessionMethods < DB::QueryMethods < DB::Disposable < Reference < Object

Constructors

new(options : DB::Connection::Options, tds_options : TDS::Connection::Options)
Source

Instance methods

build_prepared_statement(query) : DB::Statement

:nodoc:

Source
build_unprepared_statement(query) : DB::Statement

:nodoc:

Source
do_close

Implementors overrides this method to perform resource cleanup If an exception is raised, the resource will not be marked as closed.

Source
driver_name

Returns the canonical name of the driver backing this connection.

The value is always one of the names the driver registers with DB.register_driver (e.g. "postgres", "mysql", "sqlite3").

Source
recv(type : PacketIO::Type, &block : IO -> )
Source
send(type : PacketIO::Type, &block : IO -> )
Source
server_name

Returns the product name the server identifies as (e.g. "PostgreSQL", "MariaDB"), or nil if the driver can't tell.

Source
server_version

Returns the version string as reported by the server, unparsed (e.g. "8.4.9", "12.2.2-MariaDB-ubu2404"), or nil if the driver can't tell.

The format is server-specific.

Source
sp_prepare(params : String, statement : String, options = 1) : Int32
Source
sp_unprepare(handle : Int32) : UInt32
Source

Nested types