Skip to content
This repository was archived by the owner on Oct 14, 2018. It is now read-only.

Commit 67fafb4

Browse files
committed
Update readme
1 parent 4c9e3ed commit 67fafb4

File tree

2 files changed

+19
-7
lines changed

2 files changed

+19
-7
lines changed

Readme.md

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ ALTER TABLE article
2626
REFERENCES test_user (id);
2727
```
2828

29-
scala-db-codegen will then generate ["type all the things!"](http://jto.github.io/articles/type-all-the-things/)
29+
`scala-db-codegen` will then generate ["type all the things!"](http://jto.github.io/articles/type-all-the-things/)
3030
code like this
3131

3232
```scala
@@ -68,24 +68,24 @@ It could in theory also generate the code differently.
6868
## CLI
6969

7070
Download 13kb bootstrap script
71-
[`db-codegen`](https://github.com/olafurpg/scala-db-codegen/blob/master/db-codegen)
71+
[`scala-db-codegen`](https://github.com/olafurpg/scala-db-codegen/blob/master/scala-db-codegen)
7272
and execute it.
7373
The script will download all dependencies on first execution.
7474

7575
```scala
7676
// print to stdout, works with running postgres instance on
7777
// localhost:5432 with user "postgres", password "postgres" and database "postgres"
78-
$ db-codegen
78+
$ scala-db-codegen
7979
// Override any default settings with flags.
80-
$ db-codegen --user myuser --password mypassword --url jdbc:postgresql://myhost:8888/postgres --file Tables.scala --type-map "bool,Boolean;int4,Int;int8,Long"
80+
$ scala-db-codegen --user myuser --password mypassword --url jdbc:postgresql://myhost:8888/postgres --file Tables.scala --type-map "bool,Boolean;int4,Int;int8,Long"
8181
...
8282
```
8383

8484
For more details:
8585
```shell
86-
$ db-codegen --help
87-
db-codegen 0.1.0
88-
Usage: db-codegen [options]
86+
$ scala-db-codegen --help
87+
scala-db-codegen 0.2.0
88+
Usage: scala-db-codegen [options]
8989
--usage
9090
Print usage and exit
9191
--help | -h
@@ -152,6 +152,18 @@ Instead of learning more about slick models and which methods to override
152152
on the slick code generator, I decided to roll my own code generator and
153153
hopefully learn more about jdbc along the way :)
154154
155+
## Changelog
156+
157+
**0.2.0**
158+
159+
* Map nullable columns to `Option` types.
160+
* Rename maven artifact name to `scala-db-codegen` for consistency.
161+
162+
**0.1.0**
163+
164+
* Basic code generation
165+
* Command line interface
166+
155167
[travisImg]: https://travis-ci.org/olafurpg/scala-db-codegen.svg?branch=master
156168
[travisLink]: https://travis-ci.org/olafurpg/scala-db-codegen
157169
12.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)