hg
95249889a6
[Code] Add mysql prepared statement support ( #4530 )
...
This adds support for using prepared statements for MySQL queries. It is
intended for use in a database quest API but it can be used in source
with some caveats:
- It uses exceptions for error handling instead of returning a fake
result that needs checked. Usage must be wrapped in try/catch.
- DBcore has a connection mutex which indicates the connection might be
shared with other threads. This mutex is locked for certain stmt
operations in an attempt to make it safe to use with multi threaded
connections.
- Prepared statements should only be used on the main thread since the
internal logging is not synchronized.
- Unlike the current query API which retrieves all results as strings,
results are stored in buffers that represent the db field type.
Getter functions are available to retrieve values as desired types.
2024-11-05 20:12:17 -06:00
..
2023-10-23 22:39:37 -05:00
2024-07-30 09:12:31 -04:00
2023-03-04 17:01:19 -06:00
2024-10-09 02:11:57 -05:00
2023-04-05 12:14:14 -04:00
2023-04-03 16:45:01 -04:00
2024-10-13 17:26:10 -05:00
2023-04-01 12:45:16 -04:00
2023-10-23 22:39:37 -05:00
2023-04-05 12:16:25 -04:00
2024-07-30 16:23:37 -04:00
2023-12-17 19:04:21 -06:00
2023-04-04 00:14:23 -05:00
2024-10-17 01:43:24 -05:00
2015-01-20 01:34:36 -06:00
2023-04-03 16:45:01 -04:00
2015-01-20 01:33:29 -06:00
2023-06-19 01:31:07 -05:00
2020-05-23 23:19:54 -07:00
2021-07-16 21:50:46 -04:00
2022-05-01 10:22:09 -04:00
2019-07-18 00:56:46 -04:00
2024-07-15 08:41:04 -04:00
2024-05-26 15:38:25 -05:00
2024-06-02 04:25:06 -04:00
2024-06-02 04:25:06 -04:00
2023-12-13 18:38:45 -05:00
2023-12-13 18:38:45 -05:00
2024-11-05 20:12:17 -06:00
2020-05-17 18:36:06 -07:00
2020-05-17 18:36:06 -07:00
2015-01-19 04:12:09 -06:00
2024-03-22 23:27:31 -05:00
2020-05-17 18:36:06 -07:00
2024-03-23 19:30:56 -05:00
2024-07-30 16:23:37 -04:00
2024-09-26 18:14:32 -04:00
2024-07-30 16:23:37 -04:00
2024-11-05 20:12:17 -06:00
2024-11-05 20:12:17 -06:00
2024-06-01 18:21:26 -05:00
2024-06-01 18:21:26 -05:00
2022-07-30 21:25:43 -05:00
2022-07-30 21:25:43 -05:00
2024-07-02 21:50:34 -04:00
2024-10-08 18:25:14 -04:00
2016-05-30 06:52:25 -04:00
2019-01-12 20:03:52 -05:00
2015-01-19 04:12:09 -06:00
2024-02-12 02:58:48 -06:00
2024-10-02 20:20:13 -05:00
2020-05-17 18:36:06 -07:00
2020-05-17 18:36:06 -07:00
2024-07-31 18:28:45 -04:00
2022-07-14 02:39:01 -05:00
2023-04-01 22:55:40 -04:00
2024-07-30 16:23:37 -04:00
2023-04-05 11:17:29 -04:00
2023-04-05 11:17:29 -04:00
2017-03-28 15:52:51 -05:00
2015-01-27 21:12:44 -08:00
2023-04-05 12:14:01 -04:00
2023-04-05 12:14:01 -04:00
2022-09-28 03:42:09 -05:00
2022-09-28 03:42:09 -05:00
2022-09-28 03:42:09 -05:00
2022-07-14 02:10:52 -05:00
2022-09-28 03:42:09 -05:00
2015-01-19 04:12:09 -06:00
2023-04-05 12:14:22 -04:00
2023-04-05 12:14:22 -04:00
2024-10-21 23:48:43 -05:00
2024-10-21 23:48:43 -05:00
2020-05-17 18:36:06 -07:00
2020-05-17 18:36:06 -07:00
2024-03-02 15:18:37 -06:00
2024-01-22 17:34:48 -05:00
2024-03-02 15:18:37 -06:00
2023-11-18 14:23:04 -06:00
2023-11-18 14:23:04 -06:00
2018-04-27 21:41:52 -04:00
2018-04-27 21:41:52 -04:00
2022-07-14 02:10:52 -05:00
2021-03-18 23:42:41 -05:00
2015-01-19 04:12:09 -06:00
2020-05-17 18:36:06 -07:00
2023-12-22 21:34:55 -06:00
2024-02-04 10:38:38 -05:00
2024-01-13 01:21:40 -06:00
2024-02-11 02:42:25 -06:00
2023-04-04 00:14:23 -05:00
2020-05-17 18:36:06 -07:00
2020-05-17 18:36:06 -07:00
2016-05-25 02:38:06 -04:00
2024-05-09 00:53:36 -05:00
2024-05-09 00:53:36 -05:00
2015-01-19 04:12:09 -06:00
2024-02-12 02:58:48 -06:00
2024-07-30 16:23:37 -04:00
2024-07-30 16:23:37 -04:00
2022-07-14 02:10:52 -05:00
2020-05-17 18:36:06 -07:00
2024-08-26 20:59:43 -05:00
2022-07-06 22:01:58 -05:00
2022-09-28 04:08:59 -05:00
2022-09-28 04:08:59 -05:00
2023-08-06 15:32:25 -04:00
2024-05-26 15:38:25 -05:00
2020-05-09 22:37:35 -04:00
2024-08-26 21:58:07 -05:00
2024-08-26 21:58:07 -05:00
2020-01-16 19:03:36 -05:00
2019-07-07 03:13:04 -05:00
2020-05-17 18:36:06 -07:00
2020-05-17 18:36:06 -07:00
2020-01-16 17:17:31 -05:00
2024-02-05 15:17:53 -06:00
2022-07-14 02:10:52 -05:00
2020-05-17 18:36:06 -07:00
2022-12-20 21:52:36 -06:00
2022-09-28 04:08:59 -05:00
2020-05-17 18:36:06 -07:00
2023-03-22 12:22:03 -04:00
2019-09-01 23:10:49 -05:00
2023-07-03 19:20:34 -05:00
2023-07-03 19:20:34 -05:00
2015-01-19 04:12:09 -06:00
2016-05-25 13:46:47 -04:00
2023-06-19 11:55:32 -05:00
2023-06-19 11:55:32 -05:00
2022-07-27 09:00:09 -05:00
2024-11-05 20:12:17 -06:00
2024-11-05 20:12:17 -06:00
2022-01-02 21:06:31 -06:00
2022-01-02 21:06:31 -06:00
2022-09-28 03:42:09 -05:00
2016-09-29 22:21:39 -07:00
2016-10-29 23:23:04 -07:00
2016-10-29 23:23:04 -07:00
2015-01-19 04:12:09 -06:00
2015-01-20 01:34:42 -06:00
2024-10-21 23:48:43 -05:00
2024-10-21 23:48:43 -05:00
2022-05-15 22:14:16 -04:00
2022-05-15 22:14:16 -04:00
2023-10-23 22:39:37 -05:00
2023-10-23 22:39:37 -05:00
2023-04-01 22:55:40 -04:00
2020-05-09 14:40:33 -05:00
2023-10-23 22:39:37 -05:00
2023-10-23 22:39:37 -05:00
2023-04-01 22:55:40 -04:00
2023-04-01 22:55:40 -04:00
2023-03-22 12:22:03 -04:00
2024-01-06 22:18:21 -06:00
2024-03-28 15:32:02 -05:00
2024-03-28 15:32:02 -05:00
2023-10-13 21:42:27 -05:00
2021-07-16 21:50:46 -04:00
2024-09-07 18:29:46 -05:00
2024-03-01 23:11:34 -05:00
2024-10-31 08:13:16 -04:00
2024-03-13 20:27:44 -04:00
2024-03-13 20:27:44 -04:00
2023-03-17 11:19:59 -04:00
2018-07-02 22:01:17 -04:00
2019-07-10 14:33:33 -04:00
2023-01-24 12:38:26 -06:00
2024-04-20 21:15:56 -05:00
2019-04-16 01:09:25 -07:00
2023-11-05 14:05:15 -05:00
2024-07-30 16:23:37 -04:00
2024-03-31 22:41:15 -05:00
2023-04-05 11:22:42 -04:00
2024-10-08 18:25:14 -04:00
2024-10-08 18:25:14 -04:00
2024-06-01 16:09:34 -05:00
2024-06-01 16:09:34 -05:00
2024-10-02 20:07:19 -05:00
2024-03-24 13:04:26 -04:00
2024-07-07 00:53:46 -04:00
2024-07-07 00:53:46 -04:00
2023-03-04 17:01:19 -06:00
2022-07-14 02:10:52 -05:00
2024-05-26 15:38:25 -05:00
2024-05-26 15:38:25 -05:00
2023-03-20 12:06:10 -04:00
2023-03-20 12:06:10 -04:00
2024-02-12 02:58:48 -06:00
2017-04-01 03:51:46 -05:00
2019-09-01 23:54:24 -05:00
2016-10-16 21:36:39 -04:00
2024-02-12 02:58:48 -06:00
2019-09-01 23:41:26 -05:00
2023-02-12 21:31:01 -06:00
2018-07-14 17:41:42 -04:00
2023-04-05 11:23:37 -04:00
2019-10-13 18:49:16 -07:00
2024-10-22 00:02:14 -05:00
2024-04-20 21:18:00 -05:00
2024-04-20 21:18:00 -05:00