Mssqlex v1.0.0 API Reference

Modules

Interface for interacting with MS SQL Server via an ODBC driver for Elixir

Adapter to Erlang’s :odbc module

Implementation of DBConnection behaviour for Mssqlex.ODBC

Implementation of DBConnection.Query for Mssqlex

Result struct returned from any successful query. Its fields are:

  • columns - The names of each column in the result set;
  • rows - The result set. A list of tuples, each tuple corresponding to a row, each element in the tuple corresponds to a column;
  • num_rows - The number of fetched or affected rows;

Type conversions

Exceptions

Defines an error returned from the ODBC adapter.

  • message is the full message returned by ODBC
  • odbc_code is an atom representing the returned SQLSTATE or the string representation of the code if it cannot be translated