orm-database 0.3.16__tar.gz → 0.3.18__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {orm_database-0.3.16 → orm_database-0.3.18}/PKG-INFO +6 -1
- {orm_database-0.3.16 → orm_database-0.3.18}/README.md +6 -1
- {orm_database-0.3.16 → orm_database-0.3.18}/orm_database.egg-info/PKG-INFO +6 -1
- {orm_database-0.3.16 → orm_database-0.3.18}/setup.py +1 -1
- {orm_database-0.3.16 → orm_database-0.3.18}/LICENSE +0 -0
- {orm_database-0.3.16 → orm_database-0.3.18}/orm_database/__init__.py +0 -0
- {orm_database-0.3.16 → orm_database-0.3.18}/orm_database/orm_database.py +0 -0
- {orm_database-0.3.16 → orm_database-0.3.18}/orm_database/orm_query.py +0 -0
- {orm_database-0.3.16 → orm_database-0.3.18}/orm_database.egg-info/SOURCES.txt +0 -0
- {orm_database-0.3.16 → orm_database-0.3.18}/orm_database.egg-info/dependency_links.txt +0 -0
- {orm_database-0.3.16 → orm_database-0.3.18}/orm_database.egg-info/requires.txt +0 -0
- {orm_database-0.3.16 → orm_database-0.3.18}/orm_database.egg-info/top_level.txt +0 -0
- {orm_database-0.3.16 → orm_database-0.3.18}/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.18
|
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
|
@@ -59,6 +59,7 @@ from pydantic import BaseModel , Field
|
|
59
59
|
db = MariaDB(host="127.0.0.1",database="login",password="",port=3306,user="root")
|
60
60
|
|
61
61
|
class users(BaseModel):
|
62
|
+
id : int = Field("SERIAL PRIMARY KEY")
|
62
63
|
user_rt : str = Field(varchar=20)
|
63
64
|
password_rt : str = Field(varchar=20)
|
64
65
|
email_rt : str = Field(varchar=20)
|
@@ -72,6 +73,7 @@ async def main():
|
|
72
73
|
asyncio.run(main())
|
73
74
|
|
74
75
|
```
|
76
|
+
**Tip: When using MariaDB, you must specify a varchar value, otherwise you will get an error.**
|
75
77
|
|
76
78
|
## create table mariadb
|
77
79
|
|
@@ -249,3 +251,6 @@ output
|
|
249
251
|
```
|
250
252
|
('test1', '12341', 'test1@mail.com')
|
251
253
|
```
|
254
|
+
|
255
|
+
|
256
|
+
|
@@ -37,6 +37,7 @@ from pydantic import BaseModel , Field
|
|
37
37
|
db = MariaDB(host="127.0.0.1",database="login",password="",port=3306,user="root")
|
38
38
|
|
39
39
|
class users(BaseModel):
|
40
|
+
id : int = Field("SERIAL PRIMARY KEY")
|
40
41
|
user_rt : str = Field(varchar=20)
|
41
42
|
password_rt : str = Field(varchar=20)
|
42
43
|
email_rt : str = Field(varchar=20)
|
@@ -50,6 +51,7 @@ async def main():
|
|
50
51
|
asyncio.run(main())
|
51
52
|
|
52
53
|
```
|
54
|
+
**Tip: When using MariaDB, you must specify a varchar value, otherwise you will get an error.**
|
53
55
|
|
54
56
|
## create table mariadb
|
55
57
|
|
@@ -226,4 +228,7 @@ output
|
|
226
228
|
|
227
229
|
```
|
228
230
|
('test1', '12341', 'test1@mail.com')
|
229
|
-
```
|
231
|
+
```
|
232
|
+
|
233
|
+
|
234
|
+
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: orm_database
|
3
|
-
Version: 0.3.
|
3
|
+
Version: 0.3.18
|
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
|
@@ -59,6 +59,7 @@ from pydantic import BaseModel , Field
|
|
59
59
|
db = MariaDB(host="127.0.0.1",database="login",password="",port=3306,user="root")
|
60
60
|
|
61
61
|
class users(BaseModel):
|
62
|
+
id : int = Field("SERIAL PRIMARY KEY")
|
62
63
|
user_rt : str = Field(varchar=20)
|
63
64
|
password_rt : str = Field(varchar=20)
|
64
65
|
email_rt : str = Field(varchar=20)
|
@@ -72,6 +73,7 @@ async def main():
|
|
72
73
|
asyncio.run(main())
|
73
74
|
|
74
75
|
```
|
76
|
+
**Tip: When using MariaDB, you must specify a varchar value, otherwise you will get an error.**
|
75
77
|
|
76
78
|
## create table mariadb
|
77
79
|
|
@@ -249,3 +251,6 @@ output
|
|
249
251
|
```
|
250
252
|
('test1', '12341', 'test1@mail.com')
|
251
253
|
```
|
254
|
+
|
255
|
+
|
256
|
+
|
@@ -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.18',
|
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
|