SQLite

Class of snx.android.db · SQLite.java

public final class SQLite

SQLite's C library, the HLE of libsqlite and its JNI (src/android/db/sqlite_jni.c). Handles are its pointers.

Fields

public static final int OPEN_READONLY = 0x1 source
public static final int OPEN_READWRITE = 0x2 source
public static final int OPEN_CREATE = 0x4 source
public static final int ROW = 100 source
public static final int DONE = 101 source
public static final int INTEGER = 1 source
public static final int FLOAT = 2 source
public static final int TEXT = 3 source
public static final int BLOB = 4 source
public static final int NULL = 5 source

Methods

public static native long open(String path, int flags) native source

A database, or an exception with SQLite's message.

public static native void close(long db) native source
public static native long prepare(long db, String sql) native source
public static native void finalizeStatement(long statement) native source
public static native void reset(long statement) native source
public static native void clearBindings(long statement) native source
public static native int parameterCount(long statement) native source
public static native void bindNull(long statement, int index) native source
public static native void bindLong(long statement, int index, long value) native source
public static native void bindDouble(long statement, int index, double value) native source
public static native void bindString(long statement, int index, String value) native source
public static native void bindBlob(long statement, int index, byte[] value) native source
public static native int step(long statement) native source

One step: ROW or DONE, or an exception with SQLite's message.

public static native int columnCount(long statement) native source
public static native String columnName(long statement, int index) native source
public static native int columnType(long statement, int index) native source
public static native long columnLong(long statement, int index) native source
public static native double columnDouble(long statement, int index) native source
public static native String columnString(long statement, int index) native source
public static native byte[] columnBlob(long statement, int index) native source
public static native int changes(long db) native source
public static native long lastInsertRowId(long db) native source
public static native boolean readOnly(long statement) native source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.