Commit Graph

131 Commits

Author SHA1 Message Date
An Tao 037b9e7eff
Merge pull request #60 from an-tao/dev
Use the PQSendQuery() function instead of the PQsendQueryParams() function when the number of parameters is 0.
2019-02-25 21:00:52 +08:00
antao 769d645682 Modify the PgConnection class 2019-02-25 17:36:47 +08:00
antao 429490bd78 Modify DbClientImpl 2019-02-24 09:55:26 +08:00
antao 4d46ebed9b Add some comments 2019-02-22 18:00:25 +08:00
antao 70e7089e7d Process the HEAD method request 2019-02-22 14:03:34 +08:00
antao 90e63c1a0f Modify the TransactionImpl class 2019-02-21 20:36:18 +08:00
antao 52f1888a14 Use persisted idle-callback in db connections 2019-02-21 20:00:22 +08:00
antao 15ab5e1558 Use nullptr to clear std::function objects 2019-02-21 15:46:54 +08:00
antao 44416f1456 Optimize db client classes 2019-02-21 13:21:07 +08:00
antao 6d97ea5992 Add r-reference version for the SqlBinder class 2019-02-20 14:18:57 +08:00
antao 84ab5d369e Modify the PgConnection class 2019-02-19 18:52:25 +08:00
antao 6c4ad73f7a Use prepared statement in postgresql connections 2019-02-19 15:06:16 +08:00
an-tao 5629efa910 Fix a bug in the DbClientLockFree class 2019-02-18 23:27:30 +08:00
antao 358e45598b Add lock-free db client class 2019-02-18 18:42:10 +08:00
antao 8e16228458 Reduce the critical region in the handleNewTask() method to improve performance 2019-02-18 14:59:35 +08:00
antao 2370a3f89f Fix a bug in the MysqlConnection class 2019-02-18 14:26:21 +08:00
an-tao 1600cb98fe Modify the number of event loops in the DbClientImpl class 2019-02-18 11:10:30 +08:00
antao 13417edf10 Improve the performance of dbClient 2019-02-17 20:32:16 +08:00
antao 38163a26a6 Modify the interface of the DbClient class 2019-02-16 02:11:30 +08:00
antao 136ab1d460 Modify the interface of the DbClient class 2019-02-16 01:43:04 +08:00
antao 7041783579 Modify code style 2019-02-02 11:34:00 +08:00
antao ad86c8f66e Modify the SpinLock 2019-02-01 00:32:35 +08:00
antao 245faabfce Use the user space spinlock for performance reasons 2019-01-30 12:27:16 +08:00
an-tao cbbee440ea Compatible with older versions of gcc 2019-01-29 22:24:32 +08:00
an-tao d5d90d2f6f Modify code style 2019-01-21 23:59:28 +08:00
an-tao ef389b6ec9 Organize code style 2019-01-21 22:25:20 +08:00
an-tao b20114a9d5 Organize code style 2019-01-21 21:28:46 +08:00
antao a9e9ced331 Use references instead of values in range-based for loop 2019-01-21 17:39:31 +08:00
antao c26f536255 Update the submodule trantor 2019-01-19 13:50:35 +08:00
antao 7661b8ed88 Change the vertion to 0.9.14 2019-01-15 18:25:54 +08:00
an-tao f20b9199e1 Increase the size of the sql command bufferr 2019-01-15 18:09:21 +08:00
antao bbb810949e Modify the DbClientImpl class 2019-01-15 17:55:09 +08:00
antao 7ae8f58bb8 Modify the Result class 2019-01-15 13:21:40 +08:00
antao 0b4fd04228 Modify the genRandomString() function 2019-01-14 17:11:32 +08:00
antao ffbf244b73 MysqlConnection:Automatic reconnection 2019-01-12 22:18:35 +08:00
antao cdbb55643a Update the submodule trantor 2019-01-11 18:17:04 +08:00
antao daff2ec427 Modify the Sqlite3Connection class 2019-01-11 17:24:12 +08:00
antao cd257203f7 Use read-write lock to avoid the race condition of sqlite3 database operation 2019-01-11 15:01:25 +08:00
antao 52dceb45c2 Modify the constructor of the DbClientImpl class 2019-01-10 19:12:33 +08:00
antao 59a0431512 Add a mutex 2019-01-10 17:54:51 +08:00
antao 4e704d398d Make pg connections automatically reconnect 2019-01-10 15:54:25 +08:00
antao 5f108b510d Name threads 2019-01-09 16:23:34 +08:00
an-tao 08300f93c2 Modify the constructor of the DbClientImpl class 2019-01-09 14:47:07 +08:00
antao e1b873ba01 Modify the DbClientImpl class 2019-01-09 13:12:07 +08:00
antao ac90c80710 Use multiple event loops in the db client 2019-01-09 10:46:58 +08:00
antao 937a2fd136 Optimize PostgreSQL client 2019-01-08 19:37:19 +08:00
antao 5ea972e5b3 Modify the signature of the createDbClient() method 2019-01-07 16:26:58 +08:00
antao baa7ea6a0a Modify the db mapper 2019-01-04 16:19:21 +08:00
antao f7b853e96c Update the submodule trantor 2019-01-03 13:31:12 +08:00
antao d8c932218a Move callbacks into lambdas 2018-12-30 15:16:27 +08:00