UNPKG

@naturalcycles/datastore-lib

Version:

Opinionated library to work with Google Datastore, implements CommonDB

8 lines (7 loc) 548 B
import type { Query } from '@google-cloud/datastore'; import type { RunQueryOptions } from '@google-cloud/datastore/build/src/query.js'; import type { DBQuery } from '@naturalcycles/db-lib'; import type { ObjectWithId } from '@naturalcycles/js-lib/types'; import type { DatastoreDBReadOptions } from './datastore.model.js'; export declare function dbQueryToDatastoreQuery<ROW extends ObjectWithId>(dbQuery: Readonly<DBQuery<ROW>>, emptyQuery: Query): Query; export declare function getRunQueryOptions(opt: DatastoreDBReadOptions): RunQueryOptions;