Tds v1.2.0 Tds.Protocol View Source

Implements DBConnection behaviour for TDS protocol

Link to this section Summary

Link to this section Types

Link to this type

env() View Source
env() :: %{
  trans: <<_::8>>,
  savepoint: non_neg_integer(),
  collation: Tds.Protocol.Collation.t(),
  packetsize: integer()
}

Link to this type

packet_data() View Source
packet_data() :: binary()

Link to this type

proto() View Source
proto() :: %Tds.Protocol{
  env: env(),
  itcp: term(),
  opts: Keyword.t(),
  query: nil | String.t(),
  result: nil,
  sock: nil | sock(),
  state: state(),
  transaction: transaction(),
  usock: nil | pid()
}

Link to this type

sock() View Source
sock() :: {:gen_tcp | :ssl, pid()}

Link to this type

state() View Source
state() :: :ready | :prelogin | :login | :prepare | :executing

Link to this type

transaction() View Source
transaction() :: nil | :started | :successful | :failed

Link to this section Functions