1
0
mirror of https://github.com/luapower/mysql.git synced 2025-07-02 00:10:30 +02:00

small fixes / documentation

This commit is contained in:
Cosmin Apreuetsei
2014-09-10 18:32:38 +03:00
parent 63beb9ab35
commit 439f6bc64f
3 changed files with 70 additions and 47 deletions

View File

@ -51,6 +51,7 @@ A complete, lightweight ffi binding of the mysql client library.
`conn:more_results() -> true | false` are there more result sets?
**[Prepared statements]**
`conn:prepare(query) -> stmt` prepare a query for multiple executions
`stmt:param_count() -> n` number of params
`stmt:exec()` execute a prepared statement
`stmt:store_result()` store all the resulted rows to the client
`stmt:fetch() -> true | false | true, 'truncated'` fetch the next row
@ -322,6 +323,10 @@ The flow for prepared statements is like this:
Prepare a query for multiple execution and return a statement object.
## `stmt:param_count() -> n`
Number of parameters.
## `stmt:exec()`
Execute a prepared statement.