Module connection_factory

The module is a factory of resources - factory of mysql connections.

Copyright © 2010-2014 Alexei Krasnopolski

Version: 1.2.4

Introduced in: 2012-12-11

Behaviours: resource_factory.

Authors: Alexei Krasnopolski (krasnop@bellsouth.net) [web site: http://krasnopolski.org/].

Description

The module is a factory of resources - factory of mysql connections.

Function Index

activate/2Some action during activation of connection before moving resource from pool to client - no implementation yet.
create/1Creates new connection to MySQL server.
destroy/2Destroyes resource - connection to server.
passivate/2Some action during passivation of connection after returning resource from use to pool - no implementation for awhile.
validate/2Validate connection: if connection is alive returns true, otherwise - false.

Function Details

create/1

create(Resource_metadata::term()) -> pid()

Creates new connection to MySQL server.

destroy/2

destroy(Resource_metadata::term(), _Resource::pid()) -> noreturn()

Destroyes resource - connection to server.

validate/2

validate(Resource_metadata::term(), _Resource::pid()) -> boolean()

Validate connection: if connection is alive returns true, otherwise - false.

activate/2

activate(Resource_metadata::term(), _Resource::pid()) -> ok

Some action during activation of connection before moving resource from pool to client - no implementation yet.

passivate/2

passivate(Resource_metadata::term(), _Resource::pid()) -> ok

Some action during passivation of connection after returning resource from use to pool - no implementation for awhile.


Generated by EDoc, Mar 19 2014, 23:27:00.