|
| 1 | +# Comparing `tmp/django_d1db-0.0.3.tar.gz` & `tmp/django_d1db-0.0.4.tar.gz` |
| 2 | + |
| 3 | +## filetype from file(1) |
| 4 | + |
| 5 | +```diff |
| 6 | +@@ -1 +1 @@ |
| 7 | +-gzip compressed data, was "django_d1db-0.0.3.tar", last modified: Mon May 20 17:28:25 2024, max compression |
| 8 | ++gzip compressed data, was "django_d1db-0.0.4.tar", last modified: Mon May 20 21:47:04 2024, max compression |
| 9 | +``` |
| 10 | + |
| 11 | +## Comparing `django_d1db-0.0.3.tar` & `django_d1db-0.0.4.tar` |
| 12 | + |
| 13 | +### file list |
| 14 | + |
| 15 | +```diff |
| 16 | +@@ -1,21 +1,21 @@ |
| 17 | +-drwxr-xr-x 0 gmassadas (502) staff (20) 0 2024-05-20 17:28:25.594466 django_d1db-0.0.3/ |
| 18 | +--rw-r--r-- 0 gmassadas (502) staff (20) 1073 2024-05-20 16:10:54.000000 django_d1db-0.0.3/LICENSE |
| 19 | +--rw-r--r-- 0 gmassadas (502) staff (20) 1563 2024-05-20 17:28:25.594038 django_d1db-0.0.3/PKG-INFO |
| 20 | +--rw-r--r-- 0 gmassadas (502) staff (20) 771 2024-05-20 17:09:44.000000 django_d1db-0.0.3/README.md |
| 21 | +-drwxr-xr-x 0 gmassadas (502) staff (20) 0 2024-05-20 17:28:25.591341 django_d1db-0.0.3/django_d1/ |
| 22 | +--rw-r--r-- 0 gmassadas (502) staff (20) 0 2024-05-19 10:45:59.000000 django_d1db-0.0.3/django_d1/__init__.py |
| 23 | +--rw-r--r-- 0 gmassadas (502) staff (20) 2685 2024-05-20 17:27:20.000000 django_d1db-0.0.3/django_d1/base.py |
| 24 | +--rw-r--r-- 0 gmassadas (502) staff (20) 140 2024-05-20 16:15:05.000000 django_d1db-0.0.3/django_d1/client.py |
| 25 | +--rw-r--r-- 0 gmassadas (502) staff (20) 150 2024-05-20 16:12:43.000000 django_d1db-0.0.3/django_d1/creation.py |
| 26 | +--rw-r--r-- 0 gmassadas (502) staff (20) 5222 2024-05-20 16:10:01.000000 django_d1db-0.0.3/django_d1/database.py |
| 27 | +--rw-r--r-- 0 gmassadas (502) staff (20) 738 2024-05-20 17:18:25.000000 django_d1db-0.0.3/django_d1/features.py |
| 28 | +--rw-r--r-- 0 gmassadas (502) staff (20) 175 2024-05-20 16:18:30.000000 django_d1db-0.0.3/django_d1/introspection.py |
| 29 | +--rw-r--r-- 0 gmassadas (502) staff (20) 2470 2024-05-20 16:20:43.000000 django_d1db-0.0.3/django_d1/operations.py |
| 30 | +--rw-r--r-- 0 gmassadas (502) staff (20) 415 2024-05-20 17:07:10.000000 django_d1db-0.0.3/django_d1/schema.py |
| 31 | +-drwxr-xr-x 0 gmassadas (502) staff (20) 0 2024-05-20 17:28:25.593565 django_d1db-0.0.3/django_d1db.egg-info/ |
| 32 | +--rw-r--r-- 0 gmassadas (502) staff (20) 1563 2024-05-20 17:28:25.000000 django_d1db-0.0.3/django_d1db.egg-info/PKG-INFO |
| 33 | +--rw-r--r-- 0 gmassadas (502) staff (20) 369 2024-05-20 17:28:25.000000 django_d1db-0.0.3/django_d1db.egg-info/SOURCES.txt |
| 34 | +--rw-r--r-- 0 gmassadas (502) staff (20) 1 2024-05-20 17:28:25.000000 django_d1db-0.0.3/django_d1db.egg-info/dependency_links.txt |
| 35 | +--rw-r--r-- 0 gmassadas (502) staff (20) 10 2024-05-20 17:28:25.000000 django_d1db-0.0.3/django_d1db.egg-info/top_level.txt |
| 36 | +--rw-r--r-- 0 gmassadas (502) staff (20) 785 2024-05-20 17:28:09.000000 django_d1db-0.0.3/pyproject.toml |
| 37 | +--rw-r--r-- 0 gmassadas (502) staff (20) 38 2024-05-20 17:28:25.594562 django_d1db-0.0.3/setup.cfg |
| 38 | ++drwxr-xr-x 0 gmassadas (502) staff (20) 0 2024-05-20 21:47:04.723789 django_d1db-0.0.4/ |
| 39 | ++-rw-r--r-- 0 gmassadas (502) staff (20) 1073 2024-05-20 16:10:54.000000 django_d1db-0.0.4/LICENSE |
| 40 | ++-rw-r--r-- 0 gmassadas (502) staff (20) 1563 2024-05-20 21:47:04.723010 django_d1db-0.0.4/PKG-INFO |
| 41 | ++-rw-r--r-- 0 gmassadas (502) staff (20) 771 2024-05-20 17:09:44.000000 django_d1db-0.0.4/README.md |
| 42 | ++drwxr-xr-x 0 gmassadas (502) staff (20) 0 2024-05-20 21:47:04.719098 django_d1db-0.0.4/django_d1/ |
| 43 | ++-rw-r--r-- 0 gmassadas (502) staff (20) 0 2024-05-19 10:45:59.000000 django_d1db-0.0.4/django_d1/__init__.py |
| 44 | ++-rw-r--r-- 0 gmassadas (502) staff (20) 2674 2024-05-20 20:58:52.000000 django_d1db-0.0.4/django_d1/base.py |
| 45 | ++-rw-r--r-- 0 gmassadas (502) staff (20) 140 2024-05-20 17:29:56.000000 django_d1db-0.0.4/django_d1/client.py |
| 46 | ++-rw-r--r-- 0 gmassadas (502) staff (20) 150 2024-05-20 17:29:56.000000 django_d1db-0.0.4/django_d1/creation.py |
| 47 | ++-rw-r--r-- 0 gmassadas (502) staff (20) 5219 2024-05-20 20:46:35.000000 django_d1db-0.0.4/django_d1/database.py |
| 48 | ++-rw-r--r-- 0 gmassadas (502) staff (20) 1277 2024-05-20 21:46:50.000000 django_d1db-0.0.4/django_d1/features.py |
| 49 | ++-rw-r--r-- 0 gmassadas (502) staff (20) 175 2024-05-20 17:29:56.000000 django_d1db-0.0.4/django_d1/introspection.py |
| 50 | ++-rw-r--r-- 0 gmassadas (502) staff (20) 2719 2024-05-20 21:42:30.000000 django_d1db-0.0.4/django_d1/operations.py |
| 51 | ++-rw-r--r-- 0 gmassadas (502) staff (20) 415 2024-05-20 17:29:56.000000 django_d1db-0.0.4/django_d1/schema.py |
| 52 | ++drwxr-xr-x 0 gmassadas (502) staff (20) 0 2024-05-20 21:47:04.722125 django_d1db-0.0.4/django_d1db.egg-info/ |
| 53 | ++-rw-r--r-- 0 gmassadas (502) staff (20) 1563 2024-05-20 21:47:04.000000 django_d1db-0.0.4/django_d1db.egg-info/PKG-INFO |
| 54 | ++-rw-r--r-- 0 gmassadas (502) staff (20) 369 2024-05-20 21:47:04.000000 django_d1db-0.0.4/django_d1db.egg-info/SOURCES.txt |
| 55 | ++-rw-r--r-- 0 gmassadas (502) staff (20) 1 2024-05-20 21:47:04.000000 django_d1db-0.0.4/django_d1db.egg-info/dependency_links.txt |
| 56 | ++-rw-r--r-- 0 gmassadas (502) staff (20) 10 2024-05-20 21:47:04.000000 django_d1db-0.0.4/django_d1db.egg-info/top_level.txt |
| 57 | ++-rw-r--r-- 0 gmassadas (502) staff (20) 785 2024-05-20 21:46:50.000000 django_d1db-0.0.4/pyproject.toml |
| 58 | ++-rw-r--r-- 0 gmassadas (502) staff (20) 38 2024-05-20 21:47:04.723960 django_d1db-0.0.4/setup.cfg |
| 59 | +``` |
| 60 | + |
| 61 | +### Comparing `django_d1db-0.0.3/LICENSE` & `django_d1db-0.0.4/LICENSE` |
| 62 | + |
| 63 | + * *Files identical despite different names* |
| 64 | + |
| 65 | +### Comparing `django_d1db-0.0.3/PKG-INFO` & `django_d1db-0.0.4/PKG-INFO` |
| 66 | + |
| 67 | + * *Files 1% similar despite different names* |
| 68 | + |
| 69 | +```diff |
| 70 | +@@ -1,10 +1,10 @@ |
| 71 | + Metadata-Version: 2.1 |
| 72 | + Name: django-d1db |
| 73 | +-Version: 0.0.3 |
| 74 | ++Version: 0.0.4 |
| 75 | + Summary: Django backend for Cloudflare D1 |
| 76 | + Author: Gabriel Massadas |
| 77 | + Project-URL: Bug Reports, https://github.com/G4brym/django-d1/issues |
| 78 | + Project-URL: Source, https://github.com/G4brym/django-d1 |
| 79 | + Classifier: Development Status :: 3 - Alpha |
| 80 | + Classifier: Framework :: Django |
| 81 | + Classifier: Framework :: Django :: 5.0 |
| 82 | +``` |
| 83 | + |
| 84 | +### Comparing `django_d1db-0.0.3/README.md` & `django_d1db-0.0.4/README.md` |
| 85 | + |
| 86 | + * *Files identical despite different names* |
| 87 | + |
| 88 | +### Comparing `django_d1db-0.0.3/django_d1/base.py` & `django_d1db-0.0.4/django_d1/base.py` |
| 89 | + |
| 90 | + * *Files 4% similar despite different names* |
| 91 | + |
| 92 | +```diff |
| 93 | +@@ -19,18 +19,18 @@ |
| 94 | + client_class = DatabaseClient |
| 95 | + creation_class = DatabaseCreation |
| 96 | + # Classes instantiated in __init__(). |
| 97 | + features_class = DatabaseFeatures |
| 98 | + introspection_class = DatabaseIntrospection |
| 99 | + ops_class = DatabaseOperations |
| 100 | + |
| 101 | +- transaction_modes = frozenset(["IMMEDIATE"]) |
| 102 | ++ transaction_modes = frozenset([]) |
| 103 | + |
| 104 | + def get_database_version(self): |
| 105 | +- return (1,) |
| 106 | ++ return (4,) |
| 107 | + |
| 108 | + def get_connection_params(self): |
| 109 | + settings_dict = self.settings_dict |
| 110 | + if not settings_dict["CLOUDFLARE_DATABASE_ID"]: |
| 111 | + raise ImproperlyConfigured( |
| 112 | + "settings.DATABASES is improperly configured. " |
| 113 | + "Please supply the CLOUDFLARE_DATABASE_ID value." |
| 114 | +``` |
| 115 | + |
| 116 | +### Comparing `django_d1db-0.0.3/django_d1/database.py` & `django_d1db-0.0.4/django_d1/database.py` |
| 117 | + |
| 118 | + * *Files 2% similar despite different names* |
| 119 | + |
| 120 | +```diff |
| 121 | +@@ -95,36 +95,37 @@ |
| 122 | + |
| 123 | + def commit(self): |
| 124 | + return # No commits allowed |
| 125 | + |
| 126 | + def rollback(self): |
| 127 | + return # No commits allowed |
| 128 | + |
| 129 | +- def get_query(self): |
| 130 | +- query = self.query |
| 131 | ++ def process_query(self, query): |
| 132 | + query = query.replace('%s', '?') |
| 133 | + |
| 134 | + if self._defer_foreign_keys: |
| 135 | + return f''' |
| 136 | + PRAGMA defer_foreign_keys = on |
| 137 | + |
| 138 | + {query} |
| 139 | + |
| 140 | + PRAGMA defer_foreign_keys = off |
| 141 | + ''' |
| 142 | + |
| 143 | + return query |
| 144 | + |
| 145 | + @retry(times=3, exceptions=(InternalError,)) |
| 146 | +- def run_query(self): |
| 147 | ++ def run_query(self, query, params=None): |
| 148 | ++ proc_query = self.process_query(query) |
| 149 | ++ |
| 150 | + conn = http.client.HTTPSConnection("api.cloudflare.com", timeout=20.0) |
| 151 | + |
| 152 | + payload = { |
| 153 | +- "params": self.params, |
| 154 | +- "sql": self.get_query() |
| 155 | ++ "params": params, |
| 156 | ++ "sql": proc_query |
| 157 | + } |
| 158 | + |
| 159 | + headers = { |
| 160 | + 'Content-Type': "application/json", |
| 161 | + 'Authorization': f"Bearer {self.token}" |
| 162 | + } |
| 163 | + |
| 164 | +@@ -159,18 +160,15 @@ |
| 165 | + |
| 166 | + return result |
| 167 | + |
| 168 | + query = None |
| 169 | + params = None |
| 170 | + |
| 171 | + def execute(self, query, params=None): |
| 172 | +- self.query = query |
| 173 | +- self.params = params |
| 174 | +- |
| 175 | +- self.results = self.run_query() |
| 176 | ++ self.results = self.run_query(query, params) |
| 177 | + |
| 178 | + return self |
| 179 | + |
| 180 | + def fetchone(self): |
| 181 | + if len(self.results.data) > 0: |
| 182 | + return self.results.data.pop() |
| 183 | + return None |
| 184 | +``` |
| 185 | + |
| 186 | +### Comparing `django_d1db-0.0.3/django_d1/operations.py` & `django_d1db-0.0.4/django_d1/operations.py` |
| 187 | + |
| 188 | + * *Files 22% similar despite different names* |
| 189 | + |
| 190 | +```diff |
| 191 | +@@ -47,7 +47,12 @@ |
| 192 | + return sql % params |
| 193 | + except: |
| 194 | + return sql |
| 195 | + # For consistency with SQLiteCursorWrapper.execute(), just return sql |
| 196 | + # when there are no parameters. See #13648 and #17158. |
| 197 | + else: |
| 198 | + return sql |
| 199 | ++ |
| 200 | ++ def bulk_insert_sql(self, fields, placeholder_rows): |
| 201 | ++ placeholder_rows_sql = (", ".join(row) for row in placeholder_rows) |
| 202 | ++ values_sql = ", ".join("(%s)" % sql for sql in placeholder_rows_sql) |
| 203 | ++ return "VALUES " + values_sql |
| 204 | +``` |
| 205 | + |
| 206 | +### Comparing `django_d1db-0.0.3/django_d1db.egg-info/PKG-INFO` & `django_d1db-0.0.4/django_d1db.egg-info/PKG-INFO` |
| 207 | + |
| 208 | + * *Files 1% similar despite different names* |
| 209 | + |
| 210 | +```diff |
| 211 | +@@ -1,10 +1,10 @@ |
| 212 | + Metadata-Version: 2.1 |
| 213 | + Name: django-d1db |
| 214 | +-Version: 0.0.3 |
| 215 | ++Version: 0.0.4 |
| 216 | + Summary: Django backend for Cloudflare D1 |
| 217 | + Author: Gabriel Massadas |
| 218 | + Project-URL: Bug Reports, https://github.com/G4brym/django-d1/issues |
| 219 | + Project-URL: Source, https://github.com/G4brym/django-d1 |
| 220 | + Classifier: Development Status :: 3 - Alpha |
| 221 | + Classifier: Framework :: Django |
| 222 | + Classifier: Framework :: Django :: 5.0 |
| 223 | +``` |
| 224 | + |
| 225 | +### Comparing `django_d1db-0.0.3/pyproject.toml` & `django_d1db-0.0.4/pyproject.toml` |
| 226 | + |
| 227 | + * *Files 2% similar despite different names* |
| 228 | + |
| 229 | +```diff |
| 230 | +@@ -1,10 +1,10 @@ |
| 231 | + [project] |
| 232 | + name = "django-d1db" |
| 233 | +-version = "0.0.3" |
| 234 | ++version = "0.0.4" |
| 235 | + authors = [ |
| 236 | + { name="Gabriel Massadas" }, |
| 237 | + ] |
| 238 | + description = "Django backend for Cloudflare D1" |
| 239 | + readme = "README.md" |
| 240 | + requires-python = ">=3.10" |
| 241 | + classifiers = [ |
| 242 | +``` |
| 243 | + |
0 commit comments