Module: TriCoreDB

Defined in:
lib/tricoredb.rb,
lib/tricoredb/pool.rb,
lib/tricoredb/frame.rb,
lib/tricoredb/client.rb,
lib/tricoredb/errors.rb,
lib/tricoredb/params.rb,
lib/tricoredb/version.rb,
lib/tricoredb/builders.rb,
lib/tricoredb/response.rb,
lib/tricoredb/transport.rb

Overview

Ruby driver for TriCoreDB's native tricore protocol.

Defined Under Namespace

Modules: Acc, Features, Filter, Frame, LlmSource, Params, Stage Classes: AuthError, Binary, Client, ConnectionError, Error, FeatureNotGranted, ParameterError, Pool, PoolTimeout, ProtocolError, ReadTimeout, Response, Rows, ServerError, StreamEntry, Transport

Constant Summary collapse

NOT_LEADER =

The code a not-leader refusal carries in diagnostics.error_code.

"not_leader"
VERSION =

The version of this gem. Distinct from Frame::VERSION, the wire format.

"0.1.0"

Class Method Summary collapse

Class Method Details

.binary(bytes) ⇒ Binary

Parameters:

  • bytes (String, Array<Integer>)

Returns:



43
44
45
# File 'lib/tricoredb/params.rb', line 43

def self.binary(bytes)
  Binary.new(bytes)
end

.connect(**options) ⇒ Client

Shorthand for TriCoreDB::Client.connect.

Returns:



18
19
20
# File 'lib/tricoredb.rb', line 18

def self.connect(**options)
  Client.connect(**options)
end