命令行方式 F# and JavaScript
#r "iBoxDB.dll"
open iBoxDB.LocalServer
open System
DB.Root( "C:\\DB" )
let db = new DB()
let auto = db.Open()
for v in auto.Select("from OT limit 0 , 2") do
Console.WriteLine(DB.ToString(v))
for v in auto.GetDatabase().GetSchemata() do
Console.WriteLine(v.Key)
db.Dispose()
//jjs -cp iBoxDB.jar
var DB = Java.type("iBoxDB.LocalServer.DB")
DB.root("/db/")
var db = new DB()
var auto = db.open()
auto.select("from table1 limit 0,3")
.forEach( function(v){ print(v) })
auto.getDatabase().getSchemata()
.forEach( function(v){ print(v) })
db.close()