File tree Expand file tree Collapse file tree
src/packages/pongo/src/commandLine Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import { JSONSerializer } from '@event-driven-io/dumbo' ;
1+ import { JSONSerializer , SQL } from '@event-driven-io/dumbo' ;
22import chalk from 'chalk' ;
33import Table from 'cli-table3' ;
44import { Command } from 'commander' ;
@@ -95,12 +95,19 @@ const startRepl = (options: {
9595
9696 // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
9797 r . context . db = db ;
98+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
99+ r . context . SQL = SQL ;
98100
99101 // Intercept REPL output to display results as a table if they are arrays
100102 r . on ( 'exit' , async ( ) => {
101103 await teardown ( ) ;
102104 process . exit ( ) ;
103105 } ) ;
106+
107+ r . on ( 'SIGINT' , async ( ) => {
108+ await teardown ( ) ;
109+ process . exit ( ) ;
110+ } ) ;
104111} ;
105112
106113const teardown = async ( ) => {
You can’t perform that action at this time.
0 commit comments