SQLiteJDBC

SQLiteJDBC is a Java JDBC driver for SQLite 3. It comes as either a pure Java driver based on NestedVM or a native JNI library. Native binaries are provided for Mac OS X and Windows.

Tags Database API Software Development Libraries
Licenses BSD Revised
Operating Systems Mac OS X Windows Windows POSIX BSD Linux
Implementation Java

Tweet this project Short link

Rss Recent releases

  • Rrelease-mid
  •  06 Dec 2008 21:55
  • Rrelease-after

Changes: The code was updated for SQLite 3.6.3. The constraints on setMaxRows() were relaxed.

  • Rrelease-mid
  •  14 Aug 2008 23:15
  • Rrelease-after

Changes: This release has been upgraded to SQLite 3.6.1, and a Linux/AMD-64 binary has been added to the combined jar.

  • Rrelease-mid
  •  27 Jun 2008 22:57
  • Rrelease-after

Changes: Closing a closed statement now has no effect, and there are other bugfixes. Binary size has shrunk, and whether the amalgamated jar is running in pure or native mode can be determined by DatabaseMetaData.getDriverVersion().

  • Rrelease-mid
  •  19 Jun 2008 09:20
  • Rrelease-after

Changes: The native Linux binary was fixed.

  • Rrelease-mid
  •  17 Jun 2008 13:25
  • Rrelease-after

Changes: The driver has been repackaged with the binaries and a pure Java driver is provided in the same jar file. Use of the library path is no longer necessary.

Rss Recent comments

Rcomment-before 16 Jun 2009 08:11 Rcomment-trans francesco_alesiani Rcomment-after

is it possible to load sqlite extension? (based on platform, e.g. .so or .dll)?

Thank you,
Francesco

Rcomment-before 06 Jun 2009 04:06 Rcomment-trans 5a07b8654ed46868cde225ab8c238d48_tiny cbare Rcomment-after

I'd like to compile the JNI bindings for 64-bit OS X so the sqlite-jdbc drive can be used in native mode from Java 6 on OS X (which is 64-bit only). If anyone would be willing to help me, that would be great.

Rcomment-before 23 Apr 2009 01:57 Rcomment-trans lilbill39 Rcomment-after

First off, thanks for this great tool...I too am a mathematics major graduating this semester! Does this driver support running SQLite's dot commands like, '.output', '.mode' etc?

Rcomment-before 09 Apr 2009 15:57 Rcomment-trans naquah Rcomment-after

There appears to be a problem with wasNull() after getObject() has been called. I submitted a ticket about this, but I'm not sure if that is the right way to submit a bug.

In particular, the implementation of getObject() in the RS class calls the checkCol() method, while all other get*() methods call the markCol() method. Only the markCol() method properly updates the lastCol instance variable, which in turn is used by the wasNull() method.

This is making Hibernate fail with enum fields that are NULL.

Rcomment-before 29 Mar 2009 13:09 Rcomment-trans civildisobedient Rcomment-after

This + Hibernate + SQLite = the easiest data store you'll ever need for a webapp. Thank you!

A couple of gotchas: doesn't handle Timestamp.class very well (workaround: store timestamps in unix "secs. since epoch" format, then write a special Hibernate UserType to convert back and forth). Also, you must be VERY specific with your connection path (jdbc:sqlite:[database.db]), otherwise you'll see empty databases with no tables. The problem is that the default behavior of SQLite is to create a *new* database when it doesn't find the database file. Which means if you specify the wrong connection path, it just happily gives you a new, blank database instead of an exception. If you're running, say, SquirrelSQL from C:\Program Files\squirrelsql, you have to use relative paths and "walk" up the file tree, then back down again to the directory of your database file. For instance: jdbc:sqlite:..\..\db\database.db.

50606b47c7a05c5b08110448b438e844_thumb

Project Spotlight

Gallery

A slick Web-based photo album written using PHP.

9b05239d80de5665840ba1d2a276f00a_thumb

Project Spotlight

Maarch LetterBox

A mail-management-oriented DMS application based on Maarch Framework.