@@ -856,8 +856,11 @@ export class PostgresStorageAdapter {
|
|||||||
// schemas cannot be retrieved, returns a promise that rejects. Requirements for the
|
// schemas cannot be retrieved, returns a promise that rejects. Requirements for the
|
||||||
// rejection reason are TBD.
|
// rejection reason are TBD.
|
||||||
getAllClasses() {
|
getAllClasses() {
|
||||||
return this._ensureSchemaCollectionExists()
|
const self = this;
|
||||||
.then(() => this._client.map('SELECT * FROM "_SCHEMA"', null, row => toParseSchema({ className: row.className, ...row.schema })));
|
return this._client.task('get-all-classes', function * (t) {
|
||||||
|
yield self._ensureSchemaCollectionExists(t);
|
||||||
|
return yield t.map('SELECT * FROM "_SCHEMA"', null, row => toParseSchema({ className: row.className, ...row.schema }));
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// Return a promise for the schema with the given name, in Parse format. If
|
// Return a promise for the schema with the given name, in Parse format. If
|
||||||
|
|||||||
Reference in New Issue
Block a user