Commit Graph

146 Commits

Author SHA1 Message Date
antao 9703439b8d Optimize database operations 2019-04-10 23:27:44 +08:00
antao 6af398ff5a Add FastDbClient instances into the main event loop 2019-04-07 13:49:35 +08:00
antao ade1e5d31a Update LICENSE 2019-04-05 18:46:19 +08:00
an-tao 5b55a8f9bf Fix an issue that occur on incorrect SQL 2019-03-27 15:32:23 +08:00
antao 353790f90b Use shared_ptr to store sql query in cache in the DbClientLockFree class 2019-03-23 17:32:03 +08:00
antao 6adff3469c Modify mysql client 2019-03-23 15:32:34 +08:00
antao 894b634b22 Adjust the execution order inside the run() method
Modify the configuration of fast database clients
Modify the ConfigLoader class
2019-03-23 11:26:21 +08:00
antao db72840fc2 Move utility functions to the utils namespace 2019-03-21 17:47:45 +08:00
zhangjunjun a580f89c8b Add query test in db_test.cc for orm_lib 2019-03-20 21:56:56 +08:00
antao c7011b85f4 Modify the PgConnection class 2019-03-08 16:19:13 +08:00
antao 801cb8aa35 Modify some database classes 2019-03-07 11:56:20 +08:00
antao b39dd52a87 Modify some comments 2019-03-06 15:57:05 +08:00
antao 56ae5f459f Do some optimization 2019-03-02 12:25:08 +08:00
antao 620d875646 Add an asynchronous interface for transaction creation 2019-02-26 15:15:23 +08:00
antao 1ca5e3cde6 Use multiple database connections in the DbClientLockFree class 2019-02-26 09:50:51 +08:00
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