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