orm-database 0.3.17__tar.gz → 0.3.19__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {orm_database-0.3.17 → orm_database-0.3.19}/PKG-INFO +2 -1
- {orm_database-0.3.17 → orm_database-0.3.19}/README.md +1 -0
- {orm_database-0.3.17 → orm_database-0.3.19}/orm_database/orm_database.py +0 -5
- {orm_database-0.3.17 → orm_database-0.3.19}/orm_database.egg-info/PKG-INFO +2 -1
- {orm_database-0.3.17 → orm_database-0.3.19}/setup.py +1 -1
- {orm_database-0.3.17 → orm_database-0.3.19}/LICENSE +0 -0
- {orm_database-0.3.17 → orm_database-0.3.19}/orm_database/__init__.py +0 -0
- {orm_database-0.3.17 → orm_database-0.3.19}/orm_database/orm_query.py +0 -0
- {orm_database-0.3.17 → orm_database-0.3.19}/orm_database.egg-info/SOURCES.txt +0 -0
- {orm_database-0.3.17 → orm_database-0.3.19}/orm_database.egg-info/dependency_links.txt +0 -0
- {orm_database-0.3.17 → orm_database-0.3.19}/orm_database.egg-info/requires.txt +0 -0
- {orm_database-0.3.17 → orm_database-0.3.19}/orm_database.egg-info/top_level.txt +0 -0
- {orm_database-0.3.17 → orm_database-0.3.19}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: orm_database
|
3
|
-
Version: 0.3.
|
3
|
+
Version: 0.3.19
|
4
4
|
Summary: This module is written to launch your programs with any database you want in the shortest time
|
5
5
|
Home-page: https://github.com/sisrsis/orm-database
|
6
6
|
Author: SISRSIS
|
@@ -73,6 +73,7 @@ async def main():
|
|
73
73
|
asyncio.run(main())
|
74
74
|
|
75
75
|
```
|
76
|
+
**Tip: When using MariaDB, you must specify a varchar value, otherwise you will get an error.**
|
76
77
|
|
77
78
|
## create table mariadb
|
78
79
|
|
@@ -58,11 +58,9 @@ class MariaDB:
|
|
58
58
|
query = query_select(table=table,filed=filed,all=all)
|
59
59
|
cur.execute(query)
|
60
60
|
result = cur.fetchall()
|
61
|
-
print(result)
|
62
61
|
data = {}
|
63
62
|
data_row = []
|
64
63
|
for a in result:
|
65
|
-
print(a)
|
66
64
|
conter = 0
|
67
65
|
for b in a:
|
68
66
|
data[filed[conter]] = b
|
@@ -129,7 +127,6 @@ class PostgreSQL:
|
|
129
127
|
query = query[:-1]
|
130
128
|
query = query + " FROM " + table
|
131
129
|
|
132
|
-
print(query)
|
133
130
|
stmt = await self.db.prepare(query)
|
134
131
|
# for a in stmt:
|
135
132
|
result = list(await stmt.fetch())
|
@@ -141,7 +138,6 @@ class PostgreSQL:
|
|
141
138
|
data[filed[conter]] = b
|
142
139
|
conter += 1
|
143
140
|
data_row.append(dict(data))
|
144
|
-
print(data_row)
|
145
141
|
return data_row
|
146
142
|
|
147
143
|
|
@@ -231,4 +227,3 @@ class Mongodb:
|
|
231
227
|
async def delete_one(self, find: dict, collection: str):
|
232
228
|
coll = self.database[collection]
|
233
229
|
result = coll.delete_one(find)
|
234
|
-
print(result)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: orm_database
|
3
|
-
Version: 0.3.
|
3
|
+
Version: 0.3.19
|
4
4
|
Summary: This module is written to launch your programs with any database you want in the shortest time
|
5
5
|
Home-page: https://github.com/sisrsis/orm-database
|
6
6
|
Author: SISRSIS
|
@@ -73,6 +73,7 @@ async def main():
|
|
73
73
|
asyncio.run(main())
|
74
74
|
|
75
75
|
```
|
76
|
+
**Tip: When using MariaDB, you must specify a varchar value, otherwise you will get an error.**
|
76
77
|
|
77
78
|
## create table mariadb
|
78
79
|
|
@@ -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.19',
|
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
|