⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tst1012.mal

📁 一个内存数据库的源代码这是服务器端还有客户端
💻 MAL
字号:
# the first of a series of BBP test casesbbp.open();b:= bat.new(:int,:int);bat.insert(b,1,2);bbp.deposit("mysecondbat",b);c:= bbp.take("mysecondbat");io.print(c);bat.setPersistent(b);x:= bat.isPersistent(b);z:= bat.isTransient(b);io.print(x); io.print(z); io.print("");bat.setTransient(b);x:= bat.isPersistent(b);z:= bat.isTransient(b);io.print(x); io.print(z); io.print("");bbp.close();# at the end of the session, the BBP should have discarded# the temporary bats of the user# aug 02 this does not work, because the transaction is# not properly closed. This means that a temporary bat#remains in store.bbp.open();v:= bbp.take("mysecondbat");io.print(v);bbp.close();

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -