diff --git a/Getting-Started.md b/Getting-Started.md index f4e5556..29ed2ef 100644 --- a/Getting-Started.md +++ b/Getting-Started.md @@ -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).