Module cloudi_service_db_mysql

CloudI MySQL Data Module

.

Copyright © 2009-2014 Michael Truog

Version: 1.3.3 Sep 30 2014 14:12:55 ------------------------------------------------------------------------

Behaviours: cloudi_service.

Authors: Michael Truog (mjtruog [at] gmail (dot) com).

Description

CloudI MySQL Data Module

Data Types

common_result()

common_result() = {updated, count()} | {selected, rows()} | {error, any()}

count()

count() = non_neg_integer()

dispatcher()

dispatcher() = cloudi_service:dispatcher() | cloudi:context()

rows()

rows() = [tuple()]

Function Index

cloudi_service_handle_info/3
cloudi_service_handle_request/11
cloudi_service_init/3
cloudi_service_terminate/2
equery/4

Perform an extended SQL query that does string substitution with '?'s.

.
equery/5

Perform an extended SQL query that does string substitution with '?'s using a timeout.

.
execute_query/4

Execute a query that has already been prepared.

.
execute_query/5

Execute a query that has already been prepared with a timeout.

.
prepare_query/4

Prepare a query with '?'s for dynamic values.

The query can be used in the future with the supplied Identifier atom.
prepare_query/5

Prepare a query with '?'s for dynamic values using a timeout.

The query can be used in the future with the supplied Identifier atom.
squery/3

Perform a simple SQL string query.

.
squery/4

Perform a simple SQL string query with a timeout.

.
transaction/3

A list of SQL simple query for a transaction.

.
transaction/4

A list of SQL simple query for a transaction with a timeout.

.

Function Details

cloudi_service_handle_info/3

cloudi_service_handle_info(Request, State, Dispatcher) -> any()

cloudi_service_handle_request/11

cloudi_service_handle_request(Type, Name, Pattern, RequestInfo, Request, Timeout, Priority, TransId, Pid, State, Dispatcher) -> any()

cloudi_service_init/3

cloudi_service_init(Args, Prefix, Dispatcher) -> any()

cloudi_service_terminate/2

cloudi_service_terminate(X1, State) -> any()

equery/4

equery(Dispatcher::dispatcher(), Name::cloudi_service:service_name(), Query::string() | binary(), Parameters::list()) -> {ok, any()} | {error, any()}

Perform an extended SQL query that does string substitution with '?'s.

equery/5

equery(Dispatcher::dispatcher(), Name::cloudi_service:service_name(), Query::string() | binary(), Parameters::list(), Timeout::cloudi_service:timeout_milliseconds()) -> {ok, any()} | {error, any()}

Perform an extended SQL query that does string substitution with '?'s using a timeout.

execute_query/4

execute_query(Dispatcher::dispatcher(), Name::cloudi_service:service_name(), Identifier::atom(), Arguments::list()) -> {ok, any()} | {error, any()}

Execute a query that has already been prepared.

execute_query/5

execute_query(Dispatcher::dispatcher(), Name::cloudi_service:service_name(), Identifier::atom(), Arguments::list(), Timeout::cloudi_service:timeout_milliseconds()) -> {ok, any()} | {error, any()}

Execute a query that has already been prepared with a timeout.

prepare_query/4

prepare_query(Dispatcher::dispatcher(), Name::cloudi_service:service_name(), Identifier::atom(), Query::string() | binary()) -> {ok, ok} | {error, any()}

Prepare a query with '?'s for dynamic values.

The query can be used in the future with the supplied Identifier atom.

prepare_query/5

prepare_query(Dispatcher::dispatcher(), Name::cloudi_service:service_name(), Identifier::atom(), Query::string() | binary(), Timeout::cloudi_service:timeout_milliseconds()) -> {ok, ok} | {error, any()}

Prepare a query with '?'s for dynamic values using a timeout.

The query can be used in the future with the supplied Identifier atom.

squery/3

squery(Dispatcher::dispatcher(), Name::cloudi_service:service_name(), Query::string() | binary()) -> {ok, any()} | {error, any()}

Perform a simple SQL string query.

squery/4

squery(Dispatcher::dispatcher(), Name::cloudi_service:service_name(), Query::string() | binary(), Timeout::cloudi_service:timeout_milliseconds()) -> {ok, any()} | {error, any()}

Perform a simple SQL string query with a timeout.

transaction/3

transaction(Dispatcher::dispatcher(), Name::cloudi_service:service_name(), QueryList::[string() | binary()]) -> {ok, ok | {error, any()}} | {error, any()}

A list of SQL simple query for a transaction.

transaction/4

transaction(Dispatcher::dispatcher(), Name::cloudi_service:service_name(), QueryList::[string() | binary()], Timeout::cloudi_service:timeout_milliseconds()) -> {ok, ok | {error, any()}} | {error, any()}

A list of SQL simple query for a transaction with a timeout.


Generated by EDoc, Sep 30 2014, 14:12:55.