Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
51 lines (43 sloc)
1.46 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Sqlite | Ebean ORM</title> | |
<meta name="layout" content="_layout2/base-docs.html"/> | |
<meta name="bread1" content="Database platforms" href="/docs/database"/> | |
<meta name="bread2" content="Sqlite" href="/docs/database/sqlite"/> | |
<#assign n0_docs="active"> | |
<#assign n1_platforms="active"> | |
<#assign n2_sqlite="active"> | |
</head> | |
<body> | |
<h2>Sqlite</h2> | |
<h3>Testing</h3> | |
<p> | |
To test using Sqlite set the <em>platform</em> to <code>sqlite</code> in | |
<code>src/test/resources/application-test.yaml</code> | |
</p> | |
<p> | |
Refer to <a href="/docs/testing">docs / testing</a> if application-test.yaml doesn't exist yet. | |
</p> | |
<pre content="yml"> | |
ebean: | |
test: | |
platform: sqlite # h2, postgres, mysql, oracle, sqlserver | |
ddlMode: dropCreate # none | dropCreate | migrations | |
dbName: test | |
</pre> | |
<p> | |
The above will use the following defaults: | |
</p> | |
<table class="compact w100"> | |
<tr><th>url:</th><td>jdbc:sqlite:{databaseName}</td></tr> | |
<tr><th>driver:</th><td>org.sqlite.JDBC</td></tr> | |
<tr><th>isolationlevel:</th><td>read_uncommitted</td></tr> | |
</table> | |
<h2 id="ebean-sqlite">ebean-sqlite dependency</h2> | |
<p> | |
We can use the <code>io.ebean:ebean-sqlite</code> dependency rather than <code>io.ebean:ebean</code> if we want to only | |
bring in the Sqlite specific platform code. Depending on <code>io.ebean:ebean</code> will bring in all platforms. | |
</p> | |
<@next_edit "ClickHouse" "/docs/database/clickhouse" "/docs/database/sqlite/index.html"/> | |
</body> | |
</html> |