Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
tminglei committed Apr 13, 2014
2 parents e9c7da1 + bc34a79 commit 902a80a
Showing 1 changed file with 21 additions and 10 deletions.
31 changes: 21 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,50 +5,56 @@ Slick-pg
####Currently supported pg types:
- ARRAY
- Date/Time
- Enum
- Range
- Hstore
- JSON
- `text` Search
- `postgis` Geometry
- Composite type (`basic`)

** _tested on `PostgreSQL` `v9.3` with `Slick` `v2.0.0`._
** _tested on `PostgreSQL` `v9.3` with `Slick` `v2.0.1`._

Install
-------
To use `slick-pg` in [sbt](http://www.scala-sbt.org/ "slick-sbt") project, add the following to your project file:
```scala
libraryDependencies += "com.github.tminglei" % "slick-pg_2.10" % "0.5.2.3"
libraryDependencies += "com.github.tminglei" % "slick-pg_2.10" % "0.5.3"
```

> If you need `play-json` support, pls append dependency:
```scala
libraryDependencies += "com.github.tminglei" % "slick-pg_play-json_2.10" % "0.5.2.3"
libraryDependencies += "com.github.tminglei" % "slick-pg_play-json_2.10" % "0.5.3"
```

> If you need `joda-time` support, pls append dependency:
```scala
libraryDependencies += "com.github.tminglei" % "slick-pg_joda-time_2.10" % "0.5.2.3"
libraryDependencies += "com.github.tminglei" % "slick-pg_joda-time_2.10" % "0.5.3"
```

> If you need `jts` geom support, pls append dependency:
```scala
libraryDependencies += "com.github.tminglei" % "slick-pg_jts_2.10" % "0.5.2.3"
libraryDependencies += "com.github.tminglei" % "slick-pg_jts_2.10" % "0.5.3"
```

> If you need `json4s` support, pls append dependency:
```scala
libraryDependencies += "com.github.tminglei" % "slick-pg_json4s_2.10" % "0.5.2.3"
libraryDependencies += "com.github.tminglei" % "slick-pg_json4s_2.10" % "0.5.3"
```

> If you need `threeten` support, pls append dependency:
> If you need `jdk8 date` support, pls append dependency:
```scala
libraryDependencies += "com.github.tminglei" % "slick-pg_threeten_2.10" % "0.5.2.3"
libraryDependencies += "com.github.tminglei" % "slick-pg_date2_2.10" % "0.5.3"
```

> If you need `threeten-bp` support, pls append dependency:
```scala
libraryDependencies += "com.github.tminglei" % "slick-pg_threeten_2.10" % "0.5.3"
```

> If you need `spray-json` support, pls append dependency:
```scala
libraryDependencies += "com.github.tminglei" % "slick-pg_spray-json_2.10" % "0.5.2.3"
libraryDependencies += "com.github.tminglei" % "slick-pg_spray-json_2.10" % "0.5.3"
```


Expand All @@ -57,7 +63,7 @@ Or, in [maven](http://maven.apache.org/ "maven") project, you can add `slick-pg`
<dependency>
<groupId>com.github.tminglei</groupId>
<artifactId>slick-pg_2.10</artifactId>
<version>0.5.2.3</version>
<version>0.5.3</version>
</dependency>

<!-- append play-json/json4s/joda-time/jts/threeten/spray-json dependencies if needed -->
Expand Down Expand Up @@ -153,6 +159,7 @@ Here's the related technical details:
| List[T] | ARRAY |
| `sql` Date<br> Time<br> Timestamp<br> slickpg Interval<br> Calendar | date<br> time<br> timestamp<br> interval<br> timestamptz |
| `jada` LocalDate<br> LocalTime<br> LocalDateTime<br> Period<br> DateTime | date<br> time<br> timestamp<br> interval<br> timestamptz |
| `java.time` LocalDate<br> LocalTime<br> LocalDateTime<br> Duration<br> ZonedDateTime | date<br> time<br> timestamp<br> interval<br> timestamptz |
| `threeten.bp` LocalDate<br> LocalTime<br> LocalDateTime<br> Duration<br> ZonedDateTime | date<br> time<br> timestamp<br> interval<br> timestamptz |
| `slickpg` Range[T] | range |
| Map[String,String] | hstore |
Expand Down Expand Up @@ -199,6 +206,10 @@ Support details

Version history
------------------------------
v0.5.3 (13-Apr-2014):
1) added jdk8 time support
2) added pg enum support

v0.5.2 (13-Mar-2014):
1) added spray-json support

Expand Down

0 comments on commit 902a80a

Please sign in to comment.