odbms 0.2.7__tar.gz → 0.2.9__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.
- {odbms-0.2.7/odbms.egg-info → odbms-0.2.9}/PKG-INFO +2 -1
- {odbms-0.2.7 → odbms-0.2.9}/odbms/app.py +1 -1
- {odbms-0.2.7 → odbms-0.2.9}/odbms/model.py +3 -4
- {odbms-0.2.7 → odbms-0.2.9/odbms.egg-info}/PKG-INFO +2 -1
- {odbms-0.2.7 → odbms-0.2.9}/odbms.egg-info/requires.txt +1 -0
- {odbms-0.2.7 → odbms-0.2.9}/setup.py +2 -2
- {odbms-0.2.7 → odbms-0.2.9}/LICENSE +0 -0
- {odbms-0.2.7 → odbms-0.2.9}/MANIFEST.in +0 -0
- {odbms-0.2.7 → odbms-0.2.9}/README.md +0 -0
- {odbms-0.2.7 → odbms-0.2.9}/odbms/__init__.py +0 -0
- {odbms-0.2.7 → odbms-0.2.9}/odbms/database.py +0 -0
- {odbms-0.2.7 → odbms-0.2.9}/odbms/dbms.py +0 -0
- {odbms-0.2.7 → odbms-0.2.9}/odbms/mongodb.py +0 -0
- {odbms-0.2.7 → odbms-0.2.9}/odbms/mysqldb.py +0 -0
- {odbms-0.2.7 → odbms-0.2.9}/odbms/postgresqldb.py +0 -0
- {odbms-0.2.7 → odbms-0.2.9}/odbms/sqlitedb.py +0 -0
- {odbms-0.2.7 → odbms-0.2.9}/odbms.egg-info/SOURCES.txt +0 -0
- {odbms-0.2.7 → odbms-0.2.9}/odbms.egg-info/dependency_links.txt +0 -0
- {odbms-0.2.7 → odbms-0.2.9}/odbms.egg-info/top_level.txt +0 -0
- {odbms-0.2.7 → odbms-0.2.9}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: odbms
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.9
|
|
4
4
|
Summary: Database client for Mysql, MongoDB and Sqlite
|
|
5
5
|
Author: Amos Amissah
|
|
6
6
|
Author-email: theonlyamos@gmail.com
|
|
@@ -21,6 +21,7 @@ Description-Content-Type: text/markdown
|
|
|
21
21
|
License-File: LICENSE
|
|
22
22
|
Requires-Dist: python-dotenv
|
|
23
23
|
Requires-Dist: pymongo
|
|
24
|
+
Requires-Dist: psycopg2
|
|
24
25
|
|
|
25
26
|
# odbms
|
|
26
27
|
Python package for Managing Mysql, Mongodb and Sqlite instances
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
from datetime import datetime
|
|
2
2
|
from typing import Union
|
|
3
|
-
import uuid
|
|
4
3
|
|
|
5
4
|
from bson.objectid import ObjectId
|
|
6
5
|
from .dbms import DBMS
|
|
@@ -15,11 +14,11 @@ class Model():
|
|
|
15
14
|
LIMIT = 0
|
|
16
15
|
|
|
17
16
|
def __init__(self, created_at=None, updated_at=None, id=None):
|
|
18
|
-
self.created_at = (datetime.
|
|
17
|
+
self.created_at = (datetime.now()).strftime("%a %b %d %Y %H:%M:%S") \
|
|
19
18
|
if not created_at else created_at
|
|
20
|
-
self.updated_at = (datetime.
|
|
19
|
+
self.updated_at = (datetime.now()).strftime("%a %b %d %Y %H:%M:%S") \
|
|
21
20
|
if not updated_at else updated_at
|
|
22
|
-
self.id = str(
|
|
21
|
+
self.id = str(ObjectId()) if not id else str(id)
|
|
23
22
|
|
|
24
23
|
@classmethod
|
|
25
24
|
def create_table(cls):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: odbms
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.9
|
|
4
4
|
Summary: Database client for Mysql, MongoDB and Sqlite
|
|
5
5
|
Author: Amos Amissah
|
|
6
6
|
Author-email: theonlyamos@gmail.com
|
|
@@ -21,6 +21,7 @@ Description-Content-Type: text/markdown
|
|
|
21
21
|
License-File: LICENSE
|
|
22
22
|
Requires-Dist: python-dotenv
|
|
23
23
|
Requires-Dist: pymongo
|
|
24
|
+
Requires-Dist: psycopg2
|
|
24
25
|
|
|
25
26
|
# odbms
|
|
26
27
|
Python package for Managing Mysql, Mongodb and Sqlite instances
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from importlib.metadata import entry_points
|
|
2
2
|
from setuptools import setup, find_packages
|
|
3
3
|
|
|
4
|
-
VERSION = '0.2.
|
|
4
|
+
VERSION = '0.2.9'
|
|
5
5
|
|
|
6
6
|
with open('README.md', 'rt') as file:
|
|
7
7
|
description = file.read()
|
|
@@ -17,7 +17,7 @@ setup(
|
|
|
17
17
|
long_description_content_type = "text/markdown",
|
|
18
18
|
include_package_data=True,
|
|
19
19
|
# install_requires=['python-dotenv','pymongo', 'mysql', 'mysql-connector', 'mysql-connector-python'],
|
|
20
|
-
install_requires=['python-dotenv','pymongo'],
|
|
20
|
+
install_requires=['python-dotenv','pymongo', 'psycopg2'],
|
|
21
21
|
keywords='python3 runit developer serverless architecture docker sqlite mysql mongodb',
|
|
22
22
|
project_urls={
|
|
23
23
|
'Source': 'https://github.com/theonlyamos/odbms/',
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|