@nsshunt/stsfhirpg 1.0.28 → 1.0.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17560,6 +17560,21 @@ var PGFhirAccessLayer = class extends import_tiny_emitter.TinyEmitter {
17560
17560
  _nsshunt_stsutils.defaultLogger.error(`DBSTSResource:ExecuteReadQuery(): Connection Error: [${error}]`);
17561
17561
  }
17562
17562
  };
17563
+ TruncateAll = async () => {
17564
+ if (this.#poolManager) try {
17565
+ let client;
17566
+ client = await this.#poolManager.connectReadWrite();
17567
+ try {
17568
+ client.query("TRUNCATE TABLE stsresfhir, stsresfhirver, stsresfhirlink, stsresfhirstring, stsresfhirtoken, stsresfhirquantity, stsresfhirnumber, stsresfhiruri, stsresfhirdate, stsresfhircoords, stsresfhircombo");
17569
+ } catch (error) {
17570
+ _nsshunt_stsutils.defaultLogger.error(`DBSTSResource:TruncateAll(): Query Error: [${error}]`);
17571
+ } finally {
17572
+ client.release();
17573
+ }
17574
+ } catch (error) {
17575
+ _nsshunt_stsutils.defaultLogger.error(`DBSTSResource:TruncateAll(): Connection Error: [${error}]`);
17576
+ }
17577
+ };
17563
17578
  };
17564
17579
  //#endregion
17565
17580
  exports.DBSearchIndex = DBSearchIndex;