Commit Graph

191 Commits

Author SHA1 Message Date
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
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
an-tao
851e6d6647 Fix compiler warnings in Linux 2018-12-29 18:12:13 +08:00
antao
36f7f3331b Merge branch 'sqlite' of https://github.com/an-tao/drogon into sqlite 2018-12-29 18:02:56 +08:00
antao
926ac48b49 Modify drogon_ctl 2018-12-29 18:02:39 +08:00
an-tao
3f5b492858 Fix a bug in Linux 2018-12-29 17:36:41 +08:00
antao
3dc6e6c6c1 Modify eventloop in the Sqlite3Connection class 2018-12-29 16:56:50 +08:00
antao
787120dda4 Add support for sqlite3 models 2018-12-29 13:12:36 +08:00
antao
99a03159c5 Fix bugs of the Sqlite3ResultImpl class 2018-12-29 13:12:36 +08:00
antao
6db8df6bc0 Sqlite3 works, needs more testing 2018-12-29 13:12:36 +08:00
antao
161a964238 Start adding sqlite3 support 2018-12-29 13:12:36 +08:00
antao
fb5bbde277 Modify something to improve performance 2018-12-24 15:06:05 +08:00
antao
53b3eb217f Debug postgresql connections 2018-12-11 15:06:04 +08:00
antao
7132cb32ca Fix a bug of Mapper<> 2018-12-11 13:58:17 +08:00
antao
ed8d05de33 Add the callback for a transaction commit 2018-12-10 18:33:14 +08:00
antao
d242b05cb9 Modify file comments 2018-12-07 15:53:31 +08:00
antao
032aa19a53 Modify file formats and comments 2018-12-07 15:50:18 +08:00
antao
948832640a Update Mapper.h 2018-12-06 18:06:17 +08:00
antao
e8fcc49c37 Add the 'like' to the Criteria class 2018-12-05 09:50:36 +08:00
an-tao
56c2cfb609 Update tests 2018-12-03 18:12:19 +08:00
an-tao
ffbdac36c9 Modify cmake files for the mariadb database on linux 2018-12-03 17:03:45 +08:00
antao
52546b7846 Modify the model generator for time-type columns 2018-12-03 10:13:31 +08:00
antao
458d14591b Modify some strings 2018-12-03 10:13:31 +08:00
antao
25548eaaa0 The mysql client works 2018-12-03 10:13:31 +08:00
antao
aa1f8d4acb Update MysqlConnection.h 2018-12-03 10:13:31 +08:00
antao
8ed5e19f46 Modify model creation 2018-12-03 10:13:31 +08:00
antao
5b26d4587b Fix a bug of the Transaction class 2018-12-03 10:13:31 +08:00
antao
cba0252bc1 Add FindMySQL.cmake to the project generated by drogon_ctl 2018-12-03 10:13:31 +08:00
antao
a0bdcdaae3 Fix a bug of the MysqlResultImpl 2018-12-03 10:13:31 +08:00
antao
6dec023099 Update SqlBinder 2018-12-03 10:13:31 +08:00
antao
64411fa521 Remove mysql stmt execution 2018-12-03 10:13:31 +08:00
antao
de3d3ae3d6 Update the test 2018-12-03 10:13:31 +08:00
antao
4bfe8250e9 Mysql works with 'stmt' 2018-12-03 10:13:31 +08:00
antao
cfe55d5495 Temporary commit 2018-12-03 10:13:31 +08:00
antao
17e765501b The mysql_real_query_start() method works 2018-12-03 10:13:31 +08:00
antao
7c907de7a6 Add the MysqlResultImpl class 2018-12-03 10:13:31 +08:00
antao
d92ce4cf9f Send query 2018-12-03 10:13:31 +08:00
antao
a661d01755 The non-blocking mysql_stmt_prepare works 2018-12-03 10:13:31 +08:00
antao
669c446656 Modify the connection to the Mysql server 2018-12-03 10:13:31 +08:00
antao
6d5b1af726 Update mysql connection 2018-12-03 10:13:31 +08:00
antao
efbf5b4ad5 Add the MysqlConnection class 2018-12-03 10:13:31 +08:00
antao
bd8f32281a Add the #pragma once to the ResultImpl.h file 2018-11-29 19:09:34 +08:00