orm-database 0.3.19__tar.gz → 0.3.20__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.
- {orm_database-0.3.19 → orm_database-0.3.20}/PKG-INFO +1 -1
- {orm_database-0.3.19 → orm_database-0.3.20}/orm_database/orm_database.py +7 -0
- {orm_database-0.3.19 → orm_database-0.3.20}/orm_database/orm_query.py +10 -0
- {orm_database-0.3.19 → orm_database-0.3.20}/orm_database.egg-info/PKG-INFO +1 -1
- {orm_database-0.3.19 → orm_database-0.3.20}/setup.py +1 -1
- {orm_database-0.3.19 → orm_database-0.3.20}/LICENSE +0 -0
- {orm_database-0.3.19 → orm_database-0.3.20}/README.md +0 -0
- {orm_database-0.3.19 → orm_database-0.3.20}/orm_database/__init__.py +0 -0
- {orm_database-0.3.19 → orm_database-0.3.20}/orm_database.egg-info/SOURCES.txt +0 -0
- {orm_database-0.3.19 → orm_database-0.3.20}/orm_database.egg-info/dependency_links.txt +0 -0
- {orm_database-0.3.19 → orm_database-0.3.20}/orm_database.egg-info/requires.txt +0 -0
- {orm_database-0.3.19 → orm_database-0.3.20}/orm_database.egg-info/top_level.txt +0 -0
- {orm_database-0.3.19 → orm_database-0.3.20}/setup.cfg +0 -0
@@ -154,6 +154,13 @@ class PostgreSQL:
|
|
154
154
|
return None
|
155
155
|
|
156
156
|
|
157
|
+
async def delete_one(self,table:str,filed:dict):
|
158
|
+
query = query_delete_one(table=table,filed=filed)
|
159
|
+
await self.db.execute(query)
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
157
164
|
class Mongodb:
|
158
165
|
def __init__(self, url, name):
|
159
166
|
self.url = url
|
@@ -102,4 +102,14 @@ def select_columns(table:str,filed:dict):
|
|
102
102
|
query = query + table + " WHERE "
|
103
103
|
fileds = list(filed.keys())
|
104
104
|
query = query + fileds[0]+"="+"%s"
|
105
|
+
return query
|
106
|
+
|
107
|
+
|
108
|
+
# DELETE FROM pending_order WHERE users='s1';
|
109
|
+
def query_delete_one(table:str,filed:dict):
|
110
|
+
query = f"DELETE FROM {table} WHERE"
|
111
|
+
key = filed.keys()
|
112
|
+
key = list(key)
|
113
|
+
key = key[0]
|
114
|
+
query = query + " " + str(key) + "="+ str(filed[key])
|
105
115
|
return query
|
@@ -6,7 +6,7 @@ long_description = (this_directory / "README.md").read_text()
|
|
6
6
|
|
7
7
|
setup(
|
8
8
|
name='orm_database',
|
9
|
-
version='0.3.
|
9
|
+
version='0.3.20',
|
10
10
|
description='This module is written to launch your programs with any database you want in the shortest time ',
|
11
11
|
license="MIT",
|
12
12
|
author='SISRSIS',
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|