UNPKG

lambdaorm

Version:
1 lines 39 kB
'use strict';const a163p=a163y;(function(s,y){const r=a163y,g=s();while(!![]){try{const x=parseInt(r(0xde))/0x1+parseInt(r(0xed))/0x2+-parseInt(r(0xf2))/0x3+-parseInt(r(0xbd))/0x4*(-parseInt(r(0xbb))/0x5)+parseInt(r(0xc8))/0x6+parseInt(r(0xb1))/0x7*(-parseInt(r(0x99))/0x8)+parseInt(r(0xcb))/0x9*(parseInt(r(0xbf))/0xa);if(x===y)break;else g['push'](g['shift']());}catch(m){g['push'](g['shift']());}}}(a163s,0x6171c));function a163y(s,y){const O=a163s();return a163y=function(D,g){D=D-0x8b;let M=O[D];return M;},a163y(s,y);}var __awaiter=this&&this['__awaiter']||function(s,y,P,g){function x(m){return m instanceof P?m:new P(function(w){w(m);});}return new(P||(P=Promise))(function(m,w){const o=a163y;function t(c){const z=a163y;try{a(g[z(0xa1)](c));}catch(k){w(k);}}function v(c){const d=a163y;try{a(g[d(0xee)](c));}catch(k){w(k);}}function a(c){const i=a163y;c['done']?m(c[i(0xe4)]):x(c[i(0xe4)])[i(0xe0)](t,v);}a((g=g[o(0xf5)](s,y||[]))[o(0xa1)]());});};Object[a163p(0xf3)](exports,a163p(0xda),{'value':!![]});const __1=require(a163p(0xa5));function a163s(){const h=['isNotNull(customerId)','dotenv','Categories.insert({name:entity.name,description:entity.description})','Orders.insert().include(p\x20=>\x20p.details)','INSERT\x20INTO\x20Orders(CustomerID,EmployeeID,OrderDate,RequiredDate,ShippedDate,ShipVia,Freight,ShipName,ShipAddress,ShipCity,ShipRegion,ShipPostalCode,ShipCountry)\x20VALUES\x20?','Categories.insert(entity)','description','./config/northwind.env','Orders.insert({customerId:customerId,employeeId:employeeId,orderDate:orderDate,requiredDate:requiredDate,shippedDate:shippedDate,shipViaId:shipViaId,freight:freight,name:name,address:address,city:city,region:region,postalCode:postalCode,country:country})','INSERT\x20INTO\x20`Order\x20Details`(OrderID,ProductID,UnitPrice,Quantity,Discount)\x20VALUES\x20?','orm','Categories.bulkInsert()','Sentence','INSERT\x20INTO\x20Customers(CustomerID,CompanyName,ContactName,ContactTitle,Address,City,Region,PostalCode,Country)\x20VALUES\x20?','600888sDQnIy','discount','decimal','address','isNotNull(orderId)','metadata','name','Categories.insert(p=>{name:p.name,description:p.description})','next','Cannot\x20be\x20null\x20property\x20orderId\x20in\x20entity\x20Orders.details','dateTime','Cannot\x20be\x20null\x20property\x20customerId\x20in\x20entity\x20Orders','../../../..','customer','Cannot\x20be\x20null\x20property\x20name\x20in\x20entity\x20Customers','Orders.insert({customerId:customerId,employeeId:employeeId,orderDate:orderDate,requiredDate:requiredDate,shippedDate:shippedDate,shipViaId:shipViaId,freight:freight,name:name,address:address,city:city,region:region,postalCode:postalCode,country:country}).include(p=>p.details.insert({orderId:orderId,productId:productId,unitPrice:unitPrice,quantity:quantity,discount:discount}))','Categories.insert({name:name,description:description})','Cannot\x20be\x20null\x20property\x20employeeId\x20in\x20entity\x20Orders','employeeId','constraints','unitPrice','entity.name','region','toStrictEqual','56bUqZoe','normalize','string','Cannot\x20be\x20null\x20property\x20id\x20in\x20entity\x20Customers','Orders.bulkInsert({customerId:customerId,employeeId:employeeId,orderDate:orderDate,requiredDate:requiredDate,shippedDate:shippedDate,shipViaId:shipViaId,freight:freight,name:name,address:address,city:city,region:region,postalCode:postalCode,country:country}).include(p=>p.details.bulkInsert({orderId:orderId,productId:productId,unitPrice:unitPrice,quantity:quantity,discount:discount}))','phone','country','Orders.details','p.description','parameters','35WuShug','Orders.bulkInsert().include(p\x20=>\x20p.details)','11832EJkBca','orderId','790FKHtAL','toEqual','shippedDate','INSERT\x20INTO\x20Orders(CustomerID,EmployeeID,OrderDate,RequiredDate,ShippedDate,ShipVia,Freight,ShipName,ShipAddress,ShipCity,ShipRegion,ShipPostalCode,ShipCountry)\x20VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?)','plan','customerId','isNotNull(name)','model','details','1319124scVNrx','Orders.bulkInsert().include(p\x20=>\x20[p.details,\x20p.customer])','Categories.bulkInsert({name:name,description:description})','70974BntdPt','Orders','INSERT\x20INTO\x20Categories(CategoryName,Description)\x20VALUES(?,?)','shipViaId','postalCode','orderDate','insert','Categories.insert(()\x20=>\x20({\x20name:\x20name,\x20description:\x20description\x20}))','./config/northwind.yaml','isNotNull(employeeId)','integer','contact','Customers','Categories.insert(p=>\x20[p.name,p.description])','Cannot\x20be\x20null\x20property\x20name\x20in\x20entity\x20Categories','__esModule','Categories.insert({name:p.name,description:p.description})','config','quantity','220882xzkAxU','Orders.details[]','then','Orders.insert()','Cannot\x20be\x20null\x20property\x20productId\x20in\x20entity\x20Orders.details','freight','value','Categories.insert([name,\x20description])','isNotNull(id)','Categories','p.name','INSERT\x20INTO\x20Categories(CategoryName,Description)\x20VALUES\x20?','requiredDate','INSERT\x20INTO\x20`Order\x20Details`(OrderID,ProductID,UnitPrice,Quantity,Discount)\x20VALUES(?,?,?,?,?)','any','474556dEQzBB','throw','bulkInsert','productId','city','965082dfgYFN','defineProperty','date','apply','entity.description','INSERT\x20INTO\x20Customers(CustomerID,CompanyName,ContactName,ContactTitle,Address,City,Region,PostalCode,Country)\x20VALUES(?,?,?,?,?,?,?,?,?)','getInfo','isNotNull(productId)','init','Categories.insert()','Orders.insert().include(p\x20=>\x20[p.details,\x20p.customer])','MySQL'];a163s=function(){return h;};return a163s();}beforeAll(()=>__awaiter(void 0x0,void 0x0,void 0x0,function*(){const f=a163p;require(f(0x8c))[f(0xdc)]({'path':f(0x92)}),yield __1[f(0x95)][f(0xfa)](f(0xd3));})),describe('insert',()=>{const j=a163p,s=JSON['parse']('{}');test('normalize',()=>{const q=a163y;expect(__1['orm'][q(0xb2)](q(0xa9)))[q(0xb0)]('Categories.insert({name:name,description:description})'),expect(__1[q(0x95)]['normalize'](q(0xfb)))[q(0xb0)]('Categories.insert({name:name,description:description})'),expect(__1[q(0x95)][q(0xb2)](q(0xe5)))[q(0xb0)](q(0xa9)),expect(__1[q(0x95)]['normalize']('Categories.insert(entity)'))['toStrictEqual'](q(0x8d)),expect(__1['orm'][q(0xb2)](q(0xe1)))[q(0xb0)](q(0x93)),expect(__1[q(0x95)][q(0xb2)](q(0x8e)))[q(0xb0)](q(0xa8)),expect(__1['orm']['normalize'](q(0xfc)))[q(0xb0)](q(0xa8)),expect(__1[q(0x95)][q(0xb2)](q(0xd2)))[q(0xb0)]('Categories.insert({name:name,description:description})'),expect(__1['orm']['normalize']('Categories.insert(p=>{name:p.name,description:p.description})'))[q(0xb0)](q(0xdb)),expect(__1['orm'][q(0xb2)]('Categories.insert(p=>\x20[p.name,p.description])'))[q(0xb0)](q(0xa9)),expect(__1['orm']['normalize'](q(0x96)))['toStrictEqual'](q(0xca)),expect(__1[q(0x95)][q(0xb2)]('Orders.bulkInsert().include(p\x20=>\x20p.details)'))['toStrictEqual']('Orders.bulkInsert({customerId:customerId,employeeId:employeeId,orderDate:orderDate,requiredDate:requiredDate,shippedDate:shippedDate,shipViaId:shipViaId,freight:freight,name:name,address:address,city:city,region:region,postalCode:postalCode,country:country}).include(p=>p.details.bulkInsert({orderId:orderId,productId:productId,unitPrice:unitPrice,quantity:quantity,discount:discount}))'),expect(__1[q(0x95)][q(0xb2)](q(0xc9)))[q(0xb0)](q(0xb5));}),test(j(0xc6),()=>{const b=j;expect(__1[b(0x95)][b(0xc6)](b(0xa9)))['toStrictEqual']([{'name':'id','type':b(0xd5)},{'name':b(0x9f),'type':b(0xb3)},{'name':b(0x91),'type':'string'}]),expect(__1['orm'][b(0xc6)](b(0xfb)))['toStrictEqual']([{'name':'id','type':b(0xd5)},{'name':'name','type':b(0xb3)},{'name':'description','type':b(0xb3)}]),expect(__1[b(0x95)][b(0xc6)](b(0xe5)))[b(0xb0)]([{'name':'id','type':b(0xd5)},{'name':'name','type':b(0xb3)},{'name':'description','type':b(0xb3)}]),expect(__1[b(0x95)][b(0xc6)]('Categories.insert(entity)'))[b(0xb0)]([{'name':'id','type':b(0xd5)},{'name':b(0x9f),'type':b(0xb3)},{'name':b(0x91),'type':b(0xb3)}]),expect(__1[b(0x95)][b(0xc6)](b(0xe1)))[b(0xb0)]([{'name':'id','type':'integer'},{'name':b(0xc4),'type':'string'},{'name':b(0xab),'type':b(0xd5)},{'name':b(0xd0),'type':'dateTime'},{'name':b(0xea),'type':b(0xf4)},{'name':b(0xc1),'type':b(0xf4)},{'name':'shipViaId','type':'integer'},{'name':b(0xe3),'type':'decimal'},{'name':b(0x9f),'type':'string'},{'name':b(0x9c),'type':'string'},{'name':b(0xf1),'type':'string'},{'name':b(0xaf),'type':b(0xb3)},{'name':b(0xcf),'type':b(0xb3)},{'name':b(0xb7),'type':b(0xb3)}]),expect(__1['orm'][b(0xc6)](b(0x8e)))['toStrictEqual']([{'name':'id','type':b(0xd5)},{'name':b(0xc4),'type':b(0xb3)},{'name':b(0xab),'type':'integer'},{'name':b(0xd0),'type':'dateTime'},{'name':'requiredDate','type':b(0xf4)},{'name':b(0xc1),'type':'date'},{'name':b(0xce),'type':b(0xd5)},{'name':b(0xe3),'type':b(0x9b)},{'name':b(0x9f),'type':b(0xb3)},{'name':'address','type':b(0xb3)},{'name':b(0xf1),'type':b(0xb3)},{'name':'region','type':b(0xb3)},{'name':b(0xcf),'type':b(0xb3)},{'name':b(0xb7),'type':'string'},{'name':'details','type':b(0xdf),'children':[{'name':'orderId','type':'integer'},{'name':'productId','type':b(0xd5)},{'name':b(0xad),'type':'decimal'},{'name':'quantity','type':b(0x9b)},{'name':b(0x9a),'type':b(0x9b)}]}]),expect(__1[b(0x95)][b(0xc6)]('Orders.insert().include(p\x20=>\x20[p.details,\x20p.customer])'))[b(0xb0)]([{'name':'id','type':b(0xd5)},{'name':b(0xc4),'type':b(0xb3)},{'name':b(0xab),'type':b(0xd5)},{'name':b(0xd0),'type':'dateTime'},{'name':b(0xea),'type':b(0xf4)},{'name':b(0xc1),'type':b(0xf4)},{'name':b(0xce),'type':'integer'},{'name':b(0xe3),'type':b(0x9b)},{'name':b(0x9f),'type':b(0xb3)},{'name':b(0x9c),'type':b(0xb3)},{'name':'city','type':'string'},{'name':b(0xaf),'type':b(0xb3)},{'name':b(0xcf),'type':b(0xb3)},{'name':b(0xb7),'type':b(0xb3)},{'name':b(0xc7),'type':b(0xdf),'children':[{'name':b(0xbe),'type':b(0xd5)},{'name':'productId','type':b(0xd5)},{'name':b(0xad),'type':b(0x9b)},{'name':b(0xdd),'type':'decimal'},{'name':b(0x9a),'type':b(0x9b)}]},{'name':b(0xa6),'type':b(0xd7),'children':[{'name':'id','type':b(0xb3)},{'name':b(0x9f),'type':b(0xb3)},{'name':b(0xd6),'type':b(0xb3)},{'name':'phone','type':b(0xb3)},{'name':b(0x9c),'type':'string'},{'name':b(0xf1),'type':b(0xb3)},{'name':'region','type':b(0xb3)},{'name':'postalCode','type':b(0xb3)},{'name':b(0xb7),'type':b(0xb3)}]}]),expect(__1[b(0x95)]['model'](b(0xd2)))[b(0xb0)]([{'name':'id','type':b(0xd5)},{'name':b(0x9f),'type':b(0xb3)},{'name':b(0x91),'type':'string'}]),expect(__1[b(0x95)][b(0xc6)](b(0xa0)))[b(0xb0)]([{'name':'id','type':b(0xd5)},{'name':b(0x9f),'type':b(0xb3)},{'name':b(0x91),'type':b(0xb3)}]),expect(__1[b(0x95)][b(0xc6)](b(0xd8)))[b(0xb0)]([{'name':'id','type':'integer'},{'name':b(0x9f),'type':b(0xb3)},{'name':b(0x91),'type':b(0xb3)}]),expect(__1[b(0x95)][b(0xc6)](b(0x96)))[b(0xb0)]([{'name':'id','type':b(0xd5)},{'name':b(0x9f),'type':'string'},{'name':'description','type':b(0xb3)}]),expect(__1[b(0x95)]['model'](b(0xbc)))[b(0xb0)]([{'name':'id','type':b(0xd5)},{'name':'customerId','type':b(0xb3)},{'name':b(0xab),'type':b(0xd5)},{'name':b(0xd0),'type':'dateTime'},{'name':'requiredDate','type':'date'},{'name':b(0xc1),'type':b(0xf4)},{'name':b(0xce),'type':'integer'},{'name':'freight','type':b(0x9b)},{'name':b(0x9f),'type':b(0xb3)},{'name':b(0x9c),'type':b(0xb3)},{'name':'city','type':b(0xb3)},{'name':'region','type':b(0xb3)},{'name':b(0xcf),'type':b(0xb3)},{'name':b(0xb7),'type':'string'},{'name':b(0xc7),'type':b(0xdf),'children':[{'name':'orderId','type':b(0xd5)},{'name':b(0xf0),'type':b(0xd5)},{'name':b(0xad),'type':b(0x9b)},{'name':b(0xdd),'type':'decimal'},{'name':b(0x9a),'type':b(0x9b)}]}]),expect(__1[b(0x95)]['model'](b(0xc9)))[b(0xb0)]([{'name':'id','type':b(0xd5)},{'name':b(0xc4),'type':b(0xb3)},{'name':b(0xab),'type':b(0xd5)},{'name':b(0xd0),'type':'dateTime'},{'name':b(0xea),'type':'date'},{'name':b(0xc1),'type':b(0xf4)},{'name':b(0xce),'type':b(0xd5)},{'name':b(0xe3),'type':b(0x9b)},{'name':b(0x9f),'type':b(0xb3)},{'name':b(0x9c),'type':b(0xb3)},{'name':'city','type':'string'},{'name':'region','type':b(0xb3)},{'name':b(0xcf),'type':'string'},{'name':'country','type':b(0xb3)},{'name':b(0xc7),'type':b(0xdf),'children':[{'name':b(0xbe),'type':'integer'},{'name':b(0xf0),'type':b(0xd5)},{'name':b(0xad),'type':b(0x9b)},{'name':b(0xdd),'type':b(0x9b)},{'name':b(0x9a),'type':b(0x9b)}]},{'name':b(0xa6),'type':b(0xd7),'children':[{'name':'id','type':b(0xb3)},{'name':b(0x9f),'type':'string'},{'name':b(0xd6),'type':'string'},{'name':b(0xb6),'type':b(0xb3)},{'name':b(0x9c),'type':b(0xb3)},{'name':b(0xf1),'type':b(0xb3)},{'name':'region','type':b(0xb3)},{'name':b(0xcf),'type':b(0xb3)},{'name':b(0xb7),'type':b(0xb3)}]}]);}),test(j(0xba),()=>{const l=j;expect(__1['orm']['parameters'](l(0xa9)))[l(0xb0)]([{'name':l(0x9f),'type':'string'},{'name':'description','type':l(0xb3)}]),expect(__1[l(0x95)][l(0xba)](l(0xfb)))[l(0xb0)]([{'name':'name','type':l(0xb3)},{'name':l(0x91),'type':'string'}]),expect(__1[l(0x95)][l(0xba)]('Categories.insert([name,\x20description])'))[l(0xb0)]([{'name':l(0x9f),'type':l(0xb3)},{'name':l(0x91),'type':l(0xb3)}]),expect(__1[l(0x95)][l(0xba)](l(0x90)))[l(0xb0)]([{'name':l(0xae),'type':'string'},{'name':l(0xf6),'type':l(0xb3)}]),expect(__1[l(0x95)]['parameters'](l(0xe1)))[l(0xb0)]([{'name':l(0xc4),'type':'string'},{'name':'employeeId','type':l(0xd5)},{'name':l(0xd0),'type':l(0xa3)},{'name':l(0xea),'type':'date'},{'name':l(0xc1),'type':'date'},{'name':'shipViaId','type':l(0xd5)},{'name':'freight','type':l(0x9b)},{'name':l(0x9f),'type':'string'},{'name':l(0x9c),'type':l(0xb3)},{'name':l(0xf1),'type':l(0xb3)},{'name':l(0xaf),'type':l(0xb3)},{'name':l(0xcf),'type':l(0xb3)},{'name':l(0xb7),'type':l(0xb3)}]),expect(__1['orm'][l(0xba)](l(0x8e)))[l(0xb0)]([{'name':l(0xc4),'type':l(0xb3)},{'name':'employeeId','type':l(0xd5)},{'name':l(0xd0),'type':l(0xa3)},{'name':'requiredDate','type':l(0xf4)},{'name':l(0xc1),'type':l(0xf4)},{'name':'shipViaId','type':'integer'},{'name':l(0xe3),'type':l(0x9b)},{'name':'name','type':l(0xb3)},{'name':l(0x9c),'type':l(0xb3)},{'name':l(0xf1),'type':'string'},{'name':l(0xaf),'type':l(0xb3)},{'name':'postalCode','type':l(0xb3)},{'name':l(0xb7),'type':l(0xb3)},{'name':l(0xc7),'type':l(0xb8),'children':[{'name':l(0xbe),'type':l(0xd5)},{'name':l(0xf0),'type':l(0xd5)},{'name':l(0xad),'type':l(0x9b)},{'name':l(0xdd),'type':l(0x9b)},{'name':l(0x9a),'type':l(0x9b)}]}]),expect(__1['orm']['parameters'](l(0xfc)))['toStrictEqual']([{'name':l(0xc4),'type':l(0xb3)},{'name':l(0xab),'type':l(0xd5)},{'name':l(0xd0),'type':l(0xa3)},{'name':l(0xea),'type':l(0xf4)},{'name':'shippedDate','type':'date'},{'name':l(0xce),'type':l(0xd5)},{'name':'freight','type':l(0x9b)},{'name':'name','type':l(0xb3)},{'name':l(0x9c),'type':l(0xb3)},{'name':l(0xf1),'type':l(0xb3)},{'name':l(0xaf),'type':l(0xb3)},{'name':l(0xcf),'type':l(0xb3)},{'name':l(0xb7),'type':'string'},{'name':'details','type':'Orders.details','children':[{'name':'orderId','type':l(0xd5)},{'name':'productId','type':l(0xd5)},{'name':'unitPrice','type':'decimal'},{'name':'quantity','type':l(0x9b)},{'name':l(0x9a),'type':l(0x9b)}]},{'name':l(0xa6),'type':l(0xd7),'children':[{'name':'id','type':'string'},{'name':l(0x9f),'type':l(0xb3)},{'name':l(0xd6),'type':'string'},{'name':l(0xb6),'type':l(0xb3)},{'name':l(0x9c),'type':l(0xb3)},{'name':l(0xf1),'type':l(0xb3)},{'name':l(0xaf),'type':l(0xb3)},{'name':'postalCode','type':l(0xb3)},{'name':'country','type':l(0xb3)}]}]),expect(__1[l(0x95)][l(0xba)]('Categories.insert(()\x20=>\x20({\x20name:\x20name,\x20description:\x20description\x20}))'))[l(0xb0)]([{'name':l(0x9f),'type':l(0xb3)},{'name':l(0x91),'type':l(0xb3)}]),expect(__1[l(0x95)][l(0xba)](l(0xa0)))['toStrictEqual']([{'name':l(0xe8),'type':'string'},{'name':l(0xb9),'type':l(0xb3)}]),expect(__1[l(0x95)][l(0xba)]('Categories.insert(p=>\x20[p.name,p.description])'))[l(0xb0)]([{'name':l(0x9f),'type':l(0xb3)},{'name':'description','type':'string'}]),expect(__1[l(0x95)][l(0xba)](l(0x96)))[l(0xb0)]([{'name':l(0x9f),'type':l(0xb3)},{'name':l(0x91),'type':l(0xb3)}]),expect(__1[l(0x95)][l(0xba)](l(0xbc)))['toStrictEqual']([{'name':l(0xc4),'type':l(0xb3)},{'name':l(0xab),'type':l(0xd5)},{'name':l(0xd0),'type':l(0xa3)},{'name':l(0xea),'type':l(0xf4)},{'name':l(0xc1),'type':l(0xf4)},{'name':l(0xce),'type':l(0xd5)},{'name':l(0xe3),'type':l(0x9b)},{'name':l(0x9f),'type':l(0xb3)},{'name':l(0x9c),'type':'string'},{'name':'city','type':'string'},{'name':l(0xaf),'type':l(0xb3)},{'name':l(0xcf),'type':'string'},{'name':'country','type':'string'},{'name':l(0xc7),'type':l(0xb8),'children':[{'name':'orderId','type':l(0xd5)},{'name':l(0xf0),'type':l(0xd5)},{'name':l(0xad),'type':l(0x9b)},{'name':l(0xdd),'type':l(0x9b)},{'name':l(0x9a),'type':'decimal'}]}]),expect(__1['orm'][l(0xba)]('Orders.bulkInsert().include(p\x20=>\x20[p.details,\x20p.customer])'))['toStrictEqual']([{'name':l(0xc4),'type':l(0xb3)},{'name':l(0xab),'type':'integer'},{'name':'orderDate','type':l(0xa3)},{'name':l(0xea),'type':l(0xf4)},{'name':'shippedDate','type':l(0xf4)},{'name':l(0xce),'type':l(0xd5)},{'name':l(0xe3),'type':l(0x9b)},{'name':l(0x9f),'type':l(0xb3)},{'name':l(0x9c),'type':'string'},{'name':'city','type':l(0xb3)},{'name':l(0xaf),'type':l(0xb3)},{'name':l(0xcf),'type':'string'},{'name':l(0xb7),'type':l(0xb3)},{'name':l(0xc7),'type':l(0xb8),'children':[{'name':l(0xbe),'type':'integer'},{'name':l(0xf0),'type':l(0xd5)},{'name':'unitPrice','type':'decimal'},{'name':l(0xdd),'type':l(0x9b)},{'name':l(0x9a),'type':l(0x9b)}]},{'name':l(0xa6),'type':l(0xd7),'children':[{'name':'id','type':l(0xb3)},{'name':'name','type':l(0xb3)},{'name':l(0xd6),'type':'string'},{'name':l(0xb6),'type':'string'},{'name':'address','type':l(0xb3)},{'name':l(0xf1),'type':'string'},{'name':l(0xaf),'type':l(0xb3)},{'name':l(0xcf),'type':l(0xb3)},{'name':'country','type':l(0xb3)}]}]);}),test(j(0xac),()=>{const u=j;expect(__1['orm'][u(0xac)](u(0xa9)))[u(0xb0)]({'entity':u(0xe7),'constraints':[{'message':u(0xd9),'condition':u(0xc5)}]}),expect(__1[u(0x95)][u(0xac)]('Categories.insert()'))[u(0xb0)]({'entity':u(0xe7),'constraints':[{'message':u(0xd9),'condition':u(0xc5)}]}),expect(__1[u(0x95)][u(0xac)](u(0xe5)))[u(0xb0)]({'entity':'Categories','constraints':[{'message':u(0xd9),'condition':u(0xc5)}]}),expect(__1['orm']['constraints']('Categories.insert(entity)'))['toStrictEqual']({'entity':u(0xe7),'constraints':[]}),expect(__1[u(0x95)][u(0xac)]('Orders.insert()'))[u(0xb0)]({'entity':u(0xcc),'constraints':[{'message':u(0xa4),'condition':u(0x8b)},{'message':u(0xaa),'condition':u(0xd4)}]}),expect(__1[u(0x95)][u(0xac)]('Orders.insert().include(p\x20=>\x20p.details)'))[u(0xb0)]({'entity':u(0xcc),'constraints':[{'message':'Cannot\x20be\x20null\x20property\x20customerId\x20in\x20entity\x20Orders','condition':u(0x8b)},{'message':u(0xaa),'condition':u(0xd4)}],'children':[{'entity':u(0xb8),'constraints':[{'message':u(0xa2),'condition':u(0x9d)},{'message':u(0xe2),'condition':u(0xf9)}]}]}),expect(__1[u(0x95)][u(0xac)]('Orders.insert().include(p\x20=>\x20[p.details,\x20p.customer])'))[u(0xb0)]({'entity':u(0xcc),'constraints':[{'message':'Cannot\x20be\x20null\x20property\x20customerId\x20in\x20entity\x20Orders','condition':u(0x8b)},{'message':u(0xaa),'condition':'isNotNull(employeeId)'}],'children':[{'entity':u(0xb8),'constraints':[{'message':u(0xa2),'condition':u(0x9d)},{'message':'Cannot\x20be\x20null\x20property\x20productId\x20in\x20entity\x20Orders.details','condition':u(0xf9)}]},{'entity':u(0xd7),'constraints':[{'message':'Cannot\x20be\x20null\x20property\x20id\x20in\x20entity\x20Customers','condition':u(0xe6)},{'message':u(0xa7),'condition':u(0xc5)}]}]}),expect(__1[u(0x95)][u(0xac)](u(0xd2)))['toStrictEqual']({'entity':u(0xe7),'constraints':[{'message':u(0xd9),'condition':u(0xc5)}]}),expect(__1[u(0x95)][u(0xac)]('Categories.insert(p=>{name:p.name,description:p.description})'))[u(0xb0)]({'entity':u(0xe7),'constraints':[]}),expect(__1['orm'][u(0xac)](u(0xd8)))[u(0xb0)]({'entity':u(0xe7),'constraints':[{'message':'Cannot\x20be\x20null\x20property\x20name\x20in\x20entity\x20Categories','condition':u(0xc5)}]}),expect(__1[u(0x95)][u(0xac)]('Categories.bulkInsert()'))[u(0xb0)]({'entity':'Categories','constraints':[{'message':'Cannot\x20be\x20null\x20property\x20name\x20in\x20entity\x20Categories','condition':u(0xc5)}]}),expect(__1[u(0x95)]['constraints']('Orders.bulkInsert().include(p\x20=>\x20p.details)'))['toStrictEqual']({'entity':'Orders','constraints':[{'message':u(0xa4),'condition':'isNotNull(customerId)'},{'message':u(0xaa),'condition':u(0xd4)}],'children':[{'entity':u(0xb8),'constraints':[{'message':u(0xa2),'condition':u(0x9d)},{'message':u(0xe2),'condition':u(0xf9)}]}]}),expect(__1[u(0x95)][u(0xac)](u(0xc9)))[u(0xb0)]({'entity':u(0xcc),'constraints':[{'message':u(0xa4),'condition':u(0x8b)},{'message':u(0xaa),'condition':'isNotNull(employeeId)'}],'children':[{'entity':u(0xb8),'constraints':[{'message':u(0xa2),'condition':'isNotNull(orderId)'},{'message':u(0xe2),'condition':u(0xf9)}]},{'entity':u(0xd7),'constraints':[{'message':u(0xb4),'condition':u(0xe6)},{'message':u(0xa7),'condition':u(0xc5)}]}]});}),test('metadata',()=>{const e=j;expect(__1['orm'][e(0x9e)](e(0xa9)))['toEqual']({'classtype':e(0x97),'pos':{'ln':0x0,'col':0x12},'name':'insert','children':[],'type':e(0xec),'entity':e(0xe7),'columns':[{'name':'id','type':'integer','required':![],'autoIncrement':!![]},{'name':e(0x9f),'type':'string'},{'name':e(0x91),'type':e(0xb3)}],'parameters':[{'name':'name','type':e(0xb3)},{'name':'description','type':'string'}],'constraints':[{'message':e(0xd9),'condition':e(0xc5)}],'values':[],'defaults':[],'clause':e(0xd1),'alias':'c'}),expect(__1['orm'][e(0x9e)](e(0xfb)))[e(0xc0)]({'classtype':'Sentence','pos':{'ln':0x0,'col':0x12},'name':e(0xd1),'children':[],'type':'any','entity':e(0xe7),'columns':[{'name':'id','type':'integer','required':![],'autoIncrement':!![]},{'name':e(0x9f),'type':'string'},{'name':e(0x91),'type':e(0xb3)}],'parameters':[{'name':e(0x9f),'type':'string'},{'name':e(0x91),'type':e(0xb3)}],'constraints':[{'message':'Cannot\x20be\x20null\x20property\x20name\x20in\x20entity\x20Categories','condition':e(0xc5)}],'values':[],'defaults':[],'clause':e(0xd1),'alias':'c'}),expect(__1[e(0x95)][e(0x9e)]('Categories.insert([name,\x20description])'))[e(0xc0)]({'classtype':e(0x97),'pos':{'ln':0x0,'col':0x12},'name':e(0xd1),'children':[],'type':e(0xec),'entity':e(0xe7),'columns':[{'name':'id','type':e(0xd5),'required':![],'autoIncrement':!![]},{'name':e(0x9f),'type':e(0xb3)},{'name':'description','type':e(0xb3)}],'parameters':[{'name':e(0x9f),'type':'string'},{'name':'description','type':e(0xb3)}],'constraints':[{'message':e(0xd9),'condition':'isNotNull(name)'}],'values':[],'defaults':[],'clause':e(0xd1),'alias':'c'}),expect(__1['orm'][e(0x9e)](e(0x90)))[e(0xc0)]({'classtype':e(0x97),'pos':{'ln':0x0,'col':0x12},'name':e(0xd1),'children':[],'type':e(0xec),'entity':e(0xe7),'columns':[{'name':'id','type':e(0xd5),'required':![],'autoIncrement':!![]},{'name':e(0x9f),'type':e(0xb3)},{'name':'description','type':e(0xb3)}],'parameters':[{'name':e(0xae),'type':e(0xb3)},{'name':e(0xf6),'type':e(0xb3)}],'constraints':[],'values':[],'defaults':[],'clause':e(0xd1),'alias':'c'}),expect(__1[e(0x95)][e(0x9e)]('Orders.insert()'))['toEqual']({'classtype':'Sentence','pos':{'ln':0x0,'col':0xe},'name':'insert','children':[],'type':e(0xec),'entity':e(0xcc),'columns':[{'name':'id','type':e(0xd5),'required':![],'autoIncrement':!![]},{'name':e(0xc4),'type':e(0xb3)},{'name':e(0xab),'type':e(0xd5)},{'name':'orderDate','type':'dateTime'},{'name':e(0xea),'type':'date'},{'name':e(0xc1),'type':e(0xf4)},{'name':'shipViaId','type':e(0xd5)},{'name':e(0xe3),'type':e(0x9b)},{'name':e(0x9f),'type':'string'},{'name':'address','type':e(0xb3)},{'name':e(0xf1),'type':'string'},{'name':e(0xaf),'type':e(0xb3)},{'name':e(0xcf),'type':e(0xb3)},{'name':e(0xb7),'type':e(0xb3)}],'parameters':[{'name':'customerId','type':'string'},{'name':'employeeId','type':e(0xd5)},{'name':e(0xd0),'type':e(0xa3)},{'name':e(0xea),'type':e(0xf4)},{'name':e(0xc1),'type':e(0xf4)},{'name':e(0xce),'type':e(0xd5)},{'name':'freight','type':'decimal'},{'name':'name','type':e(0xb3)},{'name':e(0x9c),'type':'string'},{'name':e(0xf1),'type':e(0xb3)},{'name':'region','type':'string'},{'name':e(0xcf),'type':e(0xb3)},{'name':'country','type':'string'}],'constraints':[{'message':e(0xa4),'condition':'isNotNull(customerId)'},{'message':e(0xaa),'condition':e(0xd4)}],'values':[],'defaults':[],'clause':e(0xd1),'alias':'o'}),expect(__1[e(0x95)][e(0x9e)](e(0x8e)))[e(0xc0)]({'classtype':e(0x97),'pos':{'ln':0x0,'col':0x18},'name':e(0xd1),'children':[{'classtype':e(0x97),'pos':{'ln':0x0,'col':0x1d},'name':e(0xd1),'children':[],'type':e(0xec),'entity':e(0xb8),'columns':[{'name':e(0xbe),'type':'integer'},{'name':e(0xf0),'type':e(0xd5)},{'name':e(0xad),'type':'decimal'},{'name':e(0xdd),'type':e(0x9b)},{'name':e(0x9a),'type':'decimal'}],'parameters':[{'name':'orderId','type':'integer'},{'name':'productId','type':'integer'},{'name':'unitPrice','type':'decimal'},{'name':e(0xdd),'type':'decimal'},{'name':e(0x9a),'type':'decimal'}],'constraints':[{'message':e(0xa2),'condition':e(0x9d)},{'message':e(0xe2),'condition':e(0xf9)}],'values':[],'defaults':[],'clause':e(0xd1),'alias':'o1'}],'type':'any','entity':e(0xcc),'columns':[{'name':'id','type':'integer','required':![],'autoIncrement':!![]},{'name':e(0xc4),'type':'string'},{'name':e(0xab),'type':'integer'},{'name':e(0xd0),'type':'dateTime'},{'name':e(0xea),'type':e(0xf4)},{'name':e(0xc1),'type':e(0xf4)},{'name':e(0xce),'type':e(0xd5)},{'name':e(0xe3),'type':e(0x9b)},{'name':e(0x9f),'type':'string'},{'name':e(0x9c),'type':e(0xb3)},{'name':e(0xf1),'type':e(0xb3)},{'name':e(0xaf),'type':e(0xb3)},{'name':'postalCode','type':e(0xb3)},{'name':e(0xb7),'type':e(0xb3)}],'parameters':[{'name':e(0xc4),'type':e(0xb3)},{'name':e(0xab),'type':e(0xd5)},{'name':e(0xd0),'type':e(0xa3)},{'name':e(0xea),'type':'date'},{'name':e(0xc1),'type':e(0xf4)},{'name':e(0xce),'type':e(0xd5)},{'name':e(0xe3),'type':'decimal'},{'name':'name','type':'string'},{'name':e(0x9c),'type':'string'},{'name':'city','type':e(0xb3)},{'name':'region','type':'string'},{'name':e(0xcf),'type':e(0xb3)},{'name':e(0xb7),'type':e(0xb3)}],'constraints':[{'message':e(0xa4),'condition':e(0x8b)},{'message':e(0xaa),'condition':'isNotNull(employeeId)'}],'values':[],'defaults':[],'clause':e(0xd1),'alias':'o'}),expect(__1['orm'][e(0x9e)]('Orders.insert().include(p\x20=>\x20[p.details,\x20p.customer])'))['toEqual']({'classtype':'Sentence','pos':{'ln':0x0,'col':0x18},'name':e(0xd1),'children':[{'classtype':e(0x97),'pos':{'ln':0x0,'col':0x1e},'name':'insert','children':[],'type':e(0xec),'entity':'Orders.details','columns':[{'name':'orderId','type':e(0xd5)},{'name':e(0xf0),'type':e(0xd5)},{'name':e(0xad),'type':'decimal'},{'name':e(0xdd),'type':'decimal'},{'name':e(0x9a),'type':e(0x9b)}],'parameters':[{'name':e(0xbe),'type':e(0xd5)},{'name':e(0xf0),'type':'integer'},{'name':e(0xad),'type':'decimal'},{'name':e(0xdd),'type':e(0x9b)},{'name':'discount','type':e(0x9b)}],'constraints':[{'message':e(0xa2),'condition':e(0x9d)},{'message':e(0xe2),'condition':e(0xf9)}],'values':[],'defaults':[],'clause':e(0xd1),'alias':'o1'},{'classtype':'Sentence','pos':{'ln':0x0,'col':0x29},'name':e(0xd1),'children':[],'type':'any','entity':e(0xd7),'columns':[{'name':'id','type':e(0xb3)},{'name':e(0x9f),'type':'string'},{'name':e(0xd6),'type':e(0xb3)},{'name':e(0xb6),'type':e(0xb3)},{'name':e(0x9c),'type':'string'},{'name':e(0xf1),'type':'string'},{'name':e(0xaf),'type':e(0xb3)},{'name':e(0xcf),'type':e(0xb3)},{'name':e(0xb7),'type':e(0xb3)}],'parameters':[{'name':'id','type':'string'},{'name':e(0x9f),'type':e(0xb3)},{'name':e(0xd6),'type':e(0xb3)},{'name':e(0xb6),'type':'string'},{'name':e(0x9c),'type':e(0xb3)},{'name':'city','type':e(0xb3)},{'name':e(0xaf),'type':e(0xb3)},{'name':e(0xcf),'type':'string'},{'name':'country','type':e(0xb3)}],'constraints':[{'message':e(0xb4),'condition':e(0xe6)},{'message':'Cannot\x20be\x20null\x20property\x20name\x20in\x20entity\x20Customers','condition':e(0xc5)}],'values':[],'defaults':[],'clause':e(0xd1),'alias':'c'}],'type':e(0xec),'entity':'Orders','columns':[{'name':'id','type':e(0xd5),'required':![],'autoIncrement':!![]},{'name':'customerId','type':e(0xb3)},{'name':e(0xab),'type':e(0xd5)},{'name':'orderDate','type':e(0xa3)},{'name':e(0xea),'type':e(0xf4)},{'name':e(0xc1),'type':e(0xf4)},{'name':e(0xce),'type':e(0xd5)},{'name':'freight','type':e(0x9b)},{'name':e(0x9f),'type':'string'},{'name':e(0x9c),'type':e(0xb3)},{'name':e(0xf1),'type':e(0xb3)},{'name':e(0xaf),'type':e(0xb3)},{'name':e(0xcf),'type':e(0xb3)},{'name':'country','type':'string'}],'parameters':[{'name':'customerId','type':'string'},{'name':e(0xab),'type':e(0xd5)},{'name':e(0xd0),'type':e(0xa3)},{'name':e(0xea),'type':'date'},{'name':'shippedDate','type':e(0xf4)},{'name':'shipViaId','type':e(0xd5)},{'name':e(0xe3),'type':e(0x9b)},{'name':e(0x9f),'type':'string'},{'name':e(0x9c),'type':'string'},{'name':e(0xf1),'type':e(0xb3)},{'name':e(0xaf),'type':e(0xb3)},{'name':e(0xcf),'type':e(0xb3)},{'name':e(0xb7),'type':e(0xb3)}],'constraints':[{'message':e(0xa4),'condition':e(0x8b)},{'message':'Cannot\x20be\x20null\x20property\x20employeeId\x20in\x20entity\x20Orders','condition':e(0xd4)}],'values':[],'defaults':[],'clause':e(0xd1),'alias':'o'}),expect(__1[e(0x95)]['metadata'](e(0xd2)))['toEqual']({'classtype':e(0x97),'pos':{'ln':0x0,'col':0x12},'name':e(0xd1),'children':[],'type':e(0xec),'entity':e(0xe7),'columns':[{'name':'id','type':e(0xd5),'required':![],'autoIncrement':!![]},{'name':'name','type':e(0xb3)},{'name':'description','type':e(0xb3)}],'parameters':[{'name':e(0x9f),'type':'string'},{'name':e(0x91),'type':e(0xb3)}],'constraints':[{'message':e(0xd9),'condition':'isNotNull(name)'}],'values':[],'defaults':[],'clause':e(0xd1),'alias':'c'}),expect(__1[e(0x95)][e(0x9e)]('Categories.insert(p=>{name:p.name,description:p.description})'))[e(0xc0)]({'classtype':e(0x97),'pos':{'ln':0x0,'col':0x12},'name':e(0xd1),'children':[],'type':e(0xec),'entity':e(0xe7),'columns':[{'name':'id','type':e(0xd5),'required':![],'autoIncrement':!![]},{'name':e(0x9f),'type':e(0xb3)},{'name':e(0x91),'type':e(0xb3)}],'parameters':[{'name':'p.name','type':e(0xb3)},{'name':e(0xb9),'type':e(0xb3)}],'constraints':[],'values':[],'defaults':[],'clause':'insert','alias':'c'}),expect(__1[e(0x95)][e(0x9e)](e(0xd8)))['toEqual']({'classtype':'Sentence','pos':{'ln':0x0,'col':0x12},'name':e(0xd1),'children':[],'type':e(0xec),'entity':e(0xe7),'columns':[{'name':'id','type':e(0xd5),'required':![],'autoIncrement':!![]},{'name':e(0x9f),'type':e(0xb3)},{'name':e(0x91),'type':'string'}],'parameters':[{'name':'name','type':'string'},{'name':'description','type':e(0xb3)}],'constraints':[{'message':e(0xd9),'condition':e(0xc5)}],'values':[],'defaults':[],'clause':'insert','alias':'c'}),expect(__1[e(0x95)][e(0x9e)](e(0x96)))[e(0xc0)]({'classtype':'Sentence','pos':{'ln':0x0,'col':0x16},'name':'bulkInsert','children':[],'type':e(0xec),'entity':'Categories','columns':[{'name':'id','type':'integer','required':![],'autoIncrement':!![]},{'name':e(0x9f),'type':'string'},{'name':e(0x91),'type':'string'}],'parameters':[{'name':e(0x9f),'type':e(0xb3)},{'name':'description','type':e(0xb3)}],'constraints':[{'message':e(0xd9),'condition':'isNotNull(name)'}],'values':[],'defaults':[],'clause':e(0xef),'alias':'c'}),expect(__1[e(0x95)][e(0x9e)]('Orders.bulkInsert().include(p\x20=>\x20p.details)'))['toEqual']({'classtype':e(0x97),'pos':{'ln':0x0,'col':0x1c},'name':e(0xef),'children':[{'classtype':e(0x97),'pos':{'ln':0x0,'col':0x21},'name':e(0xef),'children':[],'type':e(0xec),'entity':e(0xb8),'columns':[{'name':e(0xbe),'type':e(0xd5)},{'name':e(0xf0),'type':e(0xd5)},{'name':e(0xad),'type':'decimal'},{'name':e(0xdd),'type':e(0x9b)},{'name':'discount','type':e(0x9b)}],'parameters':[{'name':e(0xbe),'type':'integer'},{'name':'productId','type':'integer'},{'name':e(0xad),'type':e(0x9b)},{'name':'quantity','type':e(0x9b)},{'name':e(0x9a),'type':e(0x9b)}],'constraints':[{'message':e(0xa2),'condition':'isNotNull(orderId)'},{'message':e(0xe2),'condition':'isNotNull(productId)'}],'values':[],'defaults':[],'clause':e(0xef),'alias':'o1'}],'type':e(0xec),'entity':e(0xcc),'columns':[{'name':'id','type':e(0xd5),'required':![],'autoIncrement':!![]},{'name':e(0xc4),'type':e(0xb3)},{'name':'employeeId','type':e(0xd5)},{'name':e(0xd0),'type':e(0xa3)},{'name':e(0xea),'type':'date'},{'name':e(0xc1),'type':e(0xf4)},{'name':e(0xce),'type':'integer'},{'name':e(0xe3),'type':e(0x9b)},{'name':e(0x9f),'type':e(0xb3)},{'name':e(0x9c),'type':e(0xb3)},{'name':e(0xf1),'type':'string'},{'name':e(0xaf),'type':e(0xb3)},{'name':e(0xcf),'type':'string'},{'name':e(0xb7),'type':e(0xb3)}],'parameters':[{'name':'customerId','type':e(0xb3)},{'name':e(0xab),'type':e(0xd5)},{'name':e(0xd0),'type':e(0xa3)},{'name':e(0xea),'type':'date'},{'name':e(0xc1),'type':e(0xf4)},{'name':e(0xce),'type':e(0xd5)},{'name':'freight','type':'decimal'},{'name':e(0x9f),'type':e(0xb3)},{'name':e(0x9c),'type':e(0xb3)},{'name':e(0xf1),'type':e(0xb3)},{'name':'region','type':'string'},{'name':e(0xcf),'type':'string'},{'name':e(0xb7),'type':e(0xb3)}],'constraints':[{'message':e(0xa4),'condition':e(0x8b)},{'message':e(0xaa),'condition':e(0xd4)}],'values':[],'defaults':[],'clause':'bulkInsert','alias':'o'}),expect(__1['orm']['metadata'](e(0xc9)))['toEqual']({'classtype':e(0x97),'pos':{'ln':0x0,'col':0x1c},'name':e(0xef),'children':[{'classtype':e(0x97),'pos':{'ln':0x0,'col':0x22},'name':'bulkInsert','children':[],'type':'any','entity':e(0xb8),'columns':[{'name':e(0xbe),'type':e(0xd5)},{'name':e(0xf0),'type':e(0xd5)},{'name':e(0xad),'type':e(0x9b)},{'name':'quantity','type':e(0x9b)},{'name':e(0x9a),'type':e(0x9b)}],'parameters':[{'name':e(0xbe),'type':e(0xd5)},{'name':'productId','type':e(0xd5)},{'name':'unitPrice','type':e(0x9b)},{'name':e(0xdd),'type':e(0x9b)},{'name':e(0x9a),'type':e(0x9b)}],'constraints':[{'message':e(0xa2),'condition':'isNotNull(orderId)'},{'message':e(0xe2),'condition':e(0xf9)}],'values':[],'defaults':[],'clause':e(0xef),'alias':'o1'},{'classtype':e(0x97),'pos':{'ln':0x0,'col':0x2d},'name':e(0xef),'children':[],'type':e(0xec),'entity':e(0xd7),'columns':[{'name':'id','type':'string'},{'name':e(0x9f),'type':e(0xb3)},{'name':e(0xd6),'type':'string'},{'name':e(0xb6),'type':e(0xb3)},{'name':e(0x9c),'type':'string'},{'name':'city','type':e(0xb3)},{'name':e(0xaf),'type':e(0xb3)},{'name':'postalCode','type':'string'},{'name':e(0xb7),'type':e(0xb3)}],'parameters':[{'name':'id','type':e(0xb3)},{'name':e(0x9f),'type':e(0xb3)},{'name':e(0xd6),'type':e(0xb3)},{'name':e(0xb6),'type':e(0xb3)},{'name':e(0x9c),'type':e(0xb3)},{'name':e(0xf1),'type':e(0xb3)},{'name':e(0xaf),'type':e(0xb3)},{'name':'postalCode','type':'string'},{'name':'country','type':'string'}],'constraints':[{'message':e(0xb4),'condition':'isNotNull(id)'},{'message':'Cannot\x20be\x20null\x20property\x20name\x20in\x20entity\x20Customers','condition':e(0xc5)}],'values':[],'defaults':[],'clause':e(0xef),'alias':'c'}],'type':'any','entity':e(0xcc),'columns':[{'name':'id','type':e(0xd5),'required':![],'autoIncrement':!![]},{'name':e(0xc4),'type':'string'},{'name':e(0xab),'type':'integer'},{'name':e(0xd0),'type':'dateTime'},{'name':e(0xea),'type':e(0xf4)},{'name':'shippedDate','type':e(0xf4)},{'name':e(0xce),'type':e(0xd5)},{'name':e(0xe3),'type':'decimal'},{'name':e(0x9f),'type':e(0xb3)},{'name':'address','type':'string'},{'name':'city','type':'string'},{'name':'region','type':e(0xb3)},{'name':'postalCode','type':'string'},{'name':'country','type':e(0xb3)}],'parameters':[{'name':e(0xc4),'type':e(0xb3)},{'name':e(0xab),'type':e(0xd5)},{'name':e(0xd0),'type':'dateTime'},{'name':e(0xea),'type':e(0xf4)},{'name':e(0xc1),'type':e(0xf4)},{'name':e(0xce),'type':e(0xd5)},{'name':e(0xe3),'type':e(0x9b)},{'name':e(0x9f),'type':e(0xb3)},{'name':e(0x9c),'type':e(0xb3)},{'name':'city','type':e(0xb3)},{'name':e(0xaf),'type':e(0xb3)},{'name':e(0xcf),'type':e(0xb3)},{'name':'country','type':'string'}],'constraints':[{'message':e(0xa4),'condition':e(0x8b)},{'message':e(0xaa),'condition':e(0xd4)}],'values':[],'defaults':[],'clause':e(0xef),'alias':'o'});}),test(j(0xf8),()=>{const n=j;expect(__1['orm'][n(0xc3)]('Categories.insert({name:name,description:description})',{'stage':n(0xfd)}))[n(0xb0)]({'entity':n(0xe7),'dialect':'MySQL','source':n(0xfd),'sentence':n(0xcd)}),expect(__1['orm'][n(0xc3)](n(0xfb),{'stage':n(0xfd)}))[n(0xb0)]({'entity':'Categories','dialect':n(0xfd),'source':n(0xfd),'sentence':n(0xcd)}),expect(__1['orm']['plan'](n(0xe5),{'stage':n(0xfd)}))[n(0xb0)]({'entity':n(0xe7),'dialect':'MySQL','source':n(0xfd),'sentence':'INSERT\x20INTO\x20Categories(CategoryName,Description)\x20VALUES(?,?)'}),expect(__1[n(0x95)][n(0xc3)](n(0x90),{'stage':'MySQL'}))[n(0xb0)]({'entity':n(0xe7),'dialect':n(0xfd),'source':n(0xfd),'sentence':n(0xcd)}),expect(__1[n(0x95)][n(0xc3)](n(0xe1),{'stage':n(0xfd)}))[n(0xb0)]({'entity':n(0xcc),'dialect':n(0xfd),'source':n(0xfd),'sentence':'INSERT\x20INTO\x20Orders(CustomerID,EmployeeID,OrderDate,RequiredDate,ShippedDate,ShipVia,Freight,ShipName,ShipAddress,ShipCity,ShipRegion,ShipPostalCode,ShipCountry)\x20VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?)'}),expect(__1[n(0x95)]['plan'](n(0x8e),{'stage':n(0xfd)}))[n(0xb0)]({'entity':'Orders','dialect':n(0xfd),'source':n(0xfd),'sentence':n(0xc2),'children':[{'entity':n(0xb8),'dialect':'MySQL','source':n(0xfd),'sentence':n(0xeb)}]}),expect(__1[n(0x95)]['plan']('Orders.insert().include(p\x20=>\x20[p.details,\x20p.customer])',{'stage':'MySQL'}))['toStrictEqual']({'entity':'Orders','dialect':n(0xfd),'source':n(0xfd),'sentence':n(0xc2),'children':[{'entity':n(0xb8),'dialect':n(0xfd),'source':n(0xfd),'sentence':n(0xeb)},{'entity':n(0xd7),'dialect':n(0xfd),'source':n(0xfd),'sentence':n(0xf7)}]}),expect(__1[n(0x95)][n(0xc3)](n(0xd2),{'stage':'MySQL'}))[n(0xb0)]({'entity':n(0xe7),'dialect':n(0xfd),'source':n(0xfd),'sentence':n(0xcd)}),expect(__1[n(0x95)]['plan'](n(0xa0),{'stage':'MySQL'}))[n(0xb0)]({'entity':'Categories','dialect':n(0xfd),'source':n(0xfd),'sentence':n(0xcd)}),expect(__1[n(0x95)][n(0xc3)](n(0xd8),{'stage':n(0xfd)}))['toStrictEqual']({'entity':n(0xe7),'dialect':'MySQL','source':n(0xfd),'sentence':n(0xcd)}),expect(__1[n(0x95)][n(0xc3)]('Categories.bulkInsert()',{'stage':n(0xfd)}))[n(0xb0)]({'entity':n(0xe7),'dialect':n(0xfd),'source':n(0xfd),'sentence':n(0xe9)}),expect(__1[n(0x95)]['plan'](n(0xbc),{'stage':n(0xfd)}))['toStrictEqual']({'entity':'Orders','dialect':n(0xfd),'source':n(0xfd),'sentence':n(0x8f),'children':[{'entity':'Orders.details','dialect':n(0xfd),'source':'MySQL','sentence':n(0x94)}]}),expect(__1[n(0x95)]['plan']('Orders.bulkInsert().include(p\x20=>\x20[p.details,\x20p.customer])',{'stage':'MySQL'}))[n(0xb0)]({'entity':n(0xcc),'dialect':n(0xfd),'source':n(0xfd),'sentence':n(0x8f),'children':[{'entity':n(0xb8),'dialect':n(0xfd),'source':n(0xfd),'sentence':n(0x94)},{'entity':n(0xd7),'dialect':n(0xfd),'source':n(0xfd),'sentence':n(0x98)}]});});});