Skip to content

Commit ed62f26

Browse files
authored
merge with master (#2048)
1 parent a742a82 commit ed62f26

File tree

5 files changed

+19
-3
lines changed

5 files changed

+19
-3
lines changed

.github/workflows/codespell.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v4
1414
- run: pip install --user codespell[toml]
15-
- run: codespell --ignore-words-list="coo,folx,ot,statics,xwindows,indexs,NotIn" --skip="*.csp"
15+
- run: codespell --ignore-words-list="coo,folx,ot,statics,xwindows,NotIn," --skip="*.csp"

lib/src/HttpAppFrameworkImpl.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -959,7 +959,7 @@ void HttpAppFrameworkImpl::addDbClient(
959959
userName,
960960
password,
961961
connectionNum,
962-
userName,
962+
name,
963963
isFast,
964964
characterSet,
965965
timeout,

lib/tests/integration_test/server/a-directory/page.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ <h2 id="a-very-simple-example">A very simple example</h2>
115115
}
116116
```</p>
117117

118-
<p><strong>Most of the above programs can be automatically generated by the command line tool <code>drogon_ctl</code> provided by drogon</strong> (The command <code>drogon_ctl create controller TestCtrl</code>). All the user needs to do is add their own business logic. In the example, the controller returns a <code>Hello, world!</code> string when the client accesses the <code>http://ip/test</code> URL.</p>
118+
<p><strong>Most of the above programs can be automatically generated by the command line tool <code>drogon_ctl</code> provided by drogon</strong> (The command is <code>drogon_ctl create controller TestCtrl</code>). All the user needs to do is add their own business logic. In the example, the controller returns a <code>Hello, world!</code> string when the client accesses the <code>http://ip/test</code> URL.</p>
119119

120120
<p>For JSON format response, we create the controller as follows:</p>
121121

orm_lib/tests/CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ add_executable(conn_options_test
4141
conn_options_test.cc
4242
)
4343

44+
add_executable(db_api_test
45+
db_api_test.cc
46+
)
47+
4448
set_property(TARGET db_test PROPERTY CXX_STANDARD ${DROGON_CXX_STANDARD})
4549
set_property(TARGET db_test PROPERTY CXX_STANDARD_REQUIRED ON)
4650
set_property(TARGET db_test PROPERTY CXX_EXTENSIONS OFF)
@@ -56,3 +60,7 @@ set_property(TARGET db_listener_test PROPERTY CXX_EXTENSIONS OFF)
5660
set_property(TARGET conn_options_test PROPERTY CXX_STANDARD ${DROGON_CXX_STANDARD})
5761
set_property(TARGET conn_options_test PROPERTY CXX_STANDARD_REQUIRED ON)
5862
set_property(TARGET conn_options_test PROPERTY CXX_EXTENSIONS OFF)
63+
64+
set_property(TARGET db_api_test PROPERTY CXX_STANDARD ${DROGON_CXX_STANDARD})
65+
set_property(TARGET db_api_test PROPERTY CXX_STANDARD_REQUIRED ON)
66+
set_property(TARGET db_api_test PROPERTY CXX_EXTENSIONS OFF)

test.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,14 @@ function do_db_test()
222222
exit -1
223223
fi
224224
fi
225+
if [ -f "./orm_lib/tests/db_api_test" ]; then
226+
echo "Test getDbClient() api"
227+
./orm_lib/tests/db_api_test -s
228+
if [ $? -ne 0 ]; then
229+
echo "Error in testing"
230+
exit -1
231+
fi
232+
fi
225233
if [ -f "./nosql_lib/redis/tests/redis_test" ]; then
226234
echo "Test redis"
227235
./nosql_lib/redis/tests/redis_test -s

0 commit comments

Comments
 (0)