RoomRawQuery


public final class RoomRawQuery


A query with an argument binding function.

See also
RawQuery

Summary

Public constructors

RoomRawQuery(
    @NonNull String sql,
    @NonNull Function1<@NonNull SQLiteStatementUnit> onBindStatement
)

Public methods

final @NonNull Function1<@NonNull SQLiteStatementUnit>
final @NonNull String

The SQL query.

Public constructors

RoomRawQuery

Added in 2.7.0-alpha12
public RoomRawQuery(
    @NonNull String sql,
    @NonNull Function1<@NonNull SQLiteStatementUnit> onBindStatement
)

Public methods

getBindingFunction

Added in 2.7.0-alpha12
public final @NonNull Function1<@NonNull SQLiteStatementUnitgetBindingFunction()

getSql

Added in 2.7.0-alpha12
public final @NonNull String getSql()

The SQL query.

The query can have placeholders (?) to bind arguments.