mirror of
https://github.com/jlengrand/exposed-wiki.git
synced 2026-03-10 08:11:18 +00:00
Updated Getting Started (markdown)
This commit is contained in:
committed by
Andrey.Tarashevskiy
parent
2352755281
commit
8f3f94a0f8
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user