mirror of
https://github.com/luapower/mysql.git
synced 2025-07-02 00:10:30 +02:00
ability to configure the client library used
This commit is contained in:
11
mysql.md
11
mysql.md
@ -12,6 +12,8 @@ A complete, lightweight ffi binding of the mysql client library.
|
||||
## Summary
|
||||
|
||||
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
|
||||
**[Initialization]**
|
||||
`mysql.config(['mysql'|'mariadb'|libname|clib]) -> mysql`
|
||||
**[Connections]**
|
||||
`mysql.connect(host, [user], [pass], [db], [charset], [port]) -> conn` connect to a mysql server
|
||||
`mysql.connect(options_t) -> conn` connect to a mysql server
|
||||
@ -169,6 +171,14 @@ end
|
||||
print_help'CONCAT%'
|
||||
~~~
|
||||
|
||||
## Initialization
|
||||
|
||||
### `mysql.config(['mysql'|'mariadb'|libname|clib]) -> mysql`
|
||||
|
||||
Load the mysql client library to use (default is 'mysql').
|
||||
This function is called on every module-level function.
|
||||
Calling this function again is a no-op.
|
||||
|
||||
## Connections
|
||||
|
||||
### `mysql.connect(host, [user], [pass], [db], [charset], [port]) -> conn`
|
||||
@ -537,4 +547,3 @@ Instruct the server to dump debug info in the log file. `SUPER` priviledge neede
|
||||
|
||||
* reader function for getting large blobs in chunks using
|
||||
mysql_stmt_fetch_column: `stmt:chunks(i[, bufsize])` or `stmt:read()` ?
|
||||
* support connecting against different runtimes (client_library option)
|
||||
|
Reference in New Issue
Block a user