|
42 | 42 | [API Reference](https://mysql-d.github.io/mysql-native/)
|
43 | 43 |
|
44 | 44 | The primary interfaces:
|
45 |
| -- [Connection](https://mysql-d.github.io/mysql-native/mysql.connection.Connection.html): Connection to the server, and querying and setting of server parameters. |
46 |
| -- [MySQLPool](https://mysql-d.github.io/mysql-native/mysql.pool.MySQLPool.html): Connection pool, for Vibe.d users. |
47 |
| -- [exec()](https://mysql-d.github.io/mysql-native/mysql.commands.exec.1.html): Plain old SQL statement that does NOT return rows (like INSERT/UPDATE/CREATE/etc), returns number of rows affected |
48 |
| -- [query()](https://mysql-d.github.io/mysql-native/mysql.commands.query.1.html): Execute an SQL statement that DOES return rows (ie, SELECT) and handle the rows one at a time, as an input range. |
49 |
| -- [queryRow()](https://mysql-d.github.io/mysql-native/mysql.commands.queryRow.1.html): Execute an SQL statement and get the first row. |
50 |
| -- [queryValue()](https://mysql-d.github.io/mysql-native/mysql.commands.queryValue.1.html): Execute an SQL statement and get the first value in the first row. |
51 |
| -- [prepare()](https://mysql-d.github.io/mysql-native/mysql.connection.prepare.html): Create a prepared statement |
52 |
| -- [Prepared](https://mysql-d.github.io/mysql-native/mysql.prepared.Prepared.html): A prepared statement, optionally pass it to the exec/query function in place of an SQL string. |
53 |
| -- [Row](https://mysql-d.github.io/mysql-native/mysql.result.Row.html): One "row" of results, used much like an array of Variant. |
54 |
| -- [ResultRange](https://mysql-d.github.io/mysql-native/mysql.result.ResultRange.html): An input range of rows. Convert to random access with [std.array.array()](https://dlang.org/phobos/std_array.html#.array). |
55 |
| - |
56 |
| -Also note the [MySQL <-> D type mappings tables](https://mysql-d.github.io/mysql-native/mysql.html#details) |
| 45 | +- [Connection](https://mysql-d.github.io/mysql-native/mysql/connection/Connection.html): Connection to the server, and querying and setting of server parameters. |
| 46 | +- [MySQLPool](https://mysql-d.github.io/mysql-native/mysql/pool/MySQLPool.html): Connection pool, for Vibe.d users. |
| 47 | +- [exec()](https://mysql-d.github.io/mysql-native/mysql/commands/exec.html): Plain old SQL statement that does NOT return rows (like INSERT/UPDATE/CREATE/etc), returns number of rows affected |
| 48 | +- [query()](https://mysql-d.github.io/mysql-native/mysql/commands/query.html): Execute an SQL statement that DOES return rows (ie, SELECT) and handle the rows one at a time, as an input range. |
| 49 | +- [queryRow()](https://mysql-d.github.io/mysql-native/mysql/commands/queryRow.html): Execute an SQL statement and get the first row. |
| 50 | +- [queryValue()](https://mysql-d.github.io/mysql-native/mysql/commands/queryValue.html): Execute an SQL statement and get the first value in the first row. |
| 51 | +- [prepare()](https://mysql-d.github.io/mysql-native/mysql/connection/prepare.html): Create a prepared statement |
| 52 | +- [Prepared](https://mysql-d.github.io/mysql-native/mysql/prepared/Prepared.html): A prepared statement, optionally pass it to the exec/query function in place of an SQL string. |
| 53 | +- [Row](https://mysql-d.github.io/mysql-native/mysql/result/Row.html): One "row" of results, used much like an array of Variant. |
| 54 | +- [ResultRange](https://mysql-d.github.io/mysql-native/mysql/result/ResultRange.html): An input range of rows. Convert to random access with [std.array.array()](https://dlang.org/phobos/std_array.html#.array). |
| 55 | + |
| 56 | +Also note the [MySQL <-> D type mappings tables](https://mysql-d.github.io/mysql-native/mysql.html) |
57 | 57 |
|
58 | 58 | Basic example
|
59 | 59 | -------------
|
|
0 commit comments