Search in sources :

Example 1 with BundledQuery

use of com.google.firestore.bundle.BundledQuery in project firebase-android-sdk by firebase.

the class SQLiteBundleCache method saveNamedQuery.

@Override
public void saveNamedQuery(NamedQuery query) {
    BundledQuery bundledQuery = serializer.encodeBundledQuery(query.getBundledQuery());
    db.execute("INSERT OR REPLACE INTO named_queries " + "(name, read_time_seconds, read_time_nanos, bundled_query_proto) " + "VALUES (?, ?, ?, ?)", query.getName(), query.getReadTime().getTimestamp().getSeconds(), query.getReadTime().getTimestamp().getNanoseconds(), bundledQuery.toByteArray());
}
Also used : BundledQuery(com.google.firestore.bundle.BundledQuery)

Aggregations

BundledQuery (com.google.firestore.bundle.BundledQuery)1