Home | History | Annotate | Download | only in SQLite

Lines Matching full:sqlite

1 package SQLite;
4 * Main class wrapping an SQLite database.
10 * Internal handle for the native SQLite API.
22 * Open an SQLite database file.
28 public void open(String filename, int mode) throws SQLite.Exception {
30 mode = SQLite.Constants.SQLITE_OPEN_READWRITE |
31 SQLite.Constants.SQLITE_OPEN_CREATE;
33 mode = SQLite.Constants.SQLITE_OPEN_READONLY;
38 } catch (SQLite.Exception se) {
49 * Open an SQLite database file.
53 * @param vfs VFS name (for SQLite >= 3.5)
57 throws SQLite.Exception {
59 mode = SQLite.Constants.SQLITE_OPEN_READWRITE |
60 SQLite.Constants.SQLITE_OPEN_CREATE;
62 mode = SQLite.Constants.SQLITE_OPEN_READONLY;
67 } catch (SQLite.Exception se) {
78 * Open an SQLite database file.
82 * @param vfs VFS name (for SQLite >= 3.5)
87 throws SQLite.Exception {
89 mode = SQLite.Constants.SQLITE_OPEN_READWRITE |
90 SQLite.Constants.SQLITE_OPEN_CREATE;
92 mode = SQLite.Constants.SQLITE_OPEN_READONLY;
97 } catch (SQLite.Exception se) {
108 * For backward compatibility to older sqlite.jar, sqlite_jni
112 throws SQLite.Exception;
120 throws SQLite.Exception;
123 * Open SQLite auxiliary database file for temporary
129 public void open_aux_file(String filename) throws SQLite.Exception {
136 throws SQLite.Exception;
151 * Close the underlying SQLite database file.
154 public void close() throws SQLite.Exception {
161 throws SQLite.Exception;
167 * It the method fails, an SQLite.Exception is thrown and
175 public void exec(String sql, SQLite.Callback cb) throws SQLite.Exception {
181 private native void _exec(String sql, SQLite.Callback cb)
182 throws SQLite.Exception;
198 * It the method fails, an SQLite.Exception is thrown and
207 public void exec(String sql, SQLite.Callback cb,
208 String args[]) throws SQLite.Exception {
214 private native void _exec(String sql, SQLite.Callback cb, String args[])
215 throws SQLite.Exception;
231 * Abort the current SQLite operation.
256 * an SQLite table is locked.
261 public void busy_handler(SQLite.BusyHandler bh) {
267 private native void _busy_handler(SQLite.BusyHandler bh);
270 * Set the timeout for waiting for an SQLite table to become
294 throws SQLite.Exception {
299 } catch (SQLite.Exception e) {
332 public TableResult get_table(String sql) throws SQLite.Exception {
347 throws SQLite.Exception {
352 } catch (SQLite.Exception e) {
387 throws SQLite.Exception {
401 throws SQLite.Exception {
406 } catch (SQLite.Exception e) {
444 * Return SQLite version number as string.
445 * Don't rely on this when both SQLite 2 and 3 are compiled
452 * Return SQLite version number as string.
491 * Set function return type. Only available in SQLite 2.6.0 and
495 * @param type return type code, e.g. SQLite.Constants.SQLITE_NUMERIC
513 * @return SQLite error code
544 * Return error string given SQLite error code (SQLite2).
557 public void set_encoding(String enc) throws SQLite.Exception {
564 throws SQLite.Exception;
567 * Set authorizer function. Only available in SQLite 2.7.6 and
582 * Set trace function. Only available in SQLite 2.7.6 and above,
597 * Initiate a database backup, SQLite 3.x only.
606 throws SQLite.Exception {
617 throws SQLite.Exception;
620 * Set profile function. Only available in SQLite 3.6 and above,
635 * Return information on SQLite runtime status.
636 * Only available in SQLite 3.6 and above,
643 * @return SQLite error code
653 * Return information on SQLite connection status.
654 * Only available in SQLite 3.6 and above,
661 * @return SQLite error code
673 * Compile and return SQLite VM for SQL statement. Only available
674 * in SQLite 2.8.0 and above, otherwise a no-op.
680 public Vm compile(String sql) throws SQLite.Exception {
689 * Compile and return SQLite VM for SQL statement. Only available
690 * in SQLite 3.0 and above, otherwise a no-op.
697 public Vm compile(String sql, String args[]) throws SQLite.Exception {
707 * in SQLite 3.0 and above, otherwise a no-op.
713 public Stmt prepare(String sql) throws SQLite.Exception {
722 * Open an SQLite3 blob. Only available in SQLite 3.4.0 and above.
732 long row, boolean rw) throws SQLite.Exception {
754 throws SQLite.Exception;
757 * Internal compile method, SQLite 3.0 only.
764 throws SQLite.Exception;
773 throws SQLite.Exception;
776 * Internal SQLite open blob method.
787 throws SQLite.Exception;
791 * N SQLite VM opcodes.
793 * @param n number of SQLite VM opcodes until callback is invoked
797 public void progress_handler(int n, SQLite.ProgressHandler p) {
803 private native void _progress_handler(int n, SQLite.ProgressHandler p);
808 * Not available in public releases of SQLite.
813 public void key(byte[] ekey) throws SQLite.Exception {
822 * Not available in public releases of SQLite.
827 public void key(String skey) throws SQLite.Exception {
846 * Not available in public releases of SQLite.
851 public void rekey(byte[] ekey) throws SQLite.Exception {
860 * Not available in public releases of SQLite.
865 public void rekey(String skey) throws SQLite.Exception {
882 * Enable/disable shared cache mode (SQLite 3.x only).
916 public static long long_from_julian(String s) throws SQLite.Exception {
921 throw new SQLite.Exception("not a julian date");
944 String path = System.getProperty("SQLite.library.path");
960 "SQLite.library.path=" + path +