Files
marqdo/tests/ext/web-db-cross-module-smoke.mq.md
T
cflmyandCursor b5c07385e9 feat(markup): finish v0.3 stock migration and green gold
Migrate remaining .mq.md (tests/ext/public/examples), stop elevating local assigns to params, inject form_target in Go libweb, and skip live LLM gold without a real key.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-13 23:43:44 +08:00

555 B


title: web db cross-module smoke description: Return a web.db handle from an imported module and call select in the entry module. import web:ext/web/web.mq.md import plugin:lib/plugin.mq.md import sys:lib/sys.mq.md import storemod:web-db-cross-module-lib.mq.md

main

p = > plugin.native_path name="web"

  1. p

plugin.load path=p

sys.exit code=1

store = > storemod.open rows = > store.select table="items" limit=10 n = > len value=rows

  1. n >= 1

print text=cross-db-ok

print text=cross-db-fail