SQLiteKt

Added in 2.5.0-alpha02

public final class SQLiteKt


Summary

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.

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.