postgresdb3 0.3.1__tar.gz → 0.3.3__tar.gz
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.
- {postgresdb3-0.3.1 → postgresdb3-0.3.3}/PKG-INFO +3 -5
- {postgresdb3-0.3.1 → postgresdb3-0.3.3}/README.md +3 -5
- {postgresdb3-0.3.1 → postgresdb3-0.3.3}/postgresdb3/async_db.py +1 -1
- {postgresdb3-0.3.1 → postgresdb3-0.3.3}/postgresdb3.egg-info/PKG-INFO +3 -5
- {postgresdb3-0.3.1 → postgresdb3-0.3.3}/setup.py +1 -1
- {postgresdb3-0.3.1 → postgresdb3-0.3.3}/postgresdb3/__init__.py +0 -0
- {postgresdb3-0.3.1 → postgresdb3-0.3.3}/postgresdb3/sync_db.py +0 -0
- {postgresdb3-0.3.1 → postgresdb3-0.3.3}/postgresdb3.egg-info/SOURCES.txt +0 -0
- {postgresdb3-0.3.1 → postgresdb3-0.3.3}/postgresdb3.egg-info/dependency_links.txt +0 -0
- {postgresdb3-0.3.1 → postgresdb3-0.3.3}/postgresdb3.egg-info/requires.txt +0 -0
- {postgresdb3-0.3.1 → postgresdb3-0.3.3}/postgresdb3.egg-info/top_level.txt +0 -0
- {postgresdb3-0.3.1 → postgresdb3-0.3.3}/pyproject.toml +0 -0
- {postgresdb3-0.3.1 → postgresdb3-0.3.3}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: postgresdb3
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.3
|
|
4
4
|
Summary: Python uchun oddiy PostgreSQL wrapper
|
|
5
5
|
Author: Abdulbosit Alijonov
|
|
6
6
|
Project-URL: Source Code, https://github.com/AlijonovUz/PostgresDB
|
|
@@ -202,14 +202,12 @@ ma'lumotni yangilash.
|
|
|
202
202
|
|
|
203
203
|
## Qo‘shimcha
|
|
204
204
|
|
|
205
|
-
`%s
|
|
205
|
+
`%s` va `$1` bilan parametrizatsiya qilish xavfsiz va SQL injection'dan himoya qiladi.
|
|
206
206
|
|
|
207
207
|
`where` va `join` yordamida murakkab so‘rovlar yozish mumkin.
|
|
208
208
|
|
|
209
|
-
`limit` va `order_by` parametrlaridan foydalanib ma'lumotlarni tartiblash va cheklash oson.
|
|
209
|
+
`limit`, `offset` va `order_by` parametrlaridan foydalanib ma'lumotlarni tartiblash va cheklash oson.
|
|
210
210
|
|
|
211
211
|
`commit=True` bo‘lgan amallar darhol bazaga yoziladi, select() esa hech qachon o‘zgartirish kiritmaydi.
|
|
212
212
|
|
|
213
213
|
`raw()` — barcha SQL buyruqlarini bajaruvchi yagona metod bo‘lib, kerak bo‘lganda to‘g‘ridan‑to‘g‘ri SQL yozish imkonini beradi.
|
|
214
|
-
|
|
215
|
-
PostgreSQL bilan ishlash uchun `psycopg2` kutubxonasi talab qilinadi.
|
|
@@ -180,14 +180,12 @@ ma'lumotni yangilash.
|
|
|
180
180
|
|
|
181
181
|
## Qo‘shimcha
|
|
182
182
|
|
|
183
|
-
`%s
|
|
183
|
+
`%s` va `$1` bilan parametrizatsiya qilish xavfsiz va SQL injection'dan himoya qiladi.
|
|
184
184
|
|
|
185
185
|
`where` va `join` yordamida murakkab so‘rovlar yozish mumkin.
|
|
186
186
|
|
|
187
|
-
`limit` va `order_by` parametrlaridan foydalanib ma'lumotlarni tartiblash va cheklash oson.
|
|
187
|
+
`limit`, `offset` va `order_by` parametrlaridan foydalanib ma'lumotlarni tartiblash va cheklash oson.
|
|
188
188
|
|
|
189
189
|
`commit=True` bo‘lgan amallar darhol bazaga yoziladi, select() esa hech qachon o‘zgartirish kiritmaydi.
|
|
190
190
|
|
|
191
|
-
`raw()` — barcha SQL buyruqlarini bajaruvchi yagona metod bo‘lib, kerak bo‘lganda to‘g‘ridan‑to‘g‘ri SQL yozish imkonini beradi.
|
|
192
|
-
|
|
193
|
-
PostgreSQL bilan ishlash uchun `psycopg2` kutubxonasi talab qilinadi.
|
|
191
|
+
`raw()` — barcha SQL buyruqlarini bajaruvchi yagona metod bo‘lib, kerak bo‘lganda to‘g‘ridan‑to‘g‘ri SQL yozish imkonini beradi.
|
|
@@ -150,7 +150,7 @@ class AsyncPostgresDB:
|
|
|
150
150
|
sql += " OFFSET $%d" % (len(params) + 1)
|
|
151
151
|
params.append(offset)
|
|
152
152
|
|
|
153
|
-
return await self._manager(sql, params, fetchone=fetchone, fetchall=not fetchone)
|
|
153
|
+
return await self._manager(sql, *params, fetchone=fetchone, fetchall=not fetchone)
|
|
154
154
|
|
|
155
155
|
async def insert(self, table: str, columns: str, values: List[Any]) -> None:
|
|
156
156
|
"""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: postgresdb3
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.3
|
|
4
4
|
Summary: Python uchun oddiy PostgreSQL wrapper
|
|
5
5
|
Author: Abdulbosit Alijonov
|
|
6
6
|
Project-URL: Source Code, https://github.com/AlijonovUz/PostgresDB
|
|
@@ -202,14 +202,12 @@ ma'lumotni yangilash.
|
|
|
202
202
|
|
|
203
203
|
## Qo‘shimcha
|
|
204
204
|
|
|
205
|
-
`%s
|
|
205
|
+
`%s` va `$1` bilan parametrizatsiya qilish xavfsiz va SQL injection'dan himoya qiladi.
|
|
206
206
|
|
|
207
207
|
`where` va `join` yordamida murakkab so‘rovlar yozish mumkin.
|
|
208
208
|
|
|
209
|
-
`limit` va `order_by` parametrlaridan foydalanib ma'lumotlarni tartiblash va cheklash oson.
|
|
209
|
+
`limit`, `offset` va `order_by` parametrlaridan foydalanib ma'lumotlarni tartiblash va cheklash oson.
|
|
210
210
|
|
|
211
211
|
`commit=True` bo‘lgan amallar darhol bazaga yoziladi, select() esa hech qachon o‘zgartirish kiritmaydi.
|
|
212
212
|
|
|
213
213
|
`raw()` — barcha SQL buyruqlarini bajaruvchi yagona metod bo‘lib, kerak bo‘lganda to‘g‘ridan‑to‘g‘ri SQL yozish imkonini beradi.
|
|
214
|
-
|
|
215
|
-
PostgreSQL bilan ishlash uchun `psycopg2` kutubxonasi talab qilinadi.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|