Updated Getting Started (markdown)

This commit is contained in:
H_IngJao
2018-05-16 22:21:21 +08:00
committed by Andrey.Tarashevskiy
parent 2352755281
commit 8f3f94a0f8

View File

@@ -68,6 +68,25 @@ transaction {
}
```
### DataSource
* PostgreSQL
* MySQL
> Code:
> Database.connect("jdbc:mysql://localhost:3306/niuniu_server",driver = "org.sqlite.JDBC", user = "root", password = "your_pwd")
> Gradle:
> maven{ url 'https://mvnrepository.com/artifac/'}
> compile "mysql:mysql-connector-java:5.1.46"
* Oracle
+ SQLite
> Code:
> Database.connect("jdbc:sqlite:/data/data.db", "org.sqlite.JDBC")
> Gradle:
> maven{ url 'https://mvnrepository.com/artifac/'}
> compile group: 'org.xerial', name: 'sqlite-jdbc', version: '3.7.2'
* H2
* SQL Server
### DSL & DAO
Expose comes in two flavors: DSL (Domain Specific Language) and DAO (Data Access Object).