aboutsummaryrefslogtreecommitdiffstats
path: root/src/mysqlerl_connection.erl
Commit message (Collapse)AuthorAgeFilesLines
* Don't pass in DB connection params on CLI, but do it after process has spawned.Brian Cully2008-07-281-4/+2
| | | | | This is done when the port initializes, so it will work automagically when the binary dies and can be restarted by the port supervisor.
* Handle timeouts.Brian Cully2008-03-021-1/+1
| | | | | | | | Pass timeout down to port level, and if the communication times out, kill the port and let the supervisor restart it. Also stub in select_count and param_query, conveniently used to test timing out.
* Change supervision heirarchy to allow ports to support:Brian Cully2008-03-021-26/+12
| | | | | 1) Owner process dies - shut down connection cleanly. 2) Port driver dies - restart port driver
* Use pattern match, not guard.Brian Cully2008-03-021-4/+2
|
* Link with owner and shutdown clean if owner dies.Brian Cully2008-03-021-4/+18
|
* Add process owner to state, to allow odbc compatibility.Brian Cully2008-03-021-6/+6
|
* Normalize more code flow.Brian Cully2008-03-011-9/+4
|
* mysqlerl provides the interface for the connection, to avoidBrian Cully2008-03-011-5/+3
| | | | | | trampolining at the cost of some slight non-obviousness. Move protocol to .hrl file as a result.
* Remove extra trampolines.Brian Cully2008-03-011-5/+1
|
* Remove unused defines.Brian Cully2008-03-011-5/+0
|
* Use erlang term encoding for send/recv between c and erlang for maximum ↵Brian Cully2008-03-011-1/+1
| | | | flexibility and code length.
* Use erl_interface instead of custom protocol.Brian Cully2008-03-011-2/+7
|
* Tag messages with type.Brian Cully2008-03-011-18/+5
|
* Crash if we get a bad message.Brian Cully2008-03-011-2/+2
|
* handle_call as dispatcherBrian Cully2008-03-011-9/+26
|
* Initial commitBrian Cully2008-03-011-0/+75