UNPKG

@electric-sql/drivers

Version:

ElectricSQL database drivers.

23 lines 417 B
class MockDatabase { name; fail; constructor(dbName, fail) { this.name = dbName; this.fail = fail; } async exec(_statement) { if (typeof this.fail !== "undefined") throw this.fail; const dbName = this.name; return [ { db: dbName, val: 1 }, { db: dbName, val: 2 } ]; } getRowsModified() { return 0; } } export { MockDatabase }; //# sourceMappingURL=mock.js.map