You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-14Lines changed: 8 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,14 +18,15 @@ Easy to use , buy may not the best practice for efficiency concern.
18
18
pip install cx_Oracle_async
19
19
20
20
## Usage
21
-
- Nearly all the same with aiomysql (with very limited functions of cource).
21
+
- Nearly all the same with aiomysql (with very limited functions) , you can do execute , executemany , commit statement etc.
22
22
- If you're connecting to database which is on a different machine from python process , you need to install oracle client module in order to use this library. Check [cx-Oracle's installation guide](https://cx-oracle.readthedocs.io/en/latest/user_guide/installation.html) for further information.
23
23
- No automaticly date format transition built-in.
24
+
- AQ feature newly added , [docs here](https://github.com/GoodManWEN/cx_Oracle_async/blob/main/docs/temporary_document_of_AQ.md).
24
25
25
26
## Performance
26
27
query type | asynchronous multithreading | synchronous multithreading | synchronous single thread
27
28
-|-|-|-
28
-
fast single line query | 4864.96 q/s | 5859.20 q/s | 8209.536 q/s
29
+
fast single line query | 6259.80 q/s | 28906.93 q/s | 14805.61 q/s
29
30
single line insertion | N/A (todo) | N/A | N/A
30
31
31
32
*/\* Test platform: \*/*<br>
@@ -36,8 +37,8 @@ single line insertion | N/A (todo) | N/A | N/A
36
37
37
38
## Examples
38
39
Before running examples , make sure you've already installed a [oracle client](https://github.com/GoodManWEN/cx_Oracle_async#usage) on your machine.
39
-
```Python3
40
-
#all_usages.py
40
+
```Python
41
+
#basic_usages.py
41
42
import asyncio
42
43
import cx_Oracle_async
43
44
@@ -80,23 +81,16 @@ if __name__ == '__main__':
80
81
```
81
82
82
83
Or you can connect to database via makedsn style:
83
-
```Python3
84
+
```Python
84
85
# makedsn.py
85
86
import asyncio
86
87
import cx_Oracle_async
87
88
88
89
asyncdefmain():
89
90
# same api as cx_Oracle.makedsn with 4 limited parameters(host , port , sid , service_name).
0 commit comments