cinchdb 0.1.8__py3-none-any.whl → 0.1.9__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- cinchdb/managers/tenant.py +7 -3
- {cinchdb-0.1.8.dist-info → cinchdb-0.1.9.dist-info}/METADATA +1 -1
- {cinchdb-0.1.8.dist-info → cinchdb-0.1.9.dist-info}/RECORD +6 -6
- {cinchdb-0.1.8.dist-info → cinchdb-0.1.9.dist-info}/WHEEL +0 -0
- {cinchdb-0.1.8.dist-info → cinchdb-0.1.9.dist-info}/entry_points.txt +0 -0
- {cinchdb-0.1.8.dist-info → cinchdb-0.1.9.dist-info}/licenses/LICENSE +0 -0
cinchdb/managers/tenant.py
CHANGED
@@ -105,9 +105,13 @@ class TenantManager:
|
|
105
105
|
|
106
106
|
conn.commit()
|
107
107
|
|
108
|
-
#
|
109
|
-
with
|
110
|
-
|
108
|
+
# Vacuum the database to reduce size
|
109
|
+
# Must use raw sqlite3 connection with autocommit mode for VACUUM
|
110
|
+
import sqlite3
|
111
|
+
vacuum_conn = sqlite3.connect(str(new_db_path))
|
112
|
+
vacuum_conn.isolation_level = None # Autocommit mode required for VACUUM
|
113
|
+
vacuum_conn.execute("VACUUM")
|
114
|
+
vacuum_conn.close()
|
111
115
|
|
112
116
|
return Tenant(
|
113
117
|
name=tenant_name,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: cinchdb
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.9
|
4
4
|
Summary: A Git-like SQLite database management system with branching and multi-tenancy
|
5
5
|
Project-URL: Homepage, https://github.com/russellromney/cinchdb
|
6
6
|
Project-URL: Documentation, https://russellromney.github.io/cinchdb
|
@@ -35,7 +35,7 @@ cinchdb/managers/index.py,sha256=n9bCXggZP6muJQZXCpTT46JvuvcbbnYgeV3j6iXtTVM,103
|
|
35
35
|
cinchdb/managers/merge_manager.py,sha256=R8S2hLkLJg4hLDpeJTzjVkduZgqPOjXtYgOSJhTXXrE,15690
|
36
36
|
cinchdb/managers/query.py,sha256=pBlbqoovnFsZ36pB7nv8NtzcTFwtT26hp8IlwjIx29Q,7301
|
37
37
|
cinchdb/managers/table.py,sha256=GltELZ465M8JYwZB5xoMDOvyhRYm-HflPJsQQTStD2c,13837
|
38
|
-
cinchdb/managers/tenant.py,sha256=
|
38
|
+
cinchdb/managers/tenant.py,sha256=wBAGox6CYVPKp6y05iBRFUY2xF6QvOGzVa2WMsGPDsE,9081
|
39
39
|
cinchdb/managers/view.py,sha256=v9gYtRufZyxywPKLGvIjvlUXcxYh9CLRArefu9QX6zk,7809
|
40
40
|
cinchdb/models/__init__.py,sha256=cZ-ailJ6qu44Iap5Rq555iB-_w9ufXVDBH3rDH-ojk0,622
|
41
41
|
cinchdb/models/base.py,sha256=7j4rlFTP5K9ZuF8vxwC7lMFEaL7O90NJ47Ig5i7ubcw,1320
|
@@ -49,8 +49,8 @@ cinchdb/models/view.py,sha256=q6j-jYzFJuhRJO87rKt6Uv8hOizHQx8xwoPKoH6XnNY,530
|
|
49
49
|
cinchdb/utils/__init__.py,sha256=yQQhEjndDiB2SUJybUmp9dvEOQKiR-GySe-WiCius5E,490
|
50
50
|
cinchdb/utils/name_validator.py,sha256=dyGX5bjlTFRA9EGrWRQKp6kR__HSV04hLV5VueJs4IQ,4027
|
51
51
|
cinchdb/utils/sql_validator.py,sha256=aWOGlPX0gBkuR6R1EBP2stbP4PHZuI6FUBi2Ljx7JUI,5815
|
52
|
-
cinchdb-0.1.
|
53
|
-
cinchdb-0.1.
|
54
|
-
cinchdb-0.1.
|
55
|
-
cinchdb-0.1.
|
56
|
-
cinchdb-0.1.
|
52
|
+
cinchdb-0.1.9.dist-info/METADATA,sha256=GAGW_oGksTwm_MMCxupXuVTslERomeeGge0KDzr6AoE,6334
|
53
|
+
cinchdb-0.1.9.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
54
|
+
cinchdb-0.1.9.dist-info/entry_points.txt,sha256=VBOIzvnGbkKudMCCmNORS3885QSyjZUVKJQ-Syqa62w,47
|
55
|
+
cinchdb-0.1.9.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
56
|
+
cinchdb-0.1.9.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|