@rip-lang/db 0.8.4 → 0.8.5
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.
- package/db.rip +3 -3
- package/package.json +1 -1
package/db.rip
CHANGED
|
@@ -241,8 +241,8 @@ get '/ui', -> new Response Bun.file(import.meta.dir + '/db.html')
|
|
|
241
241
|
# POST /ddb/run — Execute SQL and return binary result (DuckDB UI protocol)
|
|
242
242
|
post '/ddb/run', (req) ->
|
|
243
243
|
try
|
|
244
|
-
sql = req.
|
|
245
|
-
console.log "POST /ddb/run", sql?.slice(0, 100)
|
|
244
|
+
sql = req.text!
|
|
245
|
+
console.log "POST /ddb/run", sql?.slice?(0, 100) or sql
|
|
246
246
|
|
|
247
247
|
return binaryResponse serializeErrorResult 'Empty query' unless sql?.trim()
|
|
248
248
|
|
|
@@ -282,7 +282,7 @@ post '/ddb/interrupt', ->
|
|
|
282
282
|
|
|
283
283
|
# POST /ddb/tokenize — Tokenize SQL for syntax highlighting
|
|
284
284
|
post '/ddb/tokenize', (req) ->
|
|
285
|
-
sql = req.
|
|
285
|
+
sql = req.text! or ''
|
|
286
286
|
tokens = tokenizeSQL sql
|
|
287
287
|
binaryResponse serializeTokenizeResult tokens
|
|
288
288
|
|