orm-database 0.3.13__tar.gz → 0.3.15__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.13 → orm_database-0.3.15}/PKG-INFO +1 -1
- {orm_database-0.3.13 → orm_database-0.3.15}/orm_database/orm_database.py +6 -8
- {orm_database-0.3.13 → orm_database-0.3.15}/orm_database.egg-info/PKG-INFO +1 -1
- {orm_database-0.3.13 → orm_database-0.3.15}/setup.py +1 -1
- {orm_database-0.3.13 → orm_database-0.3.15}/LICENSE +0 -0
- {orm_database-0.3.13 → orm_database-0.3.15}/README.md +0 -0
- {orm_database-0.3.13 → orm_database-0.3.15}/orm_database/__init__.py +0 -0
- {orm_database-0.3.13 → orm_database-0.3.15}/orm_database/orm_query.py +0 -0
- {orm_database-0.3.13 → orm_database-0.3.15}/orm_database.egg-info/SOURCES.txt +0 -0
- {orm_database-0.3.13 → orm_database-0.3.15}/orm_database.egg-info/dependency_links.txt +0 -0
- {orm_database-0.3.13 → orm_database-0.3.15}/orm_database.egg-info/requires.txt +0 -0
- {orm_database-0.3.13 → orm_database-0.3.15}/orm_database.egg-info/top_level.txt +0 -0
- {orm_database-0.3.13 → orm_database-0.3.15}/setup.cfg +0 -0
@@ -97,28 +97,27 @@ class PostgreSQL:
|
|
97
97
|
|
98
98
|
|
99
99
|
async def teble_create_BaseModel(self,table:str , class_BaseModel):
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
100
|
+
try:
|
101
|
+
query=query_baseModel_create_table(table,class_BaseModel)
|
102
|
+
await self.db.execute(query)
|
103
|
+
return True
|
104
|
+
except:
|
105
|
+
return False
|
104
106
|
|
105
107
|
async def teble_create(self, table: str, field: dict):
|
106
108
|
query=query_create_table(table,field)
|
107
109
|
await self.db.execute(query)
|
108
|
-
await self.db.close()
|
109
110
|
|
110
111
|
|
111
112
|
async def insert_value(self, table: str, value: dict):
|
112
113
|
query = query_insert_value(table,value)
|
113
114
|
await self.db.execute(query)
|
114
|
-
await self.db.close()
|
115
115
|
|
116
116
|
|
117
117
|
async def insert_values(self, table: str, values: list):
|
118
118
|
for value in values:
|
119
119
|
query = query_insert_values(table=table,value=value)
|
120
120
|
await self.db.execute(query)
|
121
|
-
await self.db.close()
|
122
121
|
|
123
122
|
async def select_all(self, table: str, filed: list, all: bool = False):
|
124
123
|
if all == True:
|
@@ -142,7 +141,6 @@ class PostgreSQL:
|
|
142
141
|
data[filed[conter]] = b
|
143
142
|
conter += 1
|
144
143
|
data_row.append(dict(data))
|
145
|
-
await self.db.close()
|
146
144
|
print(data_row)
|
147
145
|
return data_row
|
148
146
|
|
@@ -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.15',
|
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
|
File without changes
|