Skip to content

Commit db9dd67

Browse files
committed
Release 0.1.0.1
1 parent 2546632 commit db9dd67

File tree

6 files changed

+21
-4
lines changed

6 files changed

+21
-4
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to the
77
[Haskell Package Versioning Policy](https://pvp.haskell.org/).
88

9-
## Unreleased
9+
## 0.1.0.1 - 2024-11-09
10+
11+
* Added CI/CD pipeline
12+
* Resolved several bugs related to table constraints.
13+
* Added test cases related to create statements.
1014

1115
## 0.1.0.0 - YYYY-MM-DD

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ stack run -- test.sql -o erd.svg
7878
- [ ] Adding support for interval data type
7979
- [x] GENERATED constraint
8080
- [ ] Parse 2D array
81+
- [ ] Gracefully ignore partition.
8182

8283
See the [open issues](https://github.com/tusharad/sql2er/issues) for a full list of proposed features (and known issues).
8384

example/test.sql

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
BEGIN;
22

3+
CREATE TABLE orders (
4+
order_id bigint not null,
5+
cust_id bigint not null,
6+
status text
7+
) PARTITION BY HASH (order_id);
8+
9+
CREATE TABLE cities (
10+
city_id bigserial not null,
11+
name text not null,
12+
population bigint
13+
) PARTITION BY LIST (left(lower(name), 1));
14+
315
CREATE TABLE emails (
416
email_record_id SERIAL PRIMARY KEY,
517
sender_email VARCHAR(50) NOT NULL,

package.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: sql2er
2-
version: 0.1.0.0
2+
version: 0.1.0.1
33
github: "tusharad/sql2er"
44
license: MIT
55
author: "tushar"

sql2er.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ cabal-version: 1.12
55
-- see: https://github.com/sol/hpack
66

77
name: sql2er
8-
version: 0.1.0.0
8+
version: 0.1.0.1
99
synopsis: A CLI tool that converts Postgres SQL file to ER-digram.
1010
description: Please see the README on GitHub at <https://github.com/tusharad/sql2er#readme>
1111
category: CLI

src/Sql2er/Parser/CreateTable.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ skipLikeClause = do
6464

6565
skipPartitioning :: Parser ()
6666
skipPartitioning = do
67-
_ <- string "partition by"
67+
_ <- lexeme (string "partition") *> lexeme (string "by")
6868
_ <- takeWhileP Nothing (/= ')')
6969
return ()
7070

0 commit comments

Comments
 (0)