SQLite

Added in 2.5.0-alpha10

public final class SQLite


Summary

Constants

static final int

The data type for a BLOB value, i.e. binary data.

static final int

The data type for a 64-bit IEEE floating point number.

static final int

The data type for a 64-bit signed integer.

static final int

The data type for a NULL value.

static final int

The data type for a String.

Public methods

static final void

Executes a single SQL statement that returns no values.

static final @NonNull Void
throwSQLiteException(int errorCode, String errorMsg)

Throws a SQLiteException with its message formed by the given errorCode amd errorMsg.

static final @NonNull R
<R extends Object> use(
    @NonNull SQLiteStatement receiver,
    @NonNull Function1<@NonNull SQLiteStatement, @NonNull R> block
)

Use the receiver statement within the block and closes it once it is done.

Constants

SQLITE_DATA_BLOB

public static final int SQLITE_DATA_BLOB = 4

The data type for a BLOB value, i.e. binary data.

SQLITE_DATA_FLOAT

public static final int SQLITE_DATA_FLOAT = 2

The data type for a 64-bit IEEE floating point number.

SQLITE_DATA_INTEGER

public static final int SQLITE_DATA_INTEGER = 1

The data type for a 64-bit signed integer.

SQLITE_DATA_NULL

public static final int SQLITE_DATA_NULL = 5

The data type for a NULL value.

SQLITE_DATA_TEXT

public static final int SQLITE_DATA_TEXT = 3

The data type for a String.

Public methods

execSQL

public static final void execSQL(@NonNull SQLiteConnection receiver, @NonNull String sql)

Executes a single SQL statement that returns no values.

throwSQLiteException

public static final @NonNull Void throwSQLiteException(int errorCode, String errorMsg)

Throws a SQLiteException with its message formed by the given errorCode amd errorMsg.

public static final @NonNull R <R extends Object> use(
    @NonNull SQLiteStatement receiver,
    @NonNull Function1<@NonNull SQLiteStatement, @NonNull R> block
)

Use the receiver statement within the block and closes it once it is done.