class
TDS::Connection
- TDS::Connection
- DB::Connection
- Reference
- Object
Defined in:
tds/connection.crConstructors
Instance Method Summary
-
#build_prepared_statement(query) : DB::Statement
:nodoc:
-
#build_unprepared_statement(query) : DB::Statement
:nodoc:
-
#do_close
Implementors overrides this method to perform resource cleanup If an exception is raised, the resource will not be marked as closed.
-
#driver_name : String
Returns the canonical name of the driver backing this connection.
- #recv(type : PacketIO::Type, &block : IO -> )
- #send(type : PacketIO::Type, &block : IO -> )
-
#server_name : String | Nil
Returns the product name the server identifies as (e.g.
-
#server_version : String | Nil
Returns the version string as reported by the server, unparsed (e.g.
- #sp_prepare(params : String, statement : String, options = 1) : Int32
- #sp_unprepare(handle : Int32) : UInt32
Constructor Detail
Instance Method Detail
:nodoc:
:nodoc:
Implementors overrides this method to perform resource cleanup If an exception is raised, the resource will not be marked as closed.
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").
Returns the product name the server identifies as (e.g. "PostgreSQL", "MariaDB"), or nil if the driver can't tell.
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.