Skip to content

Commit

Permalink
Modify the calling method
Browse files Browse the repository at this point in the history
release v1.1.2
  • Loading branch information
zxyle committed Feb 27, 2020
1 parent eb52c71 commit 9354c7e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 15 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"})
Expand Down
3 changes: 3 additions & 0 deletions crudlib/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from .mysql import MySQL
from .sqlite import SQLite
from .mariadb import MariaDB
12 changes: 0 additions & 12 deletions crudlib/databases.py

This file was deleted.

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down
2 changes: 1 addition & 1 deletion tests/test_mysql.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9354c7e

Please sign in to comment.