Mssqlex v0.0.1 Mssqlex.ODBC

Adapter to Erlang’s :odbc module.

This module is a GenServer that handles communication between Elixir and Erlang’s :odbc module. Transformations are kept to a minimum, primarily just translating binaries to charlists and vice versa.

It is used by Mssqlex.Protocol and should not generally be accessed directly.

Summary

Functions

Sends a parametrized query to the ODBC driver

Starts the connection process to the ODBC driver

Functions

query(pid, statement, params)
query(pid, binary, Keyword.t) ::
  {:selected, [binary], [tuple] | {:updated, non_neg_integer}} |
  {:error, Exception.t}

Sends a parametrized query to the ODBC driver.

Interface to :odbc.param_query/3. See Erlang’s ODBC guide for usage details and examples.

start_link(conn_str, opts)
start_link(binary, Keyword.t) :: {:ok, pid}

Starts the connection process to the ODBC driver.

conn_str should be a connection string in the format required by your ODBC driver. opts will be passed verbatim to :odbc.connect/2.