From d9d7e40a41e7e96fed4b1a6dd1fbe6d180e57afe Mon Sep 17 00:00:00 2001 From: Sanhe Hu Date: Fri, 17 May 2024 02:07:46 -0400 Subject: [PATCH] 2.0.0.1 --- release-history.rst | 35 ++++++++++++++++-- sqlalchemy_mate/_version.py | 2 +- tests/test_api.py | 72 ++++++++++++++++++------------------- 3 files changed, 70 insertions(+), 39 deletions(-) diff --git a/release-history.rst b/release-history.rst index 1557a1d..3e2ff0a 100644 --- a/release-history.rst +++ b/release-history.rst @@ -15,11 +15,42 @@ Backlog (TODO) **Miscellaneous** -2.0.0.1 (TODO) +2.0.0.1 (2024-05-17) ------------------------------------------------------------------------------ **💥Breaking Change** -- Rework the public API import. Now you have to use ``import sqlalchemy_mate.api as sm`` to access the public API. ``from sqlalchemy_mate import ...`` is no longer working. +- Rework the public API import. Now you have to use ``import sqlalchemy_mate.api as sam`` to access the public API. ``from sqlalchemy_mate import ...`` is no longer working. Here's the full list of public API: + - ``sqlalchemy_mate.api.selecting.count_row`` + - ``sqlalchemy_mate.api.selecting.by_pk`` + - ``sqlalchemy_mate.api.selecting.select_all`` + - ``sqlalchemy_mate.api.selecting.select_single_column`` + - ``sqlalchemy_mate.api.selecting.select_many_column`` + - ``sqlalchemy_mate.api.selecting.select_single_distinct`` + - ``sqlalchemy_mate.api.selecting.select_many_distinct`` + - ``sqlalchemy_mate.api.selecting.select_random`` + - ``sqlalchemy_mate.api.selecting.yield_tuple`` + - ``sqlalchemy_mate.api.selecting.yield_dict`` + - ``sqlalchemy_mate.api.inserting.smart_insert`` + - ``sqlalchemy_mate.api.updating.update_all`` + - ``sqlalchemy_mate.api.updating.upsert_all`` + - ``sqlalchemy_mate.api.deleting.delete_all`` + - ``sqlalchemy_mate.api.test_connection`` + - ``sqlalchemy_mate.api.EngineCreator`` + - ``sqlalchemy_mate.api.ExtendedBase`` + - ``sqlalchemy_mate.api.TimeoutError`` + - ``sqlalchemy_mate.api.io.sql_to_csv`` + - ``sqlalchemy_mate.api.io.table_to_csv`` + - ``sqlalchemy_mate.api.pt.from_result`` + - ``sqlalchemy_mate.api.pt.from_text_clause`` + - ``sqlalchemy_mate.api.pt.from_stmt`` + - ``sqlalchemy_mate.api.pt.from_table`` + - ``sqlalchemy_mate.api.pt.from_model`` + - ``sqlalchemy_mate.api.pt.from_dict_list`` + - ``sqlalchemy_mate.api.pt.from_everything`` + - ``sqlalchemy_mate.api.patterns.status_tracker.JobLockedError`` + - ``sqlalchemy_mate.api.patterns.status_tracker.JobIgnoredError`` + - ``sqlalchemy_mate.api.patterns.status_tracker.JobMixin`` + - ``sqlalchemy_mate.api.patterns.status_tracker.Updates`` **Features and Improvements** diff --git a/sqlalchemy_mate/_version.py b/sqlalchemy_mate/_version.py index 25b7bc6..80cb21c 100644 --- a/sqlalchemy_mate/_version.py +++ b/sqlalchemy_mate/_version.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -__version__ = "2.0.0.0" +__version__ = "2.0.0.1" if __name__ == "__main__": print(__version__) diff --git a/tests/test_api.py b/tests/test_api.py index 04302a9..1b7f08f 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -2,42 +2,42 @@ def test(): - import sqlalchemy_mate.api as sm - - _ = sm.selecting.count_row - _ = sm.selecting.by_pk - _ = sm.selecting.select_all - _ = sm.selecting.select_single_column - _ = sm.selecting.select_many_column - _ = sm.selecting.select_single_distinct - _ = sm.selecting.select_many_distinct - _ = sm.selecting.select_random - _ = sm.selecting.yield_tuple - _ = sm.selecting.yield_dict - _ = sm.inserting.smart_insert - _ = sm.updating.update_all - _ = sm.updating.upsert_all - _ = sm.deleting.delete_all - - _ = sm.test_connection - _ = sm.EngineCreator - _ = sm.ExtendedBase - _ = sm.TimeoutError - - _ = sm.io.sql_to_csv - _ = sm.io.table_to_csv - _ = sm.pt.from_result - _ = sm.pt.from_text_clause - _ = sm.pt.from_stmt - _ = sm.pt.from_table - _ = sm.pt.from_model - _ = sm.pt.from_dict_list - _ = sm.pt.from_everything - - _ = sm.patterns.status_tracker.JobLockedError - _ = sm.patterns.status_tracker.JobIgnoredError - _ = sm.patterns.status_tracker.JobMixin - _ = sm.patterns.status_tracker.Updates + import sqlalchemy_mate.api as sam + + _ = sam.selecting.count_row + _ = sam.selecting.by_pk + _ = sam.selecting.select_all + _ = sam.selecting.select_single_column + _ = sam.selecting.select_many_column + _ = sam.selecting.select_single_distinct + _ = sam.selecting.select_many_distinct + _ = sam.selecting.select_random + _ = sam.selecting.yield_tuple + _ = sam.selecting.yield_dict + _ = sam.inserting.smart_insert + _ = sam.updating.update_all + _ = sam.updating.upsert_all + _ = sam.deleting.delete_all + + _ = sam.test_connection + _ = sam.EngineCreator + _ = sam.ExtendedBase + _ = sam.TimeoutError + + _ = sam.io.sql_to_csv + _ = sam.io.table_to_csv + _ = sam.pt.from_result + _ = sam.pt.from_text_clause + _ = sam.pt.from_stmt + _ = sam.pt.from_table + _ = sam.pt.from_model + _ = sam.pt.from_dict_list + _ = sam.pt.from_everything + + _ = sam.patterns.status_tracker.JobLockedError + _ = sam.patterns.status_tracker.JobIgnoredError + _ = sam.patterns.status_tracker.JobMixin + _ = sam.patterns.status_tracker.Updates if __name__ == "__main__":