You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://github.com/xerial/sqlite-jdbc/actions/workflows/ci.yml?query=branch%3Amaster)
3
-
[](https://gitter.im/xerial/sqlite-jdbc?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
SQLite JDBC is a library for accessing and creating [SQLite](https://www.sqlite.org) database files in Java.
4
+
image:https://img.shields.io/github/actions/workflow/status/xerial/sqlite-jdbc/ci.yml?branch=master[GitHub Workflow Status (branch),link=https://github.com/xerial/sqlite-jdbc/actions/workflows/ci.yml?query=branch%3Amaster]
5
+
image:https://badges.gitter.im/xerial/sqlite-jdbc.svg[Join the chat,link=https://gitter.im/xerial/sqlite-jdbc?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge]
SQLite JDBC is a library for accessing and creating https://www.sqlite.org[SQLite] database files in Java.
9
11
10
12
Our SQLiteJDBC library requires no configuration since native libraries for major OSs, including Windows, macOS, Linux etc., are assembled into a single JAR (Java Archive) file.
11
13
12
-
#Usage
14
+
==Usage
13
15
14
-
:arrow_right: More usage examples and configuration are available in [USAGE.md](USAGE.md)
16
+
➡️ More usage examples and configuration are available in link:USAGE.md[USAGE.md]
15
17
16
-
SQLite JDBC is a library for accessing SQLite databases through the JDBC API. For the general usage of JDBC, see [JDBC Tutorial](https://docs.oracle.com/javase/tutorial/jdbc/index.html) or [Oracle JDBC Documentation](https://www.oracle.com/technetwork/java/javase/tech/index-jsp-136101.html).
18
+
SQLite JDBC is a library for accessing SQLite databases through the JDBC API. For the general usage of JDBC, see https://docs.oracle.com/javase/tutorial/jdbc/index.html[JDBC Tutorial] or https://www.oracle.com/technetwork/java/javase/tech/index-jsp-136101.html[Oracle JDBC Documentation].
This will place both the `sqlitejdbc` shared library and the native-image output in the `~/outDir` folder.
135
147
136
-
### Maven example
137
-
This example uses the [native-build-tools](https://graalvm.github.io/native-build-tools/latest/index.html) maven plugin:
138
-
```xml
148
+
=== Maven example
149
+
150
+
This example uses the https://graalvm.github.io/native-build-tools/latest/index.html[native-build-tools] maven plugin:
151
+
152
+
[source,xml]
153
+
----
139
154
<plugin>
140
155
<groupId>org.graalvm.buildtools</groupId>
141
156
<artifactId>native-maven-plugin</artifactId>
@@ -145,56 +160,62 @@ This example uses the [native-build-tools](https://graalvm.github.io/native-buil
145
160
</buildArgs>
146
161
</configuration>
147
162
</plugin>
148
-
```
163
+
----
164
+
149
165
This will automatically place the `sqlitejdbc` library in the `/target` folder of your project, creating a functional execution environment.
150
166
When packaging the resulting app, simply include the library in the distribution bundle.
151
167
152
-
#Download
168
+
== Download
153
169
154
-
Download from [Maven Central](https://search.maven.org/artifact/org.xerial/sqlite-jdbc)or from the [releases](https://github.com/xerial/sqlite-jdbc/releases) page.
170
+
Download from https://search.maven.org/artifact/org.xerial/sqlite-jdbc[Maven Central] or from the https://github.com/xerial/sqlite-jdbc/releases[releases] page.
155
171
156
-
```xml
172
+
[source,xml,subs="attributes+"]
173
+
----
157
174
<dependencies>
158
175
<dependency>
159
176
<groupId>org.xerial</groupId>
160
177
<artifactId>sqlite-jdbc</artifactId>
161
-
<version>(version)</version>
178
+
<version>{project-version}</version>
162
179
</dependency>
163
180
</dependencies>
164
-
```
181
+
----
182
+
183
+
Snapshots of the development version are available in https://oss.sonatype.org/content/repositories/snapshots/org/xerial/sqlite-jdbc/[Sonatype's snapshots repository].
165
184
166
-
Snapshots of the development version are available in [Sonatype's snapshots repository](https://oss.sonatype.org/content/repositories/snapshots/org/xerial/sqlite-jdbc/).
185
+
=== Project versioning explained
167
186
168
-
## Project versioning explained
169
187
The project's version follows the version of the SQLite library that is bundled in the jar, with an extra digit to denote the project's increment.
170
188
171
189
For example, if the SQLite version is `3.39.2`, the project version will be `3.39.2.x`, where `x` starts at 0, and increments with every release that is not changing the SQLite version.
172
190
173
191
If the SQLite version is updated to `3.40.0`, the project version will be updated to `3.40.0.0`.
174
192
175
-
##Hint for maven-shade-plugin
193
+
=== Hint for maven-shade-plugin
176
194
177
195
You may need to add shade plugin transformer to solve `No suitable driver found for jdbc:sqlite:` issue.
-**Reviewers** for issues or PRs, you can check https://github.com/xerial/sqlite-jdbc/labels/review%20wanted
198
-
-**Contributors** to submit PRs, you can check https://github.com/xerial/sqlite-jdbc/labels/help%20wanted and https://github.com/xerial/sqlite-jdbc/labels/good%20first%20issue
- *Reviewers* for issues or PRs, you can check image:https://img.shields.io/github/labels/xerial/sqlite-jdbc/review%20wanted[GitHub labels,link=https://github.com/xerial/sqlite-jdbc/labels/review%20wanted]
219
+
- *Contributors* to submit PRs, you can check image:https://img.shields.io/github/labels/xerial/sqlite-jdbc/help%20wanted[GitHub labels,link=https://github.com/xerial/sqlite-jdbc/labels/help%20wanted] and image:https://img.shields.io/github/labels/xerial/sqlite-jdbc/good%20first%20issue[GitHub labels,link=https://github.com/xerial/sqlite-jdbc/labels/good%20first%20issue]
See https://docs.github.com/en/code-security/security-advisories/guidance-on-reporting-and-writing/privately-reporting-a-security-vulnerability#privately-reporting-a-security-vulnerability
0 commit comments