Copyright © 2010-2014 Alexei Krasnopolski
Version: 1.2.8
Introduced in: 2012-12-11
Behaviours: resource_factory.
Authors: Alexei Krasnopolski (krasnop@bellsouth.net) [web site: http://krasnopolski.org/].
create/1 | Creates new connection to MySQL server. |
destroy/2 | Destroyes resource - connection to server. |
validate/2 | Validate connection: if connection is alive returns true, otherwise - false. |
activate/2 | Some action during activation of connection before moving resource from pool to client. |
passivate/2 | Some action during passivation of connection after returning resource from use to pool. |
create(Resource_metadata::term()) -> pid()
Creates new connection to MySQL server.
destroy(Resource_metadata::term(), _Resource::pid()) -> noreturn()
Destroyes resource - connection to server.
validate(Resource_metadata::term(), _Resource::pid()) -> boolean()
Validate connection: if connection is alive returns true, otherwise - false.
activate(Resource_metadata::term(), _Resource::pid()) -> ok
Some action during activation of connection before moving resource from pool to client.
passivate(Resource_metadata::term(), _Resource::pid()) -> ok
Some action during passivation of connection after returning resource from use to pool.
Generated by EDoc