File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed
Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -552,11 +552,6 @@ class PuddySqlInstance extends PuddySqlEngine {
552552
553553 // Set SQL methods (all, get, run)
554554 this . setSqlite3 ( this . #db) ;
555-
556- // Graceful shutdown on process termination
557- process . on ( 'SIGINT' , async ( ) => {
558- await this . destroy ( ) ;
559- } ) ;
560555 } else throw new Error ( 'SQL has already been initialized in this instance!' ) ;
561556 }
562557
@@ -719,11 +714,6 @@ class PuddySqlInstance extends PuddySqlEngine {
719714 // Set up the SQL methods (all, get, run)
720715 this . setPostgre ( this . #db) ;
721716
722- // Attach handler to close DB on process termination
723- process . on ( 'SIGINT' , async ( ) => {
724- await this . destroy ( ) ;
725- } ) ;
726-
727717 // Connect to the PostgreSQL database
728718 await this . #db. connect ( ) ;
729719 } else throw new Error ( 'SQL has already been initialized in this instance!' ) ;
You can’t perform that action at this time.
0 commit comments