File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed
Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @sqlitecloud/drivers" ,
3- "version" : " 0.0.53 " ,
3+ "version" : " 0.0.54 " ,
44 "description" : " SQLiteCloud drivers for Typescript/Javascript in edge, web and node clients" ,
55 "main" : " ./lib/index.js" ,
66 "types" : " ./lib/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ console.debug(`@sqlitecloud/gateway v${packageJson.version}`)
3131const app = express ( )
3232app . use ( express . json ( ) )
3333app . use ( express . static ( 'public' ) )
34+ const appStartedOn = new Date ( )
3435
3536// server for socket.io and http endpoints
3637const server = http . createServer ( app )
@@ -183,15 +184,16 @@ function getServerInfo() {
183184 data : {
184185 name : '@sqlitecloud/gateway' ,
185186 version : packageJson . version ,
187+ started : appStartedOn . toISOString ( ) ,
188+ uptime : `${ Math . floor ( process . uptime ( ) / 3600 ) } h:${ Math . floor ( ( process . uptime ( ) % 3600 ) / 60 ) } m:${ Math . floor ( process . uptime ( ) % 60 ) } s` ,
186189 bun : {
187190 version : Bun . version ,
188191 path : Bun . which ( 'bun' ) ,
189192 main : Bun . main ,
190193 uptime : Math . floor ( Bun . nanoseconds ( ) / 1e9 ) // seconds
191194 } ,
192195 memory,
193- cpuUsage : process . cpuUsage ( ) ,
194- date : new Date ( ) . toISOString ( )
196+ cpuUsage : process . cpuUsage ( )
195197 }
196198 }
197199}
Original file line number Diff line number Diff line change @@ -47,6 +47,16 @@ describe('benchmark', () => {
4747 await destroyDatabaseAsync ( connection , database )
4848 } )
4949
50+ it (
51+ 'should run script 090.sql' ,
52+ async ( ) => {
53+ const { connection, database } = await createDatabaseAsync ( )
54+ await runScript ( connection , database , '090.sql' )
55+ await destroyDatabaseAsync ( connection , database )
56+ } ,
57+ EXTRA_LONG_TIMEOUT
58+ )
59+
5060 it (
5161 'should run script 120.sql' ,
5262 async ( ) => {
You can’t perform that action at this time.
0 commit comments