class TDS::Connection

Defined in:

tds/connection.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(options : DB::Connection::Options, tds_options : TDS::Connection::Options) #

[View source]

Instance Method Detail

def build_prepared_statement(query) : DB::Statement #
Description copied from class DB::Connection

:nodoc:


[View source]
def build_unprepared_statement(query) : DB::Statement #
Description copied from class DB::Connection

:nodoc:


[View source]
def do_close #
Description copied from module DB::Disposable

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


[View source]
def driver_name : String #

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").


[View source]
def recv(type : PacketIO::Type, &block : IO -> ) #

[View source]
def send(type : PacketIO::Type, &block : IO -> ) #

[View source]
def server_name : String | Nil #

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


[View source]
def server_version : String | Nil #

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.


[View source]
def sp_prepare(params : String, statement : String, options = 1) : Int32 #

[View source]
def sp_unprepare(handle : Int32) : UInt32 #

[View source]