Skip to content

v2.1.0

Compare
Choose a tag to compare
@CrispenGari CrispenGari released this 24 Feb 16:23
· 42 commits to main since this release
451d9d6

===
Dataloom 2.1.0

Release Notes - dataloom

We have release the new dataloom Version 2.1.0 (2024-02-24)

Features
  • Connecting to databases using connection uri for all the supported dialects

    # postgress
    pg_loom = Loom(
      dialect="postgres",
      connection_uri = "postgressql://root:root@localhost:5432/hi",
     # ...
    )
    # mysql
    mysql_loom = Loom(
      dialect="mysql",
      connection_uri = "mysql://root:root@localhost:3306/hi",
     # ...
    )
    
    # sqlite
    sqlite_loom = Loom(
      dialect="sqlite",
     connection_uri = "sqlite:///hi.db",
     # ...
    )
  • updated documentation.

  • enable table alterations as an option of sync and connect_and_sync function.

    conn, tables = pg_loom.connect_and_sync([Profile, User], alter=True)

    🥇 We recommend you to use drop or force if you are going to change or modify foreign and primary keys. This is because setting the option alter doe not have an effect on primary key columns.