Tds v2.1.1 Tds.Protocol.Collation View Source

The collation rule is used to specify collation information for character data or metadata describing character data.

This is typically specified as part of the LOGIN7 message or part of a column definition in server results containing character data.

For more information about column definition, see COLMETADATA in MS-TDS.pdf.

Link to this section Summary

Types

Value representing how much bytes is read from binary

t()

Link to this section Types

Value representing how much bytes is read from binary

Link to this type

t()

View Source
t() :: %Tds.Protocol.Collation{
  codepage: String.t() | :RAW,
  col_flags: non_neg_integer(),
  lcid: nil | non_neg_integer(),
  sort_id: non_neg_integer(),
  version: non_neg_integer()
}

Link to this section Functions

Link to this function

decode(arg1)

View Source
decode(binary()) :: {:ok, t()} | {:error, :more} | {:error, any()}
Link to this function

encode(map)

View Source
encode(t()) :: {:ok, <<_::40>>}