Skip to content

Releases: OCHA-DAP/hdx-python-database

Version 1.3.1

06 May 23:45
Compare
Choose a tag to compare
  • Database class refactored
  • With returns Database not Session object and can accept a prepare function called before Base.metadata.create_all
  • get_session can be used to obtain the session.
  • get_engine, get_reflected_classes, get_prepare_results methods added
  • build_view, build_views move into Database class and renamed prepare_view and prepare_views

Version 1.3.0

15 Feb 03:36
Compare
Choose a tag to compare

Add table_base parameter to setup

Version 1.2.9

15 Oct 22:49
d5662fa
Compare
Choose a tag to compare

Add build_view and build_views

Version 1.2.8

11 Oct 21:36
90b8f11
Compare
Choose a tag to compare
  • HAPI-215 Add SQLAlchemy views and make sshtunnel optional in #5

Full Changelog: 1.2.7...1.2.8

Version 1.2.7

01 Sep 02:19
c10f0f2
Compare
Choose a tag to compare

Default table name is set by converting camel case class name to snake case, for example MyTable becomes my_table.

Version 1.2.6

28 Aug 23:32
6b90d52
Compare
Choose a tag to compare

Add option to reflect database tables

Version 1.2.5

09 Aug 02:43
Compare
Choose a tag to compare

Use generated mkdocs.yml

Version 1.2.4

27 Jun 00:05
Compare
Choose a tag to compare

Version 1.2.3

05 Mar 22:15
Compare
Choose a tag to compare

Base must be chosen from hdx.database.no_timezone
(db_has_tz=False: the default) or hdx.database.with_timezone
(db_has_tz=True)

Version 1.2.2

05 Mar 22:04
Compare
Choose a tag to compare

database datetime columns are assumed to be timezoneless unless db_has_tz in Database init method is set to True