-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move public api to sqlalchemy_mate.api
- Loading branch information
Showing
13 changed files
with
59 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,22 +7,3 @@ | |
__author__ = "Sanhe Hu" | ||
__author_email__ = "[email protected]" | ||
__github_username__ = "MacHu-GWU" | ||
|
||
|
||
try: | ||
from . import engine_creator | ||
from . import io | ||
from . import pt | ||
from . import types | ||
from .utils import test_connection | ||
from .engine_creator import EngineCreator | ||
from .crud import selecting | ||
from .crud import inserting | ||
from .crud import updating | ||
from .crud import deleting | ||
from .orm.extended_declarative_base import ExtendedBase | ||
from .vendor.timeout_decorator import TimeoutError | ||
except ImportError as e: # pragma: no cover | ||
print(e) | ||
except Exception as e: # pragma: no cover | ||
raise e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,20 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
""" | ||
Usage example: | ||
import sqlalchemy_mate.api as sm | ||
""" | ||
|
||
from . import engine_creator | ||
from . import io | ||
from . import pt | ||
from . import types | ||
from . import io_api as io | ||
from . import pt_api as pt | ||
from .types import api as types | ||
from .utils import test_connection | ||
from .engine_creator import EngineCreator | ||
from .crud import selecting | ||
from .crud import inserting | ||
from .crud import updating | ||
from .crud import deleting | ||
from .orm.extended_declarative_base import ExtendedBase | ||
from .crud import selecting_api as selecting | ||
from .crud import inserting_api as inserting | ||
from .crud import updating_api as updating | ||
from .crud import deleting_api as deleting | ||
from .orm.api import ExtendedBase | ||
from .vendor.timeout_decorator import TimeoutError |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
from .deleting import delete_all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
from .inserting import smart_insert |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
from .selecting import count_row | ||
from .selecting import by_pk | ||
from .selecting import select_all | ||
from .selecting import select_single_column | ||
from .selecting import select_many_column | ||
from .selecting import select_single_distinct | ||
from .selecting import select_many_distinct | ||
from .selecting import select_random | ||
from .selecting import yield_tuple | ||
from .selecting import yield_dict |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
from .updating import update_all | ||
from .updating import upsert_all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
from .io import sql_to_csv | ||
from .io import table_to_csv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
from .extended_declarative_base import ExtendedBase |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
from .pt import from_result | ||
from .pt import from_text_clause | ||
from .pt import from_stmt | ||
from .pt import from_table | ||
from .pt import from_model | ||
from .pt import from_dict_list | ||
from .pt import from_everything |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
from .compressed import CompressedStringType, CompressedBinaryType | ||
from .compressed_json import CompressedJSONType | ||
from .json_serializable import JSONSerializableType |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
from .compressed import CompressedStringType, CompressedBinaryType | ||
from .compressed_json import CompressedJSONType | ||
from .json_serializable import JSONSerializableType |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters