Skip to content

Releases: kurotych/sqlant

v0.4.0

11 Nov 18:26
Compare
Choose a tag to compare

What's Changed

Improved readability and maintainability of PlantUML code by adding reusable components to the repository. Now using db_ent.puml from PUML Library.

New syntax example:

@startuml

hide circle
skinparam linetype ortho

!include https://raw.githubusercontent.com/kurotych/sqlant/b2e5db9ed8659f281208a687a344b34ff38129cd/puml-lib/db_ent.puml

table(customer) {
  column(id, "bigint", $pk=true, $nn=true)
  ---
  column(address, "text", $nn=true)
  column(name, "text", $nn=true)
  column(phone_number, "text", $nn=true)
  column(registered_at, "timestamp with time zone", $nn=true)
  column(zip_code, "text", $nn=true)
}

table(customer_order) {
  column(id, "bigint", $pk=true, $nn=true)
  ---
  column(customer_id, "bigint", $fk=true, $nn=true)
  column(delivery_method, "text", $nn=true)
  column(ordered_at, "timestamp with time zone", $nn=true)
  column(payment_method, "text", $nn=true)
  column(shipping_address, "text", $nn=true)
  column(total_price, "numeric", $nn=true)
  column(total_tax_amount, "numeric", $nn=true)
}

customer_order }o--|| customer

enum(product_category, "electronics, jewelry, home")

add_legend()
@enduml

Sqlant v0.3.4

10 Nov 16:15
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.3.1...v0.3.4

Sqlant v0.3.1

14 Apr 10:46
Compare
Choose a tag to compare
  • Remove all unwraps from the library codebase to make the "sqlant" safe to use as a library
  • Add async support

Sqlant v0.3.0

05 Apr 09:31
Compare
Choose a tag to compare
  • Fix the bug with PlantUML, now it requires "class" keyword #24
  • Make "stable" columns and tables output. #22
  • Improve experience using the sqlant as a library

Sqlant v0.2.0

29 Oct 17:17
Compare
Choose a tag to compare

Add mermaid support
image

Sqlant v0.1.5

25 Apr 13:59
Compare
Choose a tag to compare

Sqlant v0.1.4

13 Feb 15:03
Compare
Choose a tag to compare
  • Added custom schema name support
    -s, --schema <schema> Schema name [default: public]
  • Improved CLI experience
  • Handle case properly when schema doesn't exist

Sqlant v0.1.3

10 Oct 17:00
Compare
Choose a tag to compare

Add key argument -e or --en to render ENUM types

image

Sqlant v0.1.2

25 Sep 17:03
Compare
Choose a tag to compare

Add key argument -n or --nn to render NOT_NULL constraint
image

Sqlant v0.1.1

19 Sep 18:38
Compare
Choose a tag to compare

Support table names with double quotas