Module cloudi_service_db_mysql

CloudI MySQL Data Module

.

Copyright © 2009-2014 Michael Truog

Version: 1.5.0 Jan 10 2017 17:56:40 ------------------------------------------------------------------------

Behaviours: cloudi_service.

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

Description

CloudI MySQL Data Module

Data Types

agent()

agent() = cloudi:agent()

common_result()

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

count()

count() = non_neg_integer()

module_response()

module_response(Result) = {{ok, Result}, NewAgent::agent()} | {{error, cloudi:error_reason_sync()}, NewAgent::agent()}

rows()

rows() = [tuple()]

service_name()

service_name() = cloudi:service_name()

timeout_milliseconds()

timeout_milliseconds() = cloudi:timeout_milliseconds()

Function Index

cloudi_service_handle_info/3
cloudi_service_handle_request/11
cloudi_service_init/4
cloudi_service_terminate/3
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/4

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

cloudi_service_terminate/3

cloudi_service_terminate(Reason, Timeout, State) -> any()

equery/4

equery(Agent::agent(), Name::service_name(), Query::string() | binary(), Parameters::list()) -> module_response(any())

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

equery/5

equery(Agent::agent(), Name::service_name(), Query::string() | binary(), Parameters::list(), Timeout::timeout_milliseconds()) -> module_response(any())

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

execute_query/4

execute_query(Agent::agent(), Name::service_name(), Identifier::atom(), Arguments::list()) -> module_response(any())

Execute a query that has already been prepared.

execute_query/5

execute_query(Agent::agent(), Name::service_name(), Identifier::atom(), Arguments::list(), Timeout::timeout_milliseconds()) -> module_response(any())

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

prepare_query/4

prepare_query(Agent::agent(), Name::service_name(), Identifier::atom(), Query::string() | binary()) -> module_response(ok)

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(Agent::agent(), Name::service_name(), Identifier::atom(), Query::string() | binary(), Timeout::timeout_milliseconds()) -> module_response(ok)

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(Agent::agent(), Name::service_name(), Query::string() | binary()) -> module_response(any())

Perform a simple SQL string query.

squery/4

squery(Agent::agent(), Name::service_name(), Query::string() | binary(), Timeout::timeout_milliseconds()) -> module_response(any())

Perform a simple SQL string query with a timeout.

transaction/3

transaction(Agent::agent(), Name::service_name(), QueryList::[string() | binary()]) -> module_response(ok | {error, any()})

A list of SQL simple query for a transaction.

transaction/4

transaction(Agent::agent(), Name::service_name(), QueryList::[string() | binary()], Timeout::timeout_milliseconds()) -> module_response(ok | {error, any()})

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


Generated by EDoc, Jan 10 2017, 17:56:41.