lambdaorm
Version:
1 lines • 52.1 kB
JavaScript
'use strict';const a165z=a165y;function a165s(){const h=['config','date','SELECT\x20p.ProductName\x20AS\x20name,\x20c.CategoryName\x20AS\x20category\x20FROM\x20Products\x20p\x20INNER\x20JOIN\x20Categories\x20c\x20ON\x20c.CategoryID\x20=\x20p.CategoryID\x20ORDER\x20BY\x20category\x20asc,\x20p.ProductName\x20asc\x20','employee.country','constraints','Products.last(p\x20=>\x20p)','12570ChlEqG','employee.city','category','requiredDate','details.unitPrice','Orders.filter(p\x20=>\x20p.id\x20===\x20id).map(p\x20=>\x20[p,p.customer,p.details])','integer','toEqual','name','onOrder','inStock','minValue','employee.titleOfCourtesy','employee.postalCode','init','Products.distinct(p\x20=>\x20({\x20category:\x20p.category.name\x20})).sort(p\x20=>\x20p.category)','details.discount','9129744njzskl','shippedDate','region','MySQL','product','country','string','employee.id','employee.birthDate','shipViaId','Products.map(p=>{id:p.id,name:p.name,supplierId:p.supplierId,categoryId:p.categoryId,quantity:p.quantity,price:p.price,inStock:p.inStock,onOrder:p.onOrder,reorderLevel:p.reorderLevel,discontinued:p.discontinued}).filter(p=>(p.id==id)).sort(p=>asc(p.id))','SELECT\x20c.CategoryName\x20AS\x20category,\x20p.ProductName\x20AS\x20product,\x20o.UnitPrice\x20AS\x20unitPrice,\x20o.Quantity\x20AS\x20quantity\x20FROM\x20`Order\x20Details`\x20o\x20INNER\x20JOIN\x20Orders\x20o1\x20ON\x20o1.OrderID\x20=\x20o.OrderID\x20INNER\x20JOIN\x20Products\x20p\x20ON\x20p.ProductID\x20=\x20o.ProductID\x20INNER\x20JOIN\x20Categories\x20c\x20ON\x20c.CategoryID\x20=\x20p.CategoryID\x20WHERE\x20(o1.ShippedDate\x20BETWEEN\x20?\x20AND\x20?\x20AND\x20o.UnitPrice\x20>\x20?)\x20','Orders.map(p=>{p:p,customer:p.customer,employee:p.employee}).filter(p=>(p.id==id))','apply','employeeId','supplierId','Products.map(p=>{id:p.id,name:p.name,supplierId:p.supplierId,categoryId:p.categoryId,quantity:p.quantity,price:p.price,inStock:p.inStock,onOrder:p.onOrder,reorderLevel:p.reorderLevel,discontinued:p.discontinued}).sort(p=>desc(p.id)).page(1,1)','5629955aRMRxT','boolean','Orders.details.map(p=>{category:p.product.category.name,product:p.product.name,unitPrice:p.unitPrice,quantity:p.quantity}).filter(p=>(between(p.order.shippedDate,fromDate,toDate)&&(p.unitPrice>minValue)))','customer.name','query','employee.title','employee.region','customer.phone','Orders.details.map(p=>{category:p.product.category.name,product:p.product.name,unitPrice:p.unitPrice,quantity:p.quantity}).filter(p=>(between(p.order.shippedDate,fromDate,toDate)&&(p.unitPrice>minValue))).sort(p=>[asc(p.category),asc(p.product),asc(p.unitPrice),asc(p.quantity)])','Products','Products.map(p=>{id:p.id,name:p.name,supplierId:p.supplierId,categoryId:p.categoryId,quantity:p.quantity,price:p.price,inStock:p.inStock,onOrder:p.onOrder,reorderLevel:p.reorderLevel,discontinued:p.discontinued}).sort(p=>asc(p.name))','toStrictEqual','employee.reportsToId','quantity','Products.map(p\x20=>\x20({\x20category:\x20p.category.name\x20})).sort(p\x20=>\x20p.category)','SELECT\x20o.OrderID\x20AS\x20id,\x20o.CustomerID\x20AS\x20customerId,\x20o.EmployeeID\x20AS\x20employeeId,\x20o.OrderDate\x20AS\x20orderDate,\x20o.RequiredDate\x20AS\x20requiredDate,\x20o.ShippedDate\x20AS\x20shippedDate,\x20o.ShipVia\x20AS\x20shipViaId,\x20o.Freight\x20AS\x20freight,\x20o.ShipName\x20AS\x20name,\x20o.ShipAddress\x20AS\x20address,\x20o.ShipCity\x20AS\x20city,\x20o.ShipRegion\x20AS\x20region,\x20o.ShipPostalCode\x20AS\x20postalCode,\x20o.ShipCountry\x20AS\x20country,\x20c.CustomerID\x20AS\x20`customer.id`,\x20c.CompanyName\x20AS\x20`customer.name`,\x20c.ContactName\x20AS\x20`customer.contact`,\x20c.ContactTitle\x20AS\x20`customer.phone`,\x20c.Address\x20AS\x20`customer.address`,\x20c.City\x20AS\x20`customer.city`,\x20c.Region\x20AS\x20`customer.region`,\x20c.PostalCode\x20AS\x20`customer.postalCode`,\x20c.Country\x20AS\x20`customer.country`,\x20e.EmployeeID\x20AS\x20`employee.id`,\x20e.LastName\x20AS\x20`employee.lastName`,\x20e.FirstName\x20AS\x20`employee.firstName`,\x20e.Title\x20AS\x20`employee.title`,\x20e.TitleOfCourtesy\x20AS\x20`employee.titleOfCourtesy`,\x20e.BirthDate\x20AS\x20`employee.birthDate`,\x20e.HireDate\x20AS\x20`employee.hireDate`,\x20e.HomePhone\x20AS\x20`employee.phone`,\x20e.ReportsTo\x20AS\x20`employee.reportsToId`,\x20e.Address\x20AS\x20`employee.address`,\x20e.City\x20AS\x20`employee.city`,\x20e.Region\x20AS\x20`employee.region`,\x20e.PostalCode\x20AS\x20`employee.postalCode`,\x20e.Country\x20AS\x20`employee.country`\x20FROM\x20Orders\x20o\x20INNER\x20JOIN\x20Customers\x20c\x20ON\x20c.CustomerID\x20=\x20o.CustomerID\x20INNER\x20JOIN\x20Employees\x20e\x20ON\x20e.EmployeeID\x20=\x20o.EmployeeID\x20WHERE\x20o.OrderID\x20=\x20?\x20','Products.map(p\x20=>\x20({\x20category:\x20p.category.name,\x20name:\x20p.name,\x20quantity:\x20p.quantity,\x20inStock:\x20p.inStock\x20})).sort(p\x20=>\x20p.name)','details.quantity','SELECT\x20p.ProductID\x20AS\x20id,\x20p.ProductName\x20AS\x20name,\x20p.SupplierID\x20AS\x20supplierId,\x20p.CategoryID\x20AS\x20categoryId,\x20p.QuantityPerUnit\x20AS\x20quantity,\x20p.UnitPrice\x20AS\x20price,\x20p.UnitsInStock\x20AS\x20inStock,\x20p.UnitsOnOrder\x20AS\x20onOrder,\x20p.ReorderLevel\x20AS\x20reorderLevel,\x20p.Discontinued\x20AS\x20discontinued\x20FROM\x20Products\x20p\x20\x20ORDER\x20BY\x20p.ProductID\x20desc\x20\x20LIMIT\x200,1\x20','Products.map(p=>{category:p.category.name,name:p.name,quantity:p.quantity,inStock:p.inStock}).sort(p=>asc(p.category)).page(1,1)','Products.filter(p\x20=>\x20p.discontinued\x20!==\x20false).last(p\x20=>\x20p.id)','employee.lastName','employee.firstName','Products.distinct(p\x20=>\x20({\x20quantity:\x20p.quantity,\x20category:\x20p.category.name\x20})).sort(p\x20=>\x20[p.quantity,\x20p.category])','Products.filter(p\x20=>\x20p.id\x20===\x20id).map(p\x20=>\x20p).sort(p\x20=>\x20p.id)','metadata','categoryId','SELECT\x20o.ShipName\x20AS\x20name,\x20c.CustomerID\x20AS\x20`customer.id`,\x20c.CompanyName\x20AS\x20`customer.name`,\x20c.ContactName\x20AS\x20`customer.contact`,\x20c.ContactTitle\x20AS\x20`customer.phone`,\x20c.Address\x20AS\x20`customer.address`,\x20c.City\x20AS\x20`customer.city`,\x20c.Region\x20AS\x20`customer.region`,\x20c.PostalCode\x20AS\x20`customer.postalCode`,\x20c.Country\x20AS\x20`customer.country`,\x20e.EmployeeID\x20AS\x20`employee.id`,\x20e.LastName\x20AS\x20`employee.lastName`,\x20e.FirstName\x20AS\x20`employee.firstName`,\x20e.Title\x20AS\x20`employee.title`,\x20e.TitleOfCourtesy\x20AS\x20`employee.titleOfCourtesy`,\x20e.BirthDate\x20AS\x20`employee.birthDate`,\x20e.HireDate\x20AS\x20`employee.hireDate`,\x20e.HomePhone\x20AS\x20`employee.phone`,\x20e.ReportsTo\x20AS\x20`employee.reportsToId`,\x20e.Address\x20AS\x20`employee.address`,\x20e.City\x20AS\x20`employee.city`,\x20e.Region\x20AS\x20`employee.region`,\x20e.PostalCode\x20AS\x20`employee.postalCode`,\x20e.Country\x20AS\x20`employee.country`\x20FROM\x20Orders\x20o\x20INNER\x20JOIN\x20Customers\x20c\x20ON\x20c.CustomerID\x20=\x20o.CustomerID\x20INNER\x20JOIN\x20Employees\x20e\x20ON\x20e.EmployeeID\x20=\x20o.EmployeeID\x20WHERE\x20o.OrderID\x20=\x20?\x20','Products.map(p=>{category:p.category.name,name:p.name,quantity:p.quantity,inStock:p.inStock}).sort(p=>asc(p.name))','47919bxbdTt','7bIQMJG','address','toDate','next','postalCode','Orders.filter(p\x20=>\x20p.id\x20===\x20id).map(p\x20=>\x20[p.name,p.customer])','employee.hireDate','SELECT\x20o.ShipName\x20AS\x20name,\x20c.CustomerID\x20AS\x20`customer.id`,\x20c.CompanyName\x20AS\x20`customer.name`,\x20c.ContactName\x20AS\x20`customer.contact`,\x20c.ContactTitle\x20AS\x20`customer.phone`,\x20c.Address\x20AS\x20`customer.address`,\x20c.City\x20AS\x20`customer.city`,\x20c.Region\x20AS\x20`customer.region`,\x20c.PostalCode\x20AS\x20`customer.postalCode`,\x20c.Country\x20AS\x20`customer.country`\x20FROM\x20Orders\x20o\x20INNER\x20JOIN\x20Customers\x20c\x20ON\x20c.CustomerID\x20=\x20o.CustomerID\x20WHERE\x20o.OrderID\x20=\x20?\x20','employee.phone','4383dFVIwJ','SELECT\x20DISTINCT\x20c.CategoryName\x20AS\x20category\x20FROM\x20Products\x20p\x20INNER\x20JOIN\x20Categories\x20c\x20ON\x20c.CategoryID\x20=\x20p.CategoryID\x20ORDER\x20BY\x20category\x20asc\x20','Products.first(p\x20=>\x20({\x20category:\x20p.category.name,\x20name:\x20p.name,\x20quantity:\x20p.quantity,\x20inStock:\x20p.inStock\x20}))','SELECT\x20c.CategoryName\x20AS\x20category\x20FROM\x20Products\x20p\x20INNER\x20JOIN\x20Categories\x20c\x20ON\x20c.CategoryID\x20=\x20p.CategoryID\x20ORDER\x20BY\x20category\x20asc\x20','freight','unitPrice','fromDate','customer.postalCode','city','SELECT\x20c.CategoryName\x20AS\x20category,\x20p.ProductName\x20AS\x20name,\x20p.QuantityPerUnit\x20AS\x20quantity,\x20p.UnitsInStock\x20AS\x20inStock\x20FROM\x20Products\x20p\x20INNER\x20JOIN\x20Categories\x20c\x20ON\x20c.CategoryID\x20=\x20p.CategoryID\x20ORDER\x20BY\x20category\x20asc\x20\x20LIMIT\x200,1\x20','Sentence','Orders.filter(p\x20=>\x20p.id\x20===\x20id).map(p\x20=>\x20[p.name,p.customer,p.employee])','__awaiter','model','decimal','customerId','details.productId','select','72HbhHiH','Products.map(p=>distinct({category:p.category.name})).sort(p=>asc(p.category))','Products.filter(p\x20=>\x20p.discontinued\x20!==\x20false).map(p\x20=>\x20({\x20category:\x20p.category.name,\x20name:\x20p.name,\x20quantity:\x20p.quantity,\x20inStock:\x20p.inStock\x20})).sort(p\x20=>\x20[p.category,\x20desc(p.name)])','Orders.details','customer.contact','SELECT\x20c.CategoryName\x20AS\x20category,\x20p.ProductName\x20AS\x20product,\x20o.UnitPrice\x20AS\x20unitPrice,\x20o.Quantity\x20AS\x20quantity\x20FROM\x20`Order\x20Details`\x20o\x20INNER\x20JOIN\x20Orders\x20o1\x20ON\x20o1.OrderID\x20=\x20o.OrderID\x20INNER\x20JOIN\x20Products\x20p\x20ON\x20p.ProductID\x20=\x20o.ProductID\x20INNER\x20JOIN\x20Categories\x20c\x20ON\x20c.CategoryID\x20=\x20p.CategoryID\x20WHERE\x20(o1.ShippedDate\x20BETWEEN\x20?\x20AND\x20?\x20AND\x20o.UnitPrice\x20>\x20?)\x20ORDER\x20BY\x20category\x20asc,\x20product\x20asc,\x20o.UnitPrice\x20asc,\x20o.Quantity\x20asc\x20','230955KOxOjf','orm','SELECT\x20p.ProductID\x20AS\x20id,\x20p.ProductName\x20AS\x20name,\x20p.SupplierID\x20AS\x20supplierId,\x20p.CategoryID\x20AS\x20categoryId,\x20p.QuantityPerUnit\x20AS\x20quantity,\x20p.UnitPrice\x20AS\x20price,\x20p.UnitsInStock\x20AS\x20inStock,\x20p.UnitsOnOrder\x20AS\x20onOrder,\x20p.ReorderLevel\x20AS\x20reorderLevel,\x20p.Discontinued\x20AS\x20discontinued\x20FROM\x20Products\x20p\x20\x20WHERE\x20p.ProductID\x20=\x20?\x20ORDER\x20BY\x20p.ProductID\x20asc\x20','done','Products.map(p\x20=>\x20({\x20name:\x20p.name,\x20category:\x20p.category.name\x20})).sort(p\x20=>\x20[p.category,\x20p.name])','reorderLevel','throw','parameters','Orders.details.filter(p\x20=>\x20between(p.order.shippedDate,\x20fromDate,\x20toDate)\x20&&\x20p.unitPrice\x20>\x20minValue).map(p\x20=>\x20({\x20category:\x20p.product.category.name,\x20product:\x20p.product.name,\x20unitPrice:\x20p.unitPrice,\x20quantity:\x20p.quantity\x20}))','Products.map(p=>{id:p.id}).filter(p=>(p.discontinued!=false)).sort(p=>desc(p.id)).page(1,1)','orderDate','normalize','discontinued','value','Products.sort(p\x20=>\x20p.id).page(1,\x201)','customer.id','employee.address','customer.city','Orders.filter(p\x20=>\x20p.id\x20===\x20id).map(p\x20=>\x20[p,p.customer,p.employee])','Products.map(p\x20=>\x20p).sort(p\x20=>\x20p.id).page(1,\x201)','customer.region','Products.first(p\x20=>\x20p)','dateTime','3933252uyvoPe','Products.filter(p\x20=>\x20p.id\x20===\x20id).sort(p\x20=>\x20p.id)\x20','customer.address','Products.distinct(p\x20=>\x20p).sort(p\x20=>\x20p.id)','Products.sort(p\x20=>\x20p.name)','Products.map(p=>{name:p.name,category:p.category.name}).sort(p=>[asc(p.category),asc(p.name)])','./config/northwind.yaml','Orders.map(p=>{p:p,customer:p.customer,details:p.details}).filter(p=>(p.id==id))','any','Products.map(p=>{id:p.id,name:p.name,supplierId:p.supplierId,categoryId:p.categoryId,quantity:p.quantity,price:p.price,inStock:p.inStock,onOrder:p.onOrder,reorderLevel:p.reorderLevel,discontinued:p.discontinued}).sort(p=>asc(p.id)).page(1,1)','price','Orders.map(p=>{name:p.name,customer:p.customer,employee:p.employee}).filter(p=>(p.id==id))','plan','Orders.details.filter(p\x20=>\x20between(p.order.shippedDate,\x20fromDate,\x20toDate)\x20&&\x20p.unitPrice\x20>\x20minValue).map(p\x20=>\x20({\x20category:\x20p.product.category.name,\x20product:\x20p.product.name,\x20unitPrice:\x20p.unitPrice,\x20quantity:\x20p.quantity\x20})).sort(p\x20=>\x20[p.category,\x20p.product,\x20p.unitPrice,\x20p.quantity])\x20','Products.map(p=>distinct({id:p.id,name:p.name,supplierId:p.supplierId,categoryId:p.categoryId,quantity:p.quantity,price:p.price,inStock:p.inStock,onOrder:p.onOrder,reorderLevel:p.reorderLevel,discontinued:p.discontinued})).sort(p=>asc(p.id))','18YayrUT','SELECT\x20p.ProductID\x20AS\x20id,\x20p.ProductName\x20AS\x20name,\x20p.SupplierID\x20AS\x20supplierId,\x20p.CategoryID\x20AS\x20categoryId,\x20p.QuantityPerUnit\x20AS\x20quantity,\x20p.UnitPrice\x20AS\x20price,\x20p.UnitsInStock\x20AS\x20inStock,\x20p.UnitsOnOrder\x20AS\x20onOrder,\x20p.ReorderLevel\x20AS\x20reorderLevel,\x20p.Discontinued\x20AS\x20discontinued\x20FROM\x20Products\x20p\x20\x20ORDER\x20BY\x20p.ProductID\x20asc\x20\x20LIMIT\x200,1\x20','Orders','SELECT\x20DISTINCT\x20p.ProductID\x20AS\x20id,\x20p.ProductName\x20AS\x20name,\x20p.SupplierID\x20AS\x20supplierId,\x20p.CategoryID\x20AS\x20categoryId,\x20p.QuantityPerUnit\x20AS\x20quantity,\x20p.UnitPrice\x20AS\x20price,\x20p.UnitsInStock\x20AS\x20inStock,\x20p.UnitsOnOrder\x20AS\x20onOrder,\x20p.ReorderLevel\x20AS\x20reorderLevel,\x20p.Discontinued\x20AS\x20discontinued\x20FROM\x20Products\x20p\x20\x20ORDER\x20BY\x20p.ProductID\x20asc\x20','customer.country','defineProperty','SELECT\x20p.ProductID\x20AS\x20id,\x20p.ProductName\x20AS\x20name,\x20p.SupplierID\x20AS\x20supplierId,\x20p.CategoryID\x20AS\x20categoryId,\x20p.QuantityPerUnit\x20AS\x20quantity,\x20p.UnitPrice\x20AS\x20price,\x20p.UnitsInStock\x20AS\x20inStock,\x20p.UnitsOnOrder\x20AS\x20onOrder,\x20p.ReorderLevel\x20AS\x20reorderLevel,\x20p.Discontinued\x20AS\x20discontinued\x20FROM\x20Products\x20p\x20\x20ORDER\x20BY\x20p.ProductName\x20asc\x20','33999955bpnJqm','Products.map(p=>distinct({quantity:p.quantity,category:p.category.name})).sort(p=>[asc(p.quantity),asc(p.category)])'];a165s=function(){return h;};return a165s();}(function(s,y){const r=a165y,g=s();while(!![]){try{const x=parseInt(r(0xd2))/0x1*(parseInt(r(0x11a))/0x2)+parseInt(r(0xf4))/0x3*(-parseInt(r(0xee))/0x4)+-parseInt(r(0x14b))/0x5+-parseInt(r(0x10b))/0x6+parseInt(r(0xd3))/0x7*(parseInt(r(0x13a))/0x8)+parseInt(r(0xdc))/0x9*(-parseInt(r(0x129))/0xa)+parseInt(r(0x121))/0xb;if(x===y)break;else g['push'](g['shift']());}catch(m){g['push'](g['shift']());}}}(a165s,0xd7d04));var __awaiter=this&&this[a165z(0xe8)]||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 p=a165y;function t(c){const d=a165y;try{a(g[d(0xd6)](c));}catch(k){w(k);}}function v(c){const i=a165y;try{a(g[i(0xfa)](c));}catch(k){w(k);}}function a(c){const o=a165y;c[o(0xf7)]?m(c[o(0x101)]):x(c[o(0x101)])['then'](t,v);}a((g=g[p(0x147)](s,y||[]))[p(0xd6)]());});};Object[a165z(0x11f)](exports,'__esModule',{'value':!![]});function a165y(s,y){const O=a165s();return a165y=function(D,g){D=D-0xc8;let M=O[D];return M;},a165y(s,y);}const __1=require('../../../..');beforeAll(()=>__awaiter(void 0x0,void 0x0,void 0x0,function*(){const f=a165z;require('dotenv')[f(0x123)]({'path':'./config/northwind.env'}),yield __1[f(0xf5)][f(0x137)](f(0x111));})),describe(a165z(0x14f),()=>{const q=a165z,s=JSON['parse']('{}');test(q(0xff),()=>{const j=q;expect(__1['orm'][j(0xff)](j(0x10f)))[j(0x156)](j(0x155)),expect(__1[j(0xf5)][j(0xff)](j(0x107)))[j(0x156)]('Products.map(p=>{id:p.id,name:p.name,supplierId:p.supplierId,categoryId:p.categoryId,quantity:p.quantity,price:p.price,inStock:p.inStock,onOrder:p.onOrder,reorderLevel:p.reorderLevel,discontinued:p.discontinued}).sort(p=>asc(p.id)).page(1,1)'),expect(__1[j(0xf5)]['normalize'](j(0x102)))['toStrictEqual'](j(0x114)),expect(__1[j(0xf5)][j(0xff)]('Products.filter(p\x20=>\x20p.id\x20===\x20id).map(p\x20=>\x20p).sort(p\x20=>\x20p.id)'))[j(0x156)](j(0x144)),expect(__1['orm']['normalize'](j(0x10c)))['toStrictEqual'](j(0x144)),expect(__1[j(0xf5)][j(0xff)](j(0x159)))[j(0x156)]('Products.map(p=>{category:p.category.name}).sort(p=>asc(p.category))'),expect(__1[j(0xf5)]['normalize'](j(0xf8)))[j(0x156)](j(0x110)),expect(__1[j(0xf5)][j(0xff)](j(0x15b)))[j(0x156)](j(0xd1)),expect(__1['orm'][j(0xff)](j(0xf0)))[j(0x156)]('Products.map(p=>{category:p.category.name,name:p.name,quantity:p.quantity,inStock:p.inStock}).filter(p=>(p.discontinued!=false)).sort(p=>[asc(p.category),desc(p.name)])'),expect(__1[j(0xf5)][j(0xff)](j(0xfc)))['toStrictEqual'](j(0x14d)),expect(__1[j(0xf5)][j(0xff)]('Orders.details.filter(p\x20=>\x20between(p.order.shippedDate,\x20fromDate,\x20toDate)\x20&&\x20p.unitPrice\x20>\x20minValue).map(p\x20=>\x20({\x20category:\x20p.product.category.name,\x20product:\x20p.product.name,\x20unitPrice:\x20p.unitPrice,\x20quantity:\x20p.quantity\x20})).sort(p\x20=>\x20[p.category,\x20p.product,\x20p.unitPrice,\x20p.quantity])\x20'))['toStrictEqual'](j(0x153)),expect(__1[j(0xf5)][j(0xff)](j(0x109)))['toStrictEqual'](j(0x114)),expect(__1[j(0xf5)][j(0xff)](j(0x128)))['toStrictEqual'](j(0x14a)),expect(__1[j(0xf5)]['normalize'](j(0xde)))[j(0x156)](j(0xc8)),expect(__1[j(0xf5)]['normalize'](j(0xc9)))[j(0x156)](j(0xfd)),expect(__1[j(0xf5)][j(0xff)](j(0x10e)))[j(0x156)](j(0x119)),expect(__1[j(0xf5)]['normalize'](j(0x138)))['toStrictEqual'](j(0xef)),expect(__1[j(0xf5)][j(0xff)](j(0xcc)))[j(0x156)](j(0x122)),expect(__1['orm'][j(0xff)](j(0x12e)))[j(0x156)](j(0x112)),expect(__1[j(0xf5)][j(0xff)](j(0x106)))[j(0x156)](j(0x146)),expect(__1['orm'][j(0xff)](j(0xe7)))[j(0x156)](j(0x116)),expect(__1[j(0xf5)][j(0xff)](j(0xd8)))[j(0x156)]('Orders.map(p=>{name:p.name,customer:p.customer}).filter(p=>(p.id==id))');}),test(q(0xe9),()=>{const b=q;expect(__1[b(0xf5)]['model'](b(0x10f)))[b(0x156)]([{'name':'id','type':b(0x12f)},{'name':b(0x131),'type':b(0x140)},{'name':'supplierId','type':b(0x12f)},{'name':b(0xcf),'type':b(0x12f)},{'name':b(0x158),'type':b(0x140)},{'name':'price','type':b(0xea)},{'name':b(0x133),'type':'decimal'},{'name':b(0x132),'type':b(0xea)},{'name':b(0xf9),'type':b(0xea)},{'name':'discontinued','type':'boolean'}]),expect(__1['orm'][b(0xe9)](b(0x107)))[b(0x156)]([{'name':'id','type':b(0x12f)},{'name':b(0x131),'type':b(0x140)},{'name':'supplierId','type':'integer'},{'name':'categoryId','type':'integer'},{'name':b(0x158),'type':b(0x140)},{'name':b(0x115),'type':b(0xea)},{'name':b(0x133),'type':b(0xea)},{'name':'onOrder','type':b(0xea)},{'name':b(0xf9),'type':'decimal'},{'name':'discontinued','type':b(0x14c)}]),expect(__1['orm'][b(0xe9)](b(0x102)))[b(0x156)]([{'name':'id','type':b(0x12f)},{'name':'name','type':b(0x140)},{'name':b(0x149),'type':b(0x12f)},{'name':'categoryId','type':b(0x12f)},{'name':b(0x158),'type':b(0x140)},{'name':b(0x115),'type':'decimal'},{'name':b(0x133),'type':'decimal'},{'name':b(0x132),'type':b(0xea)},{'name':b(0xf9),'type':'decimal'},{'name':b(0x100),'type':b(0x14c)}]),expect(__1[b(0xf5)]['model']('Products.filter(p\x20=>\x20p.id\x20===\x20id).map(p\x20=>\x20p).sort(p\x20=>\x20p.id)'))[b(0x156)]([{'name':'id','type':b(0x12f)},{'name':b(0x131),'type':b(0x140)},{'name':b(0x149),'type':b(0x12f)},{'name':b(0xcf),'type':b(0x12f)},{'name':b(0x158),'type':'string'},{'name':b(0x115),'type':b(0xea)},{'name':'inStock','type':b(0xea)},{'name':b(0x132),'type':b(0xea)},{'name':'reorderLevel','type':b(0xea)},{'name':b(0x100),'type':b(0x14c)}]),expect(__1[b(0xf5)][b(0xe9)](b(0x10c)))[b(0x156)]([{'name':'id','type':b(0x12f)},{'name':'name','type':b(0x140)},{'name':b(0x149),'type':b(0x12f)},{'name':b(0xcf),'type':'integer'},{'name':'quantity','type':b(0x140)},{'name':b(0x115),'type':b(0xea)},{'name':b(0x133),'type':b(0xea)},{'name':b(0x132),'type':b(0xea)},{'name':b(0xf9),'type':b(0xea)},{'name':b(0x100),'type':b(0x14c)}]),expect(__1['orm'][b(0xe9)](b(0x159)))[b(0x156)]([{'name':b(0x12b),'type':b(0x140)}]),expect(__1[b(0xf5)][b(0xe9)](b(0xf8)))[b(0x156)]([{'name':b(0x131),'type':'string'},{'name':b(0x12b),'type':b(0x140)}]),expect(__1['orm']['model'](b(0x15b)))[b(0x156)]([{'name':'category','type':b(0x140)},{'name':b(0x131),'type':'string'},{'name':b(0x158),'type':b(0x140)},{'name':b(0x133),'type':b(0xea)}]),expect(__1[b(0xf5)]['model'](b(0xf0)))[b(0x156)]([{'name':'category','type':b(0x140)},{'name':b(0x131),'type':b(0x140)},{'name':b(0x158),'type':b(0x140)},{'name':'inStock','type':'decimal'}]),expect(__1[b(0xf5)]['model'](b(0xfc)))[b(0x156)]([{'name':b(0x12b),'type':b(0x140)},{'name':b(0x13e),'type':b(0x140)},{'name':b(0xe1),'type':'decimal'},{'name':b(0x158),'type':b(0xea)}]),expect(__1[b(0xf5)][b(0xe9)](b(0x118)))[b(0x156)]([{'name':b(0x12b),'type':'string'},{'name':b(0x13e),'type':b(0x140)},{'name':b(0xe1),'type':'decimal'},{'name':b(0x158),'type':b(0xea)}]),expect(__1[b(0xf5)][b(0xe9)](b(0x109)))[b(0x156)]([{'name':'id','type':b(0x12f)},{'name':b(0x131),'type':'string'},{'name':b(0x149),'type':b(0x12f)},{'name':b(0xcf),'type':b(0x12f)},{'name':b(0x158),'type':b(0x140)},{'name':'price','type':b(0xea)},{'name':b(0x133),'type':b(0xea)},{'name':b(0x132),'type':'decimal'},{'name':b(0xf9),'type':b(0xea)},{'name':b(0x100),'type':b(0x14c)}]),expect(__1[b(0xf5)]['model'](b(0x128)))[b(0x156)]([{'name':'id','type':b(0x12f)},{'name':b(0x131),'type':b(0x140)},{'name':'supplierId','type':b(0x12f)},{'name':b(0xcf),'type':b(0x12f)},{'name':'quantity','type':b(0x140)},{'name':b(0x115),'type':b(0xea)},{'name':'inStock','type':b(0xea)},{'name':b(0x132),'type':b(0xea)},{'name':b(0xf9),'type':'decimal'},{'name':b(0x100),'type':b(0x14c)}]),expect(__1[b(0xf5)][b(0xe9)](b(0xde)))[b(0x156)]([{'name':'category','type':b(0x140)},{'name':b(0x131),'type':b(0x140)},{'name':b(0x158),'type':b(0x140)},{'name':b(0x133),'type':'decimal'}]),expect(__1[b(0xf5)][b(0xe9)]('Products.filter(p\x20=>\x20p.discontinued\x20!==\x20false).last(p\x20=>\x20p.id)'))[b(0x156)]([{'name':'id','type':'integer'}]),expect(__1['orm'][b(0xe9)](b(0x10e)))[b(0x156)]([{'name':'id','type':'integer'},{'name':'name','type':b(0x140)},{'name':b(0x149),'type':b(0x12f)},{'name':b(0xcf),'type':'integer'},{'name':b(0x158),'type':b(0x140)},{'name':b(0x115),'type':b(0xea)},{'name':'inStock','type':'decimal'},{'name':b(0x132),'type':b(0xea)},{'name':b(0xf9),'type':b(0xea)},{'name':'discontinued','type':b(0x14c)}]),expect(__1[b(0xf5)][b(0xe9)](b(0x138)))[b(0x156)]([{'name':'category','type':b(0x140)}]),expect(__1[b(0xf5)][b(0xe9)](b(0xcc)))[b(0x156)]([{'name':b(0x158),'type':b(0x140)},{'name':b(0x12b),'type':'string'}]),expect(__1['orm'][b(0xe9)](b(0x12e)))[b(0x156)]([{'name':'id','type':b(0x12f)},{'name':'customerId','type':'string'},{'name':b(0x148),'type':b(0x12f)},{'name':b(0xfe),'type':b(0x10a)},{'name':b(0x12c),'type':b(0x124)},{'name':b(0x13b),'type':b(0x124)},{'name':b(0x143),'type':b(0x12f)},{'name':b(0xe0),'type':b(0xea)},{'name':'name','type':b(0x140)},{'name':b(0xd4),'type':b(0x140)},{'name':b(0xe4),'type':b(0x140)},{'name':b(0x13c),'type':'string'},{'name':b(0xd7),'type':b(0x140)},{'name':'country','type':b(0x140)},{'name':'customer.id','type':'string'},{'name':b(0x14e),'type':'string'},{'name':'customer.contact','type':'string'},{'name':'customer.phone','type':b(0x140)},{'name':b(0x10d),'type':b(0x140)},{'name':b(0x105),'type':b(0x140)},{'name':b(0x108),'type':b(0x140)},{'name':'customer.postalCode','type':b(0x140)},{'name':b(0x11e),'type':b(0x140)},{'name':'details.orderId','type':b(0x12f)},{'name':b(0xec),'type':'integer'},{'name':'details.unitPrice','type':'decimal'},{'name':b(0x15c),'type':'decimal'},{'name':b(0x139),'type':b(0xea)}]),expect(__1[b(0xf5)]['model'](b(0x106)))[b(0x156)]([{'name':'id','type':b(0x12f)},{'name':b(0xeb),'type':b(0x140)},{'name':b(0x148),'type':b(0x12f)},{'name':b(0xfe),'type':b(0x10a)},{'name':'requiredDate','type':'date'},{'name':b(0x13b),'type':b(0x124)},{'name':'shipViaId','type':b(0x12f)},{'name':b(0xe0),'type':'decimal'},{'name':b(0x131),'type':b(0x140)},{'name':b(0xd4),'type':b(0x140)},{'name':b(0xe4),'type':b(0x140)},{'name':b(0x13c),'type':b(0x140)},{'name':b(0xd7),'type':'string'},{'name':'country','type':b(0x140)},{'name':b(0x103),'type':b(0x140)},{'name':'customer.name','type':b(0x140)},{'name':b(0xf2),'type':b(0x140)},{'name':b(0x152),'type':'string'},{'name':'customer.address','type':'string'},{'name':'customer.city','type':b(0x140)},{'name':b(0x108),'type':b(0x140)},{'name':b(0xe3),'type':b(0x140)},{'name':'customer.country','type':b(0x140)},{'name':b(0x141),'type':b(0x12f)},{'name':b(0xca),'type':b(0x140)},{'name':b(0xcb),'type':'string'},{'name':b(0x150),'type':b(0x140)},{'name':b(0x135),'type':b(0x140)},{'name':'employee.birthDate','type':'dateTime'},{'name':'employee.hireDate','type':b(0x10a)},{'name':b(0xdb),'type':'string'},{'name':b(0x157),'type':b(0x12f)},{'name':b(0x104),'type':b(0x140)},{'name':b(0x12a),'type':'string'},{'name':b(0x151),'type':b(0x140)},{'name':'employee.postalCode','type':'string'},{'name':b(0x126),'type':b(0x140)}]),expect(__1['orm'][b(0xe9)](b(0xe7)))[b(0x156)]([{'name':'name','type':'string'},{'name':'customer.id','type':'string'},{'name':'customer.name','type':'string'},{'name':b(0xf2),'type':'string'},{'name':b(0x152),'type':'string'},{'name':'customer.address','type':b(0x140)},{'name':b(0x105),'type':b(0x140)},{'name':b(0x108),'type':b(0x140)},{'name':'customer.postalCode','type':'string'},{'name':b(0x11e),'type':b(0x140)},{'name':'employee.id','type':'integer'},{'name':'employee.lastName','type':b(0x140)},{'name':b(0xcb),'type':b(0x140)},{'name':b(0x150),'type':b(0x140)},{'name':b(0x135),'type':b(0x140)},{'name':b(0x142),'type':b(0x10a)},{'name':b(0xd9),'type':b(0x10a)},{'name':b(0xdb),'type':'string'},{'name':'employee.reportsToId','type':b(0x12f)},{'name':b(0x104),'type':b(0x140)},{'name':b(0x12a),'type':b(0x140)},{'name':b(0x151),'type':b(0x140)},{'name':b(0x136),'type':'string'},{'name':b(0x126),'type':'string'}]),expect(__1[b(0xf5)][b(0xe9)](b(0xd8)))[b(0x156)]([{'name':b(0x131),'type':'string'},{'name':b(0x103),'type':'string'},{'name':b(0x14e),'type':b(0x140)},{'name':b(0xf2),'type':'string'},{'name':'customer.phone','type':b(0x140)},{'name':b(0x10d),'type':b(0x140)},{'name':b(0x105),'type':'string'},{'name':b(0x108),'type':b(0x140)},{'name':'customer.postalCode','type':b(0x140)},{'name':b(0x11e),'type':b(0x140)}]);}),test(q(0xfb),()=>{const l=q;expect(__1['orm'][l(0xfb)](l(0x10f)))[l(0x156)]([]),expect(__1[l(0xf5)][l(0xfb)](l(0x107)))[l(0x156)]([]),expect(__1['orm'][l(0xfb)](l(0x102)))[l(0x156)]([]),expect(__1[l(0xf5)][l(0xfb)]('Products.filter(p\x20=>\x20p.id\x20===\x20id).map(p\x20=>\x20p).sort(p\x20=>\x20p.id)'))[l(0x156)]([{'name':'id','type':l(0x12f)}]),expect(__1[l(0xf5)]['parameters'](l(0x10c)))[l(0x156)]([{'name':'id','type':l(0x12f)}]),expect(__1['orm']['parameters'](l(0x159)))[l(0x156)]([]),expect(__1['orm'][l(0xfb)](l(0xf8)))[l(0x156)]([]),expect(__1['orm']['parameters'](l(0x15b)))[l(0x156)]([]),expect(__1[l(0xf5)][l(0xfb)]('Products.filter(p\x20=>\x20p.discontinued\x20!==\x20false).map(p\x20=>\x20({\x20category:\x20p.category.name,\x20name:\x20p.name,\x20quantity:\x20p.quantity,\x20inStock:\x20p.inStock\x20})).sort(p\x20=>\x20[p.category,\x20desc(p.name)])'))[l(0x156)]([]),expect(__1['orm'][l(0xfb)](l(0xfc)))[l(0x156)]([{'name':'fromDate','type':l(0x124)},{'name':l(0xd5),'type':l(0x124)},{'name':l(0x134),'type':l(0xea)}]),expect(__1['orm'][l(0xfb)]('Orders.details.filter(p\x20=>\x20between(p.order.shippedDate,\x20fromDate,\x20toDate)\x20&&\x20p.unitPrice\x20>\x20minValue).map(p\x20=>\x20({\x20category:\x20p.product.category.name,\x20product:\x20p.product.name,\x20unitPrice:\x20p.unitPrice,\x20quantity:\x20p.quantity\x20})).sort(p\x20=>\x20[p.category,\x20p.product,\x20p.unitPrice,\x20p.quantity])\x20'))[l(0x156)]([{'name':l(0xe2),'type':l(0x124)},{'name':l(0xd5),'type':l(0x124)},{'name':l(0x134),'type':l(0xea)}]),expect(__1[l(0xf5)][l(0xfb)](l(0x109)))['toStrictEqual']([]),expect(__1['orm']['parameters'](l(0x128)))[l(0x156)]([]),expect(__1[l(0xf5)][l(0xfb)](l(0xde)))[l(0x156)]([]),expect(__1[l(0xf5)][l(0xfb)](l(0xc9)))['toStrictEqual']([]),expect(__1[l(0xf5)][l(0xfb)](l(0x10e)))[l(0x156)]([]),expect(__1[l(0xf5)]['parameters'](l(0x138)))[l(0x156)]([]),expect(__1['orm'][l(0xfb)](l(0xcc)))['toStrictEqual']([]),expect(__1[l(0xf5)]['parameters']('Orders.filter(p\x20=>\x20p.id\x20===\x20id).map(p\x20=>\x20[p,p.customer,p.details])'))[l(0x156)]([{'name':'id','type':l(0x12f)}]),expect(__1[l(0xf5)][l(0xfb)](l(0x106)))['toStrictEqual']([{'name':'id','type':l(0x12f)}]),expect(__1[l(0xf5)]['parameters'](l(0xe7)))['toStrictEqual']([{'name':'id','type':l(0x12f)}]),expect(__1['orm'][l(0xfb)]('Orders.filter(p\x20=>\x20p.id\x20===\x20id).map(p\x20=>\x20[p.name,p.customer])'))[l(0x156)]([{'name':'id','type':l(0x12f)}]);}),test(q(0x127),()=>{const u=q;expect(__1[u(0xf5)][u(0x127)]('Products.sort(p\x20=>\x20p.name)'))['toStrictEqual']({'entity':u(0x154),'constraints':[]}),expect(__1[u(0xf5)][u(0x127)](u(0x107)))[u(0x156)]({'entity':u(0x154),'constraints':[]}),expect(__1[u(0xf5)]['constraints'](u(0x102)))[u(0x156)]({'entity':'Products','constraints':[]}),expect(__1[u(0xf5)][u(0x127)](u(0xcd)))[u(0x156)]({'entity':u(0x154),'constraints':[]}),expect(__1[u(0xf5)]['constraints'](u(0x10c)))[u(0x156)]({'entity':u(0x154),'constraints':[]}),expect(__1[u(0xf5)][u(0x127)](u(0x159)))[u(0x156)]({'entity':'Products','constraints':[]}),expect(__1['orm'][u(0x127)](u(0xf8)))['toStrictEqual']({'entity':u(0x154),'constraints':[]}),expect(__1[u(0xf5)][u(0x127)](u(0x15b)))[u(0x156)]({'entity':'Products','constraints':[]}),expect(__1['orm'][u(0x127)](u(0xf0)))[u(0x156)]({'entity':'Products','constraints':[]}),expect(__1[u(0xf5)][u(0x127)]('Orders.details.filter(p\x20=>\x20between(p.order.shippedDate,\x20fromDate,\x20toDate)\x20&&\x20p.unitPrice\x20>\x20minValue).map(p\x20=>\x20({\x20category:\x20p.product.category.name,\x20product:\x20p.product.name,\x20unitPrice:\x20p.unitPrice,\x20quantity:\x20p.quantity\x20}))'))[u(0x156)]({'entity':u(0xf1),'constraints':[]}),expect(__1[u(0xf5)][u(0x127)]('Orders.details.filter(p\x20=>\x20between(p.order.shippedDate,\x20fromDate,\x20toDate)\x20&&\x20p.unitPrice\x20>\x20minValue).map(p\x20=>\x20({\x20category:\x20p.product.category.name,\x20product:\x20p.product.name,\x20unitPrice:\x20p.unitPrice,\x20quantity:\x20p.quantity\x20})).sort(p\x20=>\x20[p.category,\x20p.product,\x20p.unitPrice,\x20p.quantity])\x20'))['toStrictEqual']({'entity':u(0xf1),'constraints':[]}),expect(__1[u(0xf5)][u(0x127)](u(0x109)))[u(0x156)]({'entity':u(0x154),'constraints':[]}),expect(__1[u(0xf5)][u(0x127)](u(0x128)))[u(0x156)]({'entity':u(0x154),'constraints':[]}),expect(__1['orm'][u(0x127)](u(0xde)))[u(0x156)]({'entity':u(0x154),'constraints':[]}),expect(__1[u(0xf5)]['constraints'](u(0xc9)))[u(0x156)]({'entity':'Products','constraints':[]}),expect(__1[u(0xf5)][u(0x127)](u(0x10e)))['toStrictEqual']({'entity':'Products','constraints':[]}),expect(__1['orm'][u(0x127)](u(0x138)))[u(0x156)]({'entity':u(0x154),'constraints':[]}),expect(__1[u(0xf5)]['constraints'](u(0xcc)))[u(0x156)]({'entity':'Products','constraints':[]}),expect(__1[u(0xf5)]['constraints'](u(0x12e)))[u(0x156)]({'entity':'Orders','constraints':[]}),expect(__1[u(0xf5)][u(0x127)]('Orders.filter(p\x20=>\x20p.id\x20===\x20id).map(p\x20=>\x20[p,p.customer,p.employee])'))['toStrictEqual']({'entity':u(0x11c),'constraints':[]}),expect(__1[u(0xf5)][u(0x127)](u(0xe7)))[u(0x156)]({'entity':u(0x11c),'constraints':[]}),expect(__1[u(0xf5)][u(0x127)]('Orders.filter(p\x20=>\x20p.id\x20===\x20id).map(p\x20=>\x20[p.name,p.customer])'))['toStrictEqual']({'entity':u(0x11c),'constraints':[]});}),test(q(0xce),()=>{const e=q;expect(__1[e(0xf5)][e(0xce)](e(0x10f)))['toEqual']({'classtype':e(0xe6),'pos':{'ln':0x0,'col':0xe},'name':e(0xed),'children':[],'type':'any','entity':e(0x154),'columns':[{'name':'id','type':e(0x12f)},{'name':e(0x131),'type':e(0x140)},{'name':'supplierId','type':e(0x12f)},{'name':'categoryId','type':e(0x12f)},{'name':e(0x158),'type':e(0x140)},{'name':e(0x115),'type':e(0xea)},{'name':e(0x133),'type':'decimal'},{'name':'onOrder','type':e(0xea)},{'name':'reorderLevel','type':e(0xea)},{'name':e(0x100),'type':e(0x14c)}],'parameters':[],'constraints':[],'values':[],'defaults':[],'clause':e(0xed),'alias':'p'}),expect(__1[e(0xf5)][e(0xce)](e(0x107)))[e(0x130)]({'classtype':e(0xe6),'pos':{'ln':0x0,'col':0x2a},'name':'select','children':[],'type':e(0x113),'entity':'Products','columns':[{'name':'id','type':'integer'},{'name':'name','type':'string'},{'name':e(0x149),'type':e(0x12f)},{'name':e(0xcf),'type':e(0x12f)},{'name':e(0x158),'type':e(0x140)},{'name':e(0x115),'type':e(0xea)},{'name':'inStock','type':'decimal'},{'name':e(0x132),'type':e(0xea)},{'name':'reorderLevel','type':e(0xea)},{'name':e(0x100),'type':e(0x14c)}],'parameters':[],'constraints':[],'values':[],'defaults':[],'clause':e(0xed),'alias':'p'}),expect(__1[e(0xf5)][e(0xce)]('Products.sort(p\x20=>\x20p.id).page(1,\x201)'))[e(0x130)]({'classtype':e(0xe6),'pos':{'ln':0x0,'col':0x1e},'name':e(0xed),'children':[],'type':e(0x113),'entity':e(0x154),'columns':[{'name':'id','type':e(0x12f)},{'name':e(0x131),'type':e(0x140)},{'name':e(0x149),'type':e(0x12f)},{'name':'categoryId','type':e(0x12f)},{'name':e(0x158),'type':'string'},{'name':e(0x115),'type':e(0xea)},{'name':'inStock','type':e(0xea)},{'name':e(0x132),'type':e(0xea)},{'name':'reorderLevel','type':'decimal'},{'name':'discontinued','type':e(0x14c)}],'parameters':[],'constraints':[],'values':[],'defaults':[],'clause':e(0xed),'alias':'p'}),expect(__1[e(0xf5)][e(0xce)](e(0xcd)))[e(0x130)]({'classtype':e(0xe6),'pos':{'ln':0x0,'col':0x33},'name':e(0xed),'children':[],'type':'any','entity':'Products','columns':[{'name':'id','type':e(0x12f)},{'name':e(0x131),'type':'string'},{'name':e(0x149),'type':e(0x12f)},{'name':e(0xcf),'type':e(0x12f)},{'name':'quantity','type':'string'},{'name':e(0x115),'type':'decimal'},{'name':'inStock','type':e(0xea)},{'name':'onOrder','type':e(0xea)},{'name':e(0xf9),'type':e(0xea)},{'name':e(0x100),'type':'boolean'}],'parameters':[{'name':'id','type':e(0x12f)}],'constraints':[],'values':[],'defaults':[],'clause':e(0xed),'alias':'p'}),expect(__1['orm'][e(0xce)](e(0x10c)))['toEqual']({'classtype':e(0xe6),'pos':{'ln':0x0,'col':0x27},'name':e(0xed),'children':[],'type':e(0x113),'entity':e(0x154),'columns':[{'name':'id','type':e(0x12f)},{'name':e(0x131),'type':'string'},{'name':e(0x149),'type':'integer'},{'name':e(0xcf),'type':e(0x12f)},{'name':e(0x158),'type':e(0x140)},{'name':'price','type':e(0xea)},{'name':e(0x133),'type':'decimal'},{'name':e(0x132),'type':'decimal'},{'name':e(0xf9),'type':'decimal'},{'name':'discontinued','type':e(0x14c)}],'parameters':[{'name':'id','type':e(0x12f)}],'constraints':[],'values':[],'defaults':[],'clause':'select','alias':'p'}),expect(__1[e(0xf5)][e(0xce)](e(0x159)))[e(0x130)]({'classtype':e(0xe6),'pos':{'ln':0x0,'col':0x38},'name':e(0xed),'children':[],'type':e(0x113),'entity':'Products','columns':[{'name':e(0x12b),'type':e(0x140)}],'parameters':[],'constraints':[],'values':[],'defaults':[],'clause':e(0xed),'alias':'p'}),expect(__1[e(0xf5)][e(0xce)]('Products.map(p\x20=>\x20({\x20name:\x20p.name,\x20category:\x20p.category.name\x20})).sort(p\x20=>\x20[p.category,\x20p.name])'))[e(0x130)]({'classtype':'Sentence','pos':{'ln':0x0,'col':0x46},'name':e(0xed),'children':[],'type':e(0x113),'entity':e(0x154),'columns':[{'name':e(0x131),'type':'string'},{'name':e(0x12b),'type':e(0x140)}],'parameters':[],'constraints':[],'values':[],'defaults':[],'clause':'select','alias':'p'}),expect(__1[e(0xf5)][e(0xce)]('Products.map(p\x20=>\x20({\x20category:\x20p.category.name,\x20name:\x20p.name,\x20quantity:\x20p.quantity,\x20inStock:\x20p.inStock\x20})).sort(p\x20=>\x20p.name)'))['toEqual']({'classtype':e(0xe6),'pos':{'ln':0x0,'col':0x70},'name':e(0xed),'children':[],'type':e(0x113),'entity':e(0x154),'columns':[{'name':e(0x12b),'type':e(0x140)},{'name':e(0x131),'type':e(0x140)},{'name':e(0x158),'type':e(0x140)},{'name':e(0x133),'type':e(0xea)}],'parameters':[],'constraints':[],'values':[],'defaults':[],'clause':e(0xed),'alias':'p'}),expect(__1[e(0xf5)][e(0xce)](e(0xf0)))['toEqual']({'classtype':e(0xe6),'pos':{'ln':0x0,'col':0x96},'name':e(0xed),'children':[],'type':e(0x113),'entity':e(0x154),'columns':[{'name':e(0x12b),'type':'string'},{'name':'name','type':'string'},{'name':'quantity','type':'string'},{'name':e(0x133),'type':e(0xea)}],'parameters':[],'constraints':[],'values':[],'defaults':[],'clause':e(0xed),'alias':'p'}),expect(__1[e(0xf5)][e(0xce)](e(0xfc)))[e(0x130)]({'classtype':e(0xe6),'pos':{'ln':0x0,'col':0x69},'name':e(0xed),'children':[],'type':e(0x113),'entity':e(0xf1),'columns':[{'name':e(0x12b),'type':e(0x140)},{'name':e(0x13e),'type':e(0x140)},{'name':e(0xe1),'type':e(0xea)},{'name':'quantity','type':'decimal'}],'parameters':[{'name':'fromDate','type':e(0x124)},{'name':'toDate','type':e(0x124)},{'name':'minValue','type':e(0xea)}],'constraints':[],'values':[],'defaults':[],'clause':e(0xed),'alias':'o'}),expect(__1['orm'][e(0xce)](e(0x118)))[e(0x130)]({'classtype':e(0xe6),'pos':{'ln':0x0,'col':0xe3},'name':'select','children':[],'type':e(0x113),'entity':e(0xf1),'columns':[{'name':'category','type':'string'},{'name':'product','type':e(0x140)},{'name':e(0xe1),'type':e(0xea)},{'name':'quantity','type':e(0xea)}],'parameters':[{'name':'fromDate','type':e(0x124)},{'name':e(0xd5),'type':e(0x124)},{'name':'minValue','type':'decimal'}],'constraints':[],'values':[],'defaults':[],'clause':e(0xed),'alias':'o'}),expect(__1[e(0xf5)][e(0xce)](e(0x109)))['toEqual']({'classtype':e(0xe6),'pos':{'ln':0x0,'col':0xf},'name':e(0xed),'children':[],'type':e(0x113),'entity':e(0x154),'columns':[{'name':'id','type':'integer'},{'name':e(0x131),'type':'string'},{'name':e(0x149),'type':e(0x12f)},{'name':e(0xcf),'type':e(0x12f)},{'name':e(0x158),'type':e(0x140)},{'name':e(0x115),'type':'decimal'},{'name':e(0x133),'type':e(0xea)},{'name':e(0x132),'type':e(0xea)},{'name':e(0xf9),'type':e(0xea)},{'name':e(0x100),'type':e(0x14c)}],'parameters':[],'constraints':[],'values':[],'defaults':[],'clause':e(0xed),'alias':'p'}),expect(__1[e(0xf5)][e(0xce)](e(0x128)))[e(0x130)]({'classtype':e(0xe6),'pos':{'ln':0x0,'col':0xe},'name':'select','children':[],'type':e(0x113),'entity':'Products','columns':[{'name':'id','type':e(0x12f)},{'name':'name','type':e(0x140)},{'name':e(0x149),'type':e(0x12f)},{'name':e(0xcf),'type':'integer'},{'name':e(0x158),'type':'string'},{'name':'price','type':e(0xea)},{'name':'inStock','type':e(0xea)},{'name':e(0x132),'type':e(0xea)},{'name':e(0xf9),'type':e(0xea)},{'name':'discontinued','type':e(0x14c)}],'parameters':[],'constraints':[],'values':[],'defaults':[],'clause':e(0xed),'alias':'p'}),expect(__1['orm'][e(0xce)](e(0xde)))[e(0x130)]({'classtype':'Sentence','pos':{'ln':0x0,'col':0xf},'name':e(0xed),'children':[],'type':e(0x113),'entity':e(0x154),'columns':[{'name':e(0x12b),'type':'string'},{'name':e(0x131),'type':e(0x140)},{'name':e(0x158),'type':e(0x140)},{'name':e(0x133),'type':e(0xea)}],'parameters':[],'constraints':[],'values':[],'defaults':[],'clause':e(0xed),'alias':'p'}),expect(__1[e(0xf5)]['metadata'](e(0xc9)))['toEqual']({'classtype':e(0xe6),'pos':{'ln':0x0,'col':0x34},'name':e(0xed),'children':[],'type':e(0x113),'entity':e(0x154),'columns':[{'name':'id','type':e(0x12f)}],'parameters':[],'constraints':[],'values':[],'defaults':[],'clause':e(0xed),'alias':'p'}),expect(__1[e(0xf5)][e(0xce)](e(0x10e)))[e(0x130)]({'classtype':e(0xe6),'pos':{'ln':0x0,'col':0x1f},'name':e(0xed),'children':[],'type':e(0x113),'entity':'Products','columns':[{'name':'id','type':e(0x12f)},{'name':e(0x131),'type':e(0x140)},{'name':e(0x149),'type':e(0x12f)},{'name':e(0xcf),'type':e(0x12f)},{'name':'quantity','type':'string'},{'name':e(0x115),'type':'decimal'},{'name':e(0x133),'type':e(0xea)},{'name':e(0x132),'type':e(0xea)},{'name':e(0xf9),'type':e(0xea)},{'name':e(0x100),'type':e(0x14c)}],'parameters':[],'constraints':[],'values':[],'defaults':[],'clause':'select','alias':'p'}),expect(__1[e(0xf5)][e(0xce)]('Products.distinct(p\x20=>\x20({\x20category:\x20p.category.name\x20})).sort(p\x20=>\x20p.category)'))[e(0x130)]({'classtype':e(0xe6),'pos':{'ln':0x0,'col':0x3d},'name':'select','children':[],'type':e(0x113),'entity':e(0x154),'columns':[{'name':e(0x12b),'type':e(0x140)}],'parameters':[],'constraints':[],'values':[],'defaults':[],'clause':e(0xed),'alias':'p'}),expect(__1[e(0xf5)][e(0xce)](e(0xcc)))[e(0x130)]({'classtype':e(0xe6),'pos':{'ln':0x0,'col':0x53},'name':e(0xed),'children':[],'type':e(0x113),'entity':'Products','columns':[{'name':'quantity','type':e(0x140)},{'name':'category','type':e(0x140)}],'parameters':[],'constraints':[],'values':[],'defaults':[],'clause':e(0xed),'alias':'p'}),expect(__1['orm'][e(0xce)](e(0x12e)))[e(0x130)]({'classtype':e(0xe6),'pos':{'ln':0x0,'col':0x24},'name':e(0xed),'children':[],'type':e(0x113),'entity':'Orders','columns':[{'name':'id','type':e(0x12f)},{'name':e(0xeb),'type':e(0x140)},{'name':'employeeId','type':'integer'},{'name':e(0xfe),'type':e(0x10a)},{'name':e(0x12c),'type':e(0x124)},{'name':e(0x13b),'type':'date'},{'name':'shipViaId','type':e(0x12f)},{'name':'freight','type':e(0xea)},{'name':e(0x131),'type':e(0x140)},{'name':e(0xd4),'type':e(0x140)},{'name':'city','type':e(0x140)},{'name':e(0x13c),'type':e(0x140)},{'name':e(0xd7),'type':e(0x140)},{'name':e(0x13f),'type':e(0x140)},{'name':e(0x103),'type':e(0x140)},{'name':'customer.name','type':e(0x140)},{'name':e(0xf2),'type':e(0x140)},{'name':e(0x152),'type':e(0x140)},{'name':'customer.address','type':e(0x140)},{'name':e(0x105),'type':e(0x140)},{'name':e(0x108),'type':e(0x140)},{'name':e(0xe3),'type':e(0x140)},{'name':e(0x11e),'type':e(0x140)},{'name':'details.orderId','type':e(0x12f)},{'name':e(0xec),'type':e(0x12f)},{'name':e(0x12d),'type':'decimal'},{'name':e(0x15c),'type':e(0xea)},{'name':'details.discount','type':'decimal'}],'parameters':[{'name':'id','type':e(0x12f)}],'constraints':[],'values':[],'defaults':[],'clause':e(0xed),'alias':'o'}),expect(__1[e(0xf5)][e(0xce)](e(0x106)))['toEqual']({'classtype':e(0xe6),'pos':{'ln':0x0,'col':0x24},'name':e(0xed),'children':[],'type':'any','entity':e(0x11c),'columns':[{'name':'id','type':'integer'},{'name':e(0xeb),'type':e(0x140)},{'name':'employeeId','type':'integer'},{'name':e(0xfe),'type':'dateTime'},{'name':e(0x12c),'type':'date'},{'name':'shippedDate','type':e(0x124)},{'name':e(0x143),'type':'integer'},{'name':e(0xe0),'type':e(0xea)},{'name':e(0x131),'type':'string'},{'name':e(0xd4),'type':e(0x140)},{'name':'city','type':e(0x140)},{'name':e(0x13c),'type':e(0x140)},{'name':e(0xd7),'type':'string'},{'name':'country','type':e(0x140)},{'name':e(0x103),'type':e(0x140)},{'name':e(0x14e),'type':e(0x140)},{'name':e(0xf2),'type':e(0x140)},{'name':e(0x152),'type':e(0x140)},{'name':e(0x10d),'type':'string'},{'name':e(0x105),'type':e(0x140)},{'name':e(0x108),'type':e(0x140)},{'name':e(0xe3),'type':e(0x140)},{'name':e(0x11e),'type':e(0x140)},{'name':e(0x141),'type':'integer'},{'name':e(0xca),'type':e(0x140)},{'name':e(0xcb),'type':e(0x140)},{'name':e(0x150),'type':'string'},{'name':e(0x135),'type':'string'},{'name':'employee.birthDate','type':e(0x10a)},{'name':e(0xd9),'type':e(0x10a)},{'name':e(0xdb),'type':e(0x140)},{'name':e(0x157),'type':e(0x12f)},{'name':e(0x104),'type':e(0x140)},{'name':e(0x12a),'type':'string'},{'name':e(0x151),'type':e(0x140)},{'name':e(0x136),'type':e(0x140)},{'name':e(0x126),'type':e(0x140)}],'parameters':[{'name':'id','type':e(0x12f)}],'constraints':[],'values':[],'defaults':[],'clause':'select','alias':'o'}),expect(__1[e(0xf5)]['metadata'](e(0xe7)))[e(0x130)]({'classtype':e(0xe6),'pos':{'ln':0x0,'col':0x24},'name':e(0xed),'children':[],'type':e(0x113),'entity':e(0x11c),'columns':[{'name':e(0x131),'type':e(0x140)},{'name':e(0x103),'type':e(0x140)},{'name':'customer.name','type':e(0x140)},{'name':'customer.contact','type':e(0x140)},{'name':e(0x152),'type':e(0x140)},{'name':'customer.address','type':e(0x140)},{'name':'customer.city','type':e(0x140)},{'name':e(0x108),'type':'string'},{'name':e(0xe3),'type':'string'},{'name':e(0x11e),'type':'string'},{'name':e(0x141),'type':'integer'},{'name':e(0xca),'type':e(0x140)},{'name':e(0xcb),'type':'string'},{'name':e(0x150),'type':e(0x140)},{'name':e(0x135),'type':e(0x140)},{'name':e(0x142),'type':e(0x10a)},{'name':e(0xd9),'type':'dateTime'},{'name':e(0xdb),'type':'string'},{'name':'employee.reportsToId','type':e(0x12f)},{'name':e(0x104),'type':e(0x140)},{'name':'employee.city','type':e(0x140)},{'name':e(0x151),'type':'string'},{'name':e(0x136),'type':e(0x140)},{'name':e(0x126),'type':e(0x140)}],'parameters':[{'name':'id','type':e(0x12f)}],'constraints':[],'values':[],'defaults':[],'clause':e(0xed),'alias':'o'}),expect(__1[e(0xf5)][e(0xce)](e(0xd8)))[e(0x130)]({'classtype':e(0xe6),'pos':{'ln':0x0,'col':0x24},'name':e(0xed),'children':[],'type':e(0x113),'entity':e(0x11c),'columns':[{'name':'name','type':e(0x140)},{'name':'customer.id','type':e(0x140)},{'name':e(0x14e),'type':'string'},{'name':e(0xf2),'type':e(0x140)},{'name':e(0x152),'type':e(0x140)},{'name':'customer.address','type':'string'},{'name':e(0x105),'type':e(0x140)},{'name':e(0x108),'type':'string'},{'name':'customer.postalCode','type':'string'},{'name':e(0x11e),'type':'string'}],'parameters':[{'name':'id','type':e(0x12f)}],'constraints':[],'values':[],'defaults':[],'clause':e(0xed),'alias':'o'});}),test('getInfo',()=>{const n=q;expect(__1[n(0xf5)][n(0x117)](n(0x10f),{'stage':n(0x13d)}))[n(0x156)]({'entity':'Products','dialect':n(0x13d),'source':n(0x13d),'sentence':n(0x120)}),expect(__1[n(0xf5)][n(0x117)](n(0x107),{'stage':n(0x13d)}))[n(0x156)]({'entity':'Products','dialect':n(0x13d),'source':n(0x13d),'sentence':'SELECT\x20p.ProductID\x20AS\x20id,\x20p.ProductName\x20AS\x20name,\x20p.SupplierID\x20AS\x20supplierId,\x20p.CategoryID\x20AS\x20categoryId,\x20p.QuantityPerUnit\x20AS\x20quantity,\x20p.UnitPrice\x20AS\x20price,\x20p.UnitsInStock\x20AS\x20inStock,\x20p.UnitsOnOrder\x20AS\x20onOrder,\x20p.ReorderLevel\x20AS\x20reorderLevel,\x20p.Discontinued\x20AS\x20discontinued\x20FROM\x20Products\x20p\x20\x20ORDER\x20BY\x20p.ProductID\x20asc\x20\x20LIMIT\x200,1\x20'}),expect(__1[n(0xf5)][n(0x117)](n(0x102),{'stage':n(0x13d)}))[n(0x156)]({'entity':n(0x154),'dialect':n(0x13d),'source':n(0x13d),'sentence':n(0x11b)}),expect(__1[n(0xf5)][n(0x117)](n(0xcd),{'stage':n(0x13d)}))[n(0x156)]({'entity':n(0x154),'dialect':n(0x13d),'source':n(0x13d),'sentence':n(0xf6)}),expect(__1['orm']['plan']('Products.filter(p\x20=>\x20p.id\x20===\x20id).sort(p\x20=>\x20p.id)\x20',{'stage':n(0x13d)}))[n(0x156)]({'entity':n(0x154),'dialect':n(0x13d),'source':n(0x13d),'sentence':n(0xf6)}),expect(__1[n(0xf5)]['plan'](n(0x159),{'stage':n(0x13d)}))['toStrictEqual']({'entity':'Products','dialect':n(0x13d),'source':n(0x13d),'sentence':n(0xdf)}),expect(__1[n(0xf5)]['plan'](n(0xf8),{'stage':n(0x13d)}))['toStrictEqual']({'entity':n(0x154),'dialect':n(0x13d),'source':n(0x13d),'sentence':n(0x125)}),expect(__1[n(0xf5)][n(0x117)](n(0x15b),{'stage':n(0x13d)}))['toStrictEqual']({'entity':n(0x154),'dialect':n(0x13d),'source':'MySQL','sentence':'SELECT\x20c.CategoryName\x20AS\x20category,\x20p.ProductName\x20AS\x20name,\x20p.QuantityPerUnit\x20AS\x20quantity,\x20p.UnitsInStock\x20AS\x20inStock\x20FROM\x20Products\x20p\x20INNER\x20JOIN\x20Categories\x20c\x20ON\x20c.CategoryID\x20=\x20p.CategoryID\x20ORDER\x20BY\x20p.ProductName\x20asc\x20'}),expect(__1[n(0xf5)][n(0x117)]('Products.filter(p\x20=>\x20p.discontinued\x20!==\x20false).map(p\x20=>\x20({\x20category:\x20p.category.name,\x20name:\x20p.name,\x20quantity:\x20p.quantity,\x20inStock:\x20p.inStock\x20})).sort(p\x20=>\x20[p.category,\x20desc(p.name)])',{'stage':'MySQL'}))[n(0x156)]({'entity':n(0x154),'dialect':n(0x13d),'source':n(0x13d),'sentence':'SELECT\x20c.CategoryName\x20AS\x20category,\x20p.ProductName\x20AS\x20name,\x20p.QuantityPerUnit\x20AS\x20quantity,\x20p.UnitsInStock\x20AS\x20inStock\x20FROM\x20Products\x20p\x20INNER\x20JOIN\x20Categories\x20c\x20ON\x20c.CategoryID\x20=\x20p.CategoryID\x20WHERE\x20p.Discontinued\x20<>\x20FALSE\x20ORDER\x20BY\x20category\x20asc,\x20p.ProductName\x20desc\x20'}),expect(__1[n(0xf5)][n(0x117)](n(0xfc),{'stage':n(0x13d)}))[n(0x156)]({'entity':'Orders.details','dialect':n(0x13d),'source':n(0x13d),'sentence':n(0x145)}),expect(__1['orm'][n(0x117)](n(0x118),{'stage':n(0x13d)}))[n(0x156)]({'entity':n(0xf1),'dialect':'MySQL','source':'MySQL','sentence':n(0xf3)}),expect(__1['orm'][n(0x117)](n(0x109),{'stage':n(0x13d)}))[n(0x156)]({'entity':n(0x154),'dialect':n(0x13d),'source':n(0x13d),'sentence':n(0x11b)}),expect(__1[n(0xf5)]['plan'](n(0x128),{'stage':n(0x13d)}))[n(0x156)]({'entity':'Products','dialect':n(0x13d),'source':'MySQL','sentence':n(0x15d)}),expect(__1['orm']['plan'](n(0xde),{'stage':n(0x13d)}))[n(0x156)]({'entity':'Products','dialect':'MySQL','source':'MySQL','sentence':n(0xe5)}),expect(__1[n(0xf5)][n(0x117)](n(0xc9),{'stage':'MySQL'}))[n(0x156)]({'entity':n(0x154),'dialect':n(0x13d),'source':n(0x13d),'sentence':'SELECT\x20p.ProductID\x20AS\x20id\x20FROM\x20Products\x20p\x20\x20WHERE\x20p.Discontinued\x20<>\x20FALSE\x20ORDER\x20BY\x20p.ProductID\x20desc\x20\x20LIMIT\x200,1\x20'}),expect(__1[n(0xf5)][n(0x117)](n(0x10e),{'stage':n(0x13d)}))[n(0x156)]({'entity':'Products','dialect':n(0x13d),'source':'MySQL','sentence':n(0x11d)}),expect(__1[n(0xf5)][n(0x117)](n(0x138),{'stage':n(0x13d)}))['toStrictEqual']({'entity':n(0x154),'dialect':n(0x13d),'source':n(0x13d),'sentence':n(0xdd)}),expect(__1[n(0xf5)][n(0x117)](n(0xcc),{'stage':n(0x13d)}))[n(0x156)]({'entity':n(0x154),'dialect':n(0x13d),'source':n(0x13d),'sentence':'SELECT\x20DISTINCT\x20p.QuantityPerUnit\x20AS\x20quantity,\x20c.CategoryName\x20AS\x20category\x20FROM\x20Products\x20p\x20INNER\x20JOIN\x20Categories\x20c\