Commit 0c05343
Add PEP-249 dbapi module (#160)
Implemented dbapi2 interface in dbapi module. See [1] for details.
The main motivation for the module creation was the integration Django with
Tarantool database through django-tarantool database backend [2] which
requires dbapi connector to the database.
All the optional extensions and methods were ignored because Django does not
require them. Anyway, fell free to suggest its implementation as needed.
Unit tests were taken from dbapi-compliance [3] package.
Interactive transactions are not currently supported by Tarantool and
theirs implementation will be added in the connector when the feature is stable
it Tarantool itself.
[1] https://www.python.org/dev/peps/pep-0249/
[2] https://github.com/artembo/django-tarantool
[3] https://github.com/baztian/dbapi-compliance/
Co-authored-by: Denis Ignatenko <[email protected]>1 parent 29184e0 commit 0c05343
File tree
5 files changed
+371
-15
lines changed- tarantool
5 files changed
+371
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
| |||
50 | 49 | | |
51 | 50 | | |
52 | 51 | | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
58 | 64 | | |
| 65 | + | |
59 | 66 | | |
60 | 67 | | |
61 | 68 | | |
| |||
77 | 84 | | |
78 | 85 | | |
79 | 86 | | |
80 | | - | |
| 87 | + | |
| 88 | + | |
81 | 89 | | |
82 | 90 | | |
83 | 91 | | |
84 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
85 | 101 | | |
86 | 102 | | |
87 | 103 | | |
| |||
92 | 108 | | |
93 | 109 | | |
94 | 110 | | |
| 111 | + | |
95 | 112 | | |
96 | 113 | | |
97 | 114 | | |
| |||
124 | 141 | | |
125 | 142 | | |
126 | 143 | | |
| 144 | + | |
127 | 145 | | |
128 | 146 | | |
129 | 147 | | |
| |||
261 | 279 | | |
262 | 280 | | |
263 | 281 | | |
264 | | - | |
| 282 | + | |
265 | 283 | | |
266 | 284 | | |
267 | 285 | | |
| |||
299 | 317 | | |
300 | 318 | | |
301 | 319 | | |
302 | | - | |
303 | 320 | | |
304 | 321 | | |
305 | 322 | | |
| |||
446 | 463 | | |
447 | 464 | | |
448 | 465 | | |
449 | | - | |
| 466 | + | |
450 | 467 | | |
451 | 468 | | |
452 | 469 | | |
| |||
460 | 477 | | |
461 | 478 | | |
462 | 479 | | |
463 | | - | |
| 480 | + | |
464 | 481 | | |
465 | 482 | | |
466 | 483 | | |
| |||
489 | 506 | | |
490 | 507 | | |
491 | 508 | | |
492 | | - | |
| 509 | + | |
493 | 510 | | |
494 | 511 | | |
495 | 512 | | |
| |||
805 | 822 | | |
806 | 823 | | |
807 | 824 | | |
808 | | - | |
| 825 | + | |
0 commit comments