导入时总是报-6代码,我是ubuntu上的,文件内容如下:
var db=new Sdb();
db.dropCS("foo");
db.createCS("foo");
db.foo.createCL("layout");
db.foo.layout.insert({_id:"564370e71513b7bcb59bc5e7",_reportid:"564470bd61972c2c9efa1ec1",collection:"_report",title:"报表编辑布局"});
db.foo.createCL("layoutfield");
db.foo.layoutfield.insert({_id:"5644707861972c2c9efa1ebd",_layoutid:"564370e71513b7bcb59bc5e7",name:"title",type:"string",xtype:"textfield",fieldLabel:"名称",allowBlank: false});
db.foo.layoutfield.insert({_id:"5644707e61972c2c9efa1ebe",_layoutid:"564370e71513b7bcb59bc5e7",name:"collection",type:"string",xtype:"textfield",fieldLabel:"集合名称",allowBlank: false});
db.foo.layoutfield.insert({_id:"5644708361972c2c9efa1ebf",_layoutid:"564370e71513b7bcb59bc5e7",name:"code",type:"string",xtype:"textfield",fieldLabel:"报表编号"});
db.foo.layoutfield.insert({_id:"5644708861972c2c9efa1ec0",_layoutid:"564370e71513b7bcb59bc5e7",name:"description",type:"string",xtype:"textareafield",fieldLabel:"备注",width:"90%"});
另外,文件导入有日志文件可以看吗?怎么操作法?
我现在是通过 /sdb -f init.txt