Tds v2.1.0 Tds View Source

Link to this section Summary

Link to this section Functions

Link to this function

close(pid, query, opts \\ [])

View Source
Link to this function

close!(pid, query, opts \\ [])

View Source

Decodes MS uniqueidentifier binary to its string representation

Same as decode_uuid/1 but raises ArgumentError if value is invalid

Link to this function

encode_uuid(value)

View Source
encode_uuid(any()) :: :error | {:ok, <<_::128>>}

Encodes uuid string into MS uniqueidentifier binary

Link to this function

encode_uuid!(value)

View Source
encode_uuid!(any()) :: <<_::128>>

Same as encode_uuid/1 but raises ArgumentError if value is invalid

Link to this function

execute(pid, query, params, opts \\ [])

View Source
Link to this function

execute!(pid, query, params, opts \\ [])

View Source
Link to this function

generate_uuid()

View Source
generate_uuid() :: <<_::128>>

Generates a version 4 (random) UUID in the MS uniqueidentifier binary format.

Link to this function

json_library()

View Source
json_library() :: module()

Returns the configured JSON library.

To customize the JSON library, include the following in your config/config.exs:

config :myxql, json_library: SomeJSONModule

Defaults to Jason.

Link to this function

prepare(pid, statement, opts \\ [])

View Source
Link to this function

prepare!(pid, statement, opts \\ [])

View Source
Link to this function

query(pid, statement, params, opts \\ [])

View Source
Link to this function

query!(pid, statement, params, opts \\ [])

View Source
Link to this function

rollback(conn, any)

View Source
rollback(DBConnection.t(), reason :: any()) :: no_return()

See DBConnection.rollback/2.

Link to this function

transaction(pid, fun, opts \\ [])

View Source