From 9354c7eca6a6b7bfefbadf8255c3306e772c5ed3 Mon Sep 17 00:00:00 2001 From: zxyle Date: Thu, 27 Feb 2020 13:18:42 +0800 Subject: [PATCH] Modify the calling method release v1.1.2 --- README.md | 2 +- crudlib/__init__.py | 3 +++ crudlib/databases.py | 12 ------------ setup.py | 2 +- tests/test_mysql.py | 2 +- 5 files changed, 6 insertions(+), 15 deletions(-) delete mode 100644 crudlib/databases.py diff --git a/README.md b/README.md index 3e30035..a668b82 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ just to satisfy the most basic CRUD operations. ## Quick Start ```python -from crudlib.databases import MySQL +from crudlib import MySQL my = MySQL() my.insert_one(tb="student", doc={"name": "zxyle"}) diff --git a/crudlib/__init__.py b/crudlib/__init__.py index e69de29..d7e84f6 100644 --- a/crudlib/__init__.py +++ b/crudlib/__init__.py @@ -0,0 +1,3 @@ +from .mysql import MySQL +from .sqlite import SQLite +from .mariadb import MariaDB diff --git a/crudlib/databases.py b/crudlib/databases.py deleted file mode 100644 index d85f7dd..0000000 --- a/crudlib/databases.py +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env python3 -# -*- coding: utf-8 -*- -# Author: Zheng -# Date: 2019/7/26 -# Desc: - - -from crudlib.mysql import MySQL -from crudlib.sqlite import SQLite -from crudlib.mariadb import MariaDB - -# __all__ = (MySQL) diff --git a/setup.py b/setup.py index 0b7090c..77abcd0 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ setup( name="crudlib", - version="1.1.1", + version="1.1.2", author="Zheng", author_email="zxyful@gmail.com", description="One API, More Database.", diff --git a/tests/test_mysql.py b/tests/test_mysql.py index b3803dd..408e23e 100644 --- a/tests/test_mysql.py +++ b/tests/test_mysql.py @@ -4,7 +4,7 @@ # Date: 2019/7/26 # Desc: -from crudlib.databases import MySQL +from crudlib import MySQL uri = "mysql+pymysql://root:root@localhost:3306/mysql?charset=utf8mb4" my = MySQL(uri, debug=True)