Socket
Socket
Sign inDemoInstall

zol

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zol - npm Package Compare versions

Comparing version 0.2.4 to 0.2.5

dist/docs/classes/columnparseerror.html

4

dist/docs/assets/js/search.js

@@ -1,3 +0,3 @@

var typedoc = typedoc || {};
var typedoc = typedoc || {};
typedoc.search = typedoc.search || {};
typedoc.search.data = {"kinds":{"2":"Module","4":"Enumeration","16":"Enumeration member","64":"Function","128":"Class","256":"Interface","1024":"Property","2048":"Method","65536":"Type literal","4194304":"Type alias"},"rows":[{"id":0,"kind":128,"name":"ColName","url":"classes/colname.html","classes":"tsd-kind-class"},{"id":1,"kind":2048,"name":"wrap","url":"classes/colname.html#wrap","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"ColName"},{"id":2,"kind":2048,"name":"unwrap","url":"classes/colname.html#unwrap","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"ColName"},{"id":3,"kind":1024,"name":"dummy","url":"classes/colname.html#dummy","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-protected","parent":"ColName"},{"id":4,"kind":128,"name":"TableName","url":"classes/tablename.html","classes":"tsd-kind-class"},{"id":5,"kind":2048,"name":"wrap","url":"classes/tablename.html#wrap","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"TableName"},{"id":6,"kind":2048,"name":"unwrap","url":"classes/tablename.html#unwrap","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"TableName"},{"id":7,"kind":1024,"name":"dummy","url":"classes/tablename.html#dummy","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-protected","parent":"TableName"},{"id":8,"kind":4,"name":"Order","url":"enums/order.html","classes":"tsd-kind-enum"},{"id":9,"kind":16,"name":"Asc","url":"enums/order.html#asc","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"Order"},{"id":10,"kind":16,"name":"Desc","url":"enums/order.html#desc","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"Order"},{"id":11,"kind":16,"name":"AscNullsLast","url":"enums/order.html#ascnullslast","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"Order"},{"id":12,"kind":16,"name":"DescNullsFirst","url":"enums/order.html#descnullsfirst","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"Order"},{"id":13,"kind":16,"name":"AscNullsFirst","url":"enums/order.html#ascnullsfirst","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"Order"},{"id":14,"kind":16,"name":"DescNullsLast","url":"enums/order.html#descnullslast","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"Order"},{"id":15,"kind":128,"name":"Write","url":"classes/write.html","classes":"tsd-kind-class"},{"id":16,"kind":1024,"name":"dummy","url":"classes/write.html#dummy","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-protected","parent":"Write"},{"id":17,"kind":128,"name":"DefaultValue","url":"classes/defaultvalue.html","classes":"tsd-kind-class"},{"id":18,"kind":1024,"name":"dummy","url":"classes/defaultvalue.html#dummy","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-protected","parent":"DefaultValue"},{"id":19,"kind":128,"name":"Aggr","url":"classes/aggr.html","classes":"tsd-kind-class tsd-has-type-parameter"},{"id":20,"kind":1024,"name":"dummy","url":"classes/aggr.html#dummy","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-protected","parent":"Aggr"},{"id":21,"kind":128,"name":"Inner","url":"classes/inner.html","classes":"tsd-kind-class tsd-has-type-parameter"},{"id":22,"kind":1024,"name":"dummy","url":"classes/inner.html#dummy","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-protected","parent":"Inner"},{"id":23,"kind":128,"name":"Table","url":"classes/table.html","classes":"tsd-kind-class tsd-has-type-parameter"},{"id":24,"kind":1024,"name":"tableName","url":"classes/table.html#tablename","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Table"},{"id":25,"kind":1024,"name":"tableCols","url":"classes/table.html#tablecols","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Table"},{"id":26,"kind":1024,"name":"dummy","url":"classes/table.html#dummy","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-protected","parent":"Table"},{"id":27,"kind":256,"name":"ColInfo","url":"interfaces/colinfo.html","classes":"tsd-kind-interface"},{"id":28,"kind":1024,"name":"name","url":"interfaces/colinfo.html#name","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ColInfo"},{"id":29,"kind":1024,"name":"propName","url":"interfaces/colinfo.html#propname","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ColInfo"},{"id":30,"kind":1024,"name":"parser","url":"interfaces/colinfo.html#parser","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ColInfo"},{"id":31,"kind":65536,"name":"__type","url":"interfaces/colinfo.html#parser.__type","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-is-not-exported","parent":"ColInfo.parser"},{"id":32,"kind":128,"name":"Col","url":"classes/col.html","classes":"tsd-kind-class tsd-has-type-parameter"},{"id":33,"kind":1024,"name":"dummy","url":"classes/col.html#dummy","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-protected","parent":"Col"},{"id":34,"kind":128,"name":"ConflictTarget","url":"classes/conflicttarget.html","classes":"tsd-kind-class tsd-has-type-parameter"},{"id":35,"kind":2048,"name":"tableColumns","url":"classes/conflicttarget.html#tablecolumns","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-static","parent":"ConflictTarget"},{"id":36,"kind":1024,"name":"dummy","url":"classes/conflicttarget.html#dummy","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-protected","parent":"ConflictTarget"},{"id":37,"kind":128,"name":"Arbitrary","url":"classes/arbitrary.html","classes":"tsd-kind-class"},{"id":38,"kind":1024,"name":"dummy","url":"classes/arbitrary.html#dummy","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-protected","parent":"Arbitrary"},{"id":39,"kind":128,"name":"Q","url":"classes/q.html","classes":"tsd-kind-class tsd-has-type-parameter"},{"id":40,"kind":1024,"name":"dummy","url":"classes/q.html#dummy","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-protected","parent":"Q"},{"id":41,"kind":4194304,"name":"MakeTable","url":"index.html#maketable","classes":"tsd-kind-type-alias"},{"id":42,"kind":4194304,"name":"MakeCols","url":"index.html#makecols","classes":"tsd-kind-type-alias"},{"id":43,"kind":65536,"name":"__type","url":"index.html#makecols.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias tsd-is-not-exported","parent":"MakeCols"},{"id":44,"kind":64,"name":"defaultValue","url":"index.html#defaultvalue","classes":"tsd-kind-function"},{"id":45,"kind":64,"name":"count","url":"index.html#count","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":46,"kind":64,"name":"avg","url":"index.html#avg","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":47,"kind":64,"name":"sum","url":"index.html#sum","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":48,"kind":64,"name":"max","url":"index.html#max","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":49,"kind":64,"name":"min","url":"index.html#min","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":50,"kind":64,"name":"inList","url":"index.html#inlist","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":51,"kind":4194304,"name":"AggrCols","url":"index.html#aggrcols","classes":"tsd-kind-type-alias"},{"id":52,"kind":65536,"name":"__type","url":"index.html#aggrcols.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias tsd-is-not-exported","parent":"AggrCols"},{"id":53,"kind":4194304,"name":"LeftCols","url":"index.html#leftcols","classes":"tsd-kind-type-alias"},{"id":54,"kind":65536,"name":"__type","url":"index.html#leftcols.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias tsd-is-not-exported","parent":"LeftCols"},{"id":55,"kind":64,"name":"declareTable","url":"index.html#declaretable","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":56,"kind":4194304,"name":"TableDeclareCols","url":"index.html#tabledeclarecols","classes":"tsd-kind-type-alias"},{"id":57,"kind":65536,"name":"__type","url":"index.html#tabledeclarecols.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias tsd-is-not-exported","parent":"TableDeclareCols"},{"id":58,"kind":64,"name":"nullCol","url":"index.html#nullcol","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":59,"kind":64,"name":"numberCol","url":"index.html#numbercol","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":60,"kind":64,"name":"textCol","url":"index.html#textcol","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":61,"kind":64,"name":"booleanCol","url":"index.html#booleancol","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":62,"kind":64,"name":"ifThenElse","url":"index.html#ifthenelse","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":63,"kind":64,"name":"matchNull","url":"index.html#matchnull","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":64,"kind":64,"name":"update","url":"index.html#update","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":65,"kind":64,"name":"updateReturning","url":"index.html#updatereturning","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":66,"kind":64,"name":"insertReturning","url":"index.html#insertreturning","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":67,"kind":64,"name":"insert","url":"index.html#insert","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":68,"kind":64,"name":"insertOnConflictDoNothingReturning","url":"index.html#insertonconflictdonothingreturning","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":69,"kind":64,"name":"insertOnConflictDoNothing","url":"index.html#insertonconflictdonothing","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":70,"kind":64,"name":"insertOnConflictDoUpdateReturning","url":"index.html#insertonconflictdoupdatereturning","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":71,"kind":64,"name":"insertOnConflictDoUpdate","url":"index.html#insertonconflictdoupdate","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":72,"kind":64,"name":"insertManyReturning","url":"index.html#insertmanyreturning","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":73,"kind":64,"name":"insertMany","url":"index.html#insertmany","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":74,"kind":64,"name":"insertManyOnConflictDoNothingReturning","url":"index.html#insertmanyonconflictdonothingreturning","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":75,"kind":64,"name":"insertManyOnConflictDoNothing","url":"index.html#insertmanyonconflictdonothing","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":76,"kind":64,"name":"insertManyOnConflictDoUpdateReturning","url":"index.html#insertmanyonconflictdoupdatereturning","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":77,"kind":64,"name":"insertManyOnConflictDoUpdate","url":"index.html#insertmanyonconflictdoupdate","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":78,"kind":64,"name":"delete_","url":"index.html#delete_","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":79,"kind":2,"name":"pg","url":"modules/pg.html","classes":"tsd-kind-module"},{"id":80,"kind":64,"name":"query","url":"index.html#query","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":81,"kind":64,"name":"queryOne","url":"index.html#queryone","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":82,"kind":64,"name":"queryOneOrNone","url":"index.html#queryoneornone","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":83,"kind":64,"name":"restrict","url":"index.html#restrict","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":84,"kind":64,"name":"groupBy","url":"index.html#groupby","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":85,"kind":64,"name":"aggregate","url":"index.html#aggregate","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":86,"kind":64,"name":"inQuery","url":"index.html#inquery","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":87,"kind":64,"name":"exists","url":"index.html#exists","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":88,"kind":64,"name":"arbitrary","url":"index.html#arbitrary","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":89,"kind":64,"name":"leftJoin","url":"index.html#leftjoin","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":90,"kind":64,"name":"innerJoin","url":"index.html#innerjoin","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":91,"kind":64,"name":"inner","url":"index.html#inner","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":92,"kind":64,"name":"suchThat","url":"index.html#suchthat","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":93,"kind":64,"name":"select","url":"index.html#select","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":94,"kind":64,"name":"selectValues","url":"index.html#selectvalues","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":95,"kind":64,"name":"limit","url":"index.html#limit","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":96,"kind":64,"name":"order","url":"index.html#order","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":97,"kind":64,"name":"distinct","url":"index.html#distinct","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":98,"kind":64,"name":"ColumnParseError","url":"index.html#columnparseerror","classes":"tsd-kind-function"},{"id":99,"kind":64,"name":"isNull","url":"index.html#isnull","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":100,"kind":64,"name":"isNotNull","url":"index.html#isnotnull","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":101,"kind":64,"name":"not","url":"index.html#not","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":102,"kind":64,"name":"restrictEq","url":"index.html#restricteq","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":103,"kind":64,"name":"like","url":"index.html#like","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":104,"kind":64,"name":"ilike","url":"index.html#ilike","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":105,"kind":64,"name":"e","url":"index.html#e","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":106,"kind":2,"name":"Debug","url":"modules/debug.html","classes":"tsd-kind-module"},{"id":107,"kind":2,"name":"SqlType","url":"modules/sqltype.html","classes":"tsd-kind-module"},{"id":108,"kind":2,"name":"Unsafe","url":"modules/unsafe.html","classes":"tsd-kind-module"}]};
typedoc.search.data = {"kinds":{"2":"Module","4":"Enumeration","16":"Enumeration member","64":"Function","128":"Class","256":"Interface","512":"Constructor","1024":"Property","2048":"Method","65536":"Type literal","4194304":"Type alias"},"rows":[{"id":0,"kind":128,"name":"ColName","url":"classes/colname.html","classes":"tsd-kind-class"},{"id":1,"kind":2048,"name":"wrap","url":"classes/colname.html#wrap","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"ColName"},{"id":2,"kind":2048,"name":"unwrap","url":"classes/colname.html#unwrap","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"ColName"},{"id":3,"kind":1024,"name":"dummy","url":"classes/colname.html#dummy","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-protected","parent":"ColName"},{"id":4,"kind":128,"name":"TableName","url":"classes/tablename.html","classes":"tsd-kind-class"},{"id":5,"kind":2048,"name":"wrap","url":"classes/tablename.html#wrap","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"TableName"},{"id":6,"kind":2048,"name":"unwrap","url":"classes/tablename.html#unwrap","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"TableName"},{"id":7,"kind":1024,"name":"dummy","url":"classes/tablename.html#dummy","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-protected","parent":"TableName"},{"id":8,"kind":4,"name":"Order","url":"enums/order.html","classes":"tsd-kind-enum"},{"id":9,"kind":16,"name":"Asc","url":"enums/order.html#asc","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"Order"},{"id":10,"kind":16,"name":"Desc","url":"enums/order.html#desc","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"Order"},{"id":11,"kind":16,"name":"AscNullsLast","url":"enums/order.html#ascnullslast","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"Order"},{"id":12,"kind":16,"name":"DescNullsFirst","url":"enums/order.html#descnullsfirst","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"Order"},{"id":13,"kind":16,"name":"AscNullsFirst","url":"enums/order.html#ascnullsfirst","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"Order"},{"id":14,"kind":16,"name":"DescNullsLast","url":"enums/order.html#descnullslast","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"Order"},{"id":15,"kind":128,"name":"Write","url":"classes/write.html","classes":"tsd-kind-class"},{"id":16,"kind":1024,"name":"dummy","url":"classes/write.html#dummy","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-protected","parent":"Write"},{"id":17,"kind":128,"name":"DefaultValue","url":"classes/defaultvalue.html","classes":"tsd-kind-class"},{"id":18,"kind":1024,"name":"dummy","url":"classes/defaultvalue.html#dummy","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-protected","parent":"DefaultValue"},{"id":19,"kind":128,"name":"Aggr","url":"classes/aggr.html","classes":"tsd-kind-class tsd-has-type-parameter"},{"id":20,"kind":1024,"name":"dummy","url":"classes/aggr.html#dummy","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-protected","parent":"Aggr"},{"id":21,"kind":128,"name":"Inner","url":"classes/inner.html","classes":"tsd-kind-class tsd-has-type-parameter"},{"id":22,"kind":1024,"name":"dummy","url":"classes/inner.html#dummy","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-protected","parent":"Inner"},{"id":23,"kind":128,"name":"Table","url":"classes/table.html","classes":"tsd-kind-class tsd-has-type-parameter"},{"id":24,"kind":1024,"name":"tableName","url":"classes/table.html#tablename","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Table"},{"id":25,"kind":1024,"name":"tableCols","url":"classes/table.html#tablecols","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Table"},{"id":26,"kind":1024,"name":"dummy","url":"classes/table.html#dummy","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-protected","parent":"Table"},{"id":27,"kind":256,"name":"ColInfo","url":"interfaces/colinfo.html","classes":"tsd-kind-interface"},{"id":28,"kind":1024,"name":"name","url":"interfaces/colinfo.html#name","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ColInfo"},{"id":29,"kind":1024,"name":"propName","url":"interfaces/colinfo.html#propname","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ColInfo"},{"id":30,"kind":1024,"name":"parser","url":"interfaces/colinfo.html#parser","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ColInfo"},{"id":31,"kind":65536,"name":"__type","url":"interfaces/colinfo.html#parser.__type","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-is-not-exported","parent":"ColInfo.parser"},{"id":32,"kind":128,"name":"Col","url":"classes/col.html","classes":"tsd-kind-class tsd-has-type-parameter"},{"id":33,"kind":1024,"name":"dummy","url":"classes/col.html#dummy","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-protected","parent":"Col"},{"id":34,"kind":128,"name":"ConflictTarget","url":"classes/conflicttarget.html","classes":"tsd-kind-class tsd-has-type-parameter"},{"id":35,"kind":2048,"name":"tableColumns","url":"classes/conflicttarget.html#tablecolumns","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-static","parent":"ConflictTarget"},{"id":36,"kind":1024,"name":"dummy","url":"classes/conflicttarget.html#dummy","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-protected","parent":"ConflictTarget"},{"id":37,"kind":128,"name":"Arbitrary","url":"classes/arbitrary.html","classes":"tsd-kind-class"},{"id":38,"kind":1024,"name":"dummy","url":"classes/arbitrary.html#dummy","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-protected","parent":"Arbitrary"},{"id":39,"kind":128,"name":"Q","url":"classes/q.html","classes":"tsd-kind-class tsd-has-type-parameter"},{"id":40,"kind":1024,"name":"dummy","url":"classes/q.html#dummy","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-protected","parent":"Q"},{"id":41,"kind":128,"name":"ColumnParseError","url":"classes/columnparseerror.html","classes":"tsd-kind-class"},{"id":42,"kind":1024,"name":"query","url":"classes/columnparseerror.html#query","classes":"tsd-kind-property tsd-parent-kind-class","parent":"ColumnParseError"},{"id":43,"kind":1024,"name":"columnValue","url":"classes/columnparseerror.html#columnvalue","classes":"tsd-kind-property tsd-parent-kind-class","parent":"ColumnParseError"},{"id":44,"kind":1024,"name":"parseFunction","url":"classes/columnparseerror.html#parsefunction","classes":"tsd-kind-property tsd-parent-kind-class","parent":"ColumnParseError"},{"id":45,"kind":1024,"name":"innerError","url":"classes/columnparseerror.html#innererror","classes":"tsd-kind-property tsd-parent-kind-class","parent":"ColumnParseError"},{"id":46,"kind":1024,"name":"__proto__","url":"classes/columnparseerror.html#__proto__","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-protected","parent":"ColumnParseError"},{"id":47,"kind":512,"name":"constructor","url":"classes/columnparseerror.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"ColumnParseError"},{"id":48,"kind":1024,"name":"name","url":"classes/columnparseerror.html#name","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"ColumnParseError"},{"id":49,"kind":1024,"name":"message","url":"classes/columnparseerror.html#message","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"ColumnParseError"},{"id":50,"kind":1024,"name":"stack","url":"classes/columnparseerror.html#stack","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"ColumnParseError"},{"id":51,"kind":1024,"name":"Error","url":"classes/columnparseerror.html#error","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-static","parent":"ColumnParseError"},{"id":52,"kind":4194304,"name":"MakeTable","url":"index.html#maketable","classes":"tsd-kind-type-alias tsd-has-type-parameter"},{"id":53,"kind":4194304,"name":"MakeCols","url":"index.html#makecols","classes":"tsd-kind-type-alias tsd-has-type-parameter"},{"id":54,"kind":65536,"name":"__type","url":"index.html#makecols.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias tsd-is-not-exported","parent":"MakeCols"},{"id":55,"kind":64,"name":"defaultValue","url":"index.html#defaultvalue","classes":"tsd-kind-function"},{"id":56,"kind":64,"name":"count","url":"index.html#count","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":57,"kind":64,"name":"avg","url":"index.html#avg","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":58,"kind":64,"name":"sum","url":"index.html#sum","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":59,"kind":64,"name":"max","url":"index.html#max","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":60,"kind":64,"name":"min","url":"index.html#min","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":61,"kind":64,"name":"inList","url":"index.html#inlist","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":62,"kind":4194304,"name":"AggrCols","url":"index.html#aggrcols","classes":"tsd-kind-type-alias tsd-has-type-parameter"},{"id":63,"kind":65536,"name":"__type","url":"index.html#aggrcols.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias tsd-is-not-exported","parent":"AggrCols"},{"id":64,"kind":4194304,"name":"LeftCols","url":"index.html#leftcols","classes":"tsd-kind-type-alias tsd-has-type-parameter"},{"id":65,"kind":65536,"name":"__type","url":"index.html#leftcols.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias tsd-is-not-exported","parent":"LeftCols"},{"id":66,"kind":64,"name":"declareTable","url":"index.html#declaretable","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":67,"kind":4194304,"name":"TableDeclareCols","url":"index.html#tabledeclarecols","classes":"tsd-kind-type-alias tsd-has-type-parameter"},{"id":68,"kind":65536,"name":"__type","url":"index.html#tabledeclarecols.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias tsd-is-not-exported","parent":"TableDeclareCols"},{"id":69,"kind":64,"name":"nullCol","url":"index.html#nullcol","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":70,"kind":64,"name":"numberCol","url":"index.html#numbercol","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":71,"kind":64,"name":"textCol","url":"index.html#textcol","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":72,"kind":64,"name":"booleanCol","url":"index.html#booleancol","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":73,"kind":64,"name":"ifThenElse","url":"index.html#ifthenelse","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":74,"kind":64,"name":"matchNull","url":"index.html#matchnull","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":75,"kind":64,"name":"update","url":"index.html#update","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":76,"kind":64,"name":"updateReturning","url":"index.html#updatereturning","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":77,"kind":64,"name":"insertReturning","url":"index.html#insertreturning","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":78,"kind":64,"name":"insert","url":"index.html#insert","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":79,"kind":64,"name":"insertOnConflictDoNothingReturning","url":"index.html#insertonconflictdonothingreturning","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":80,"kind":64,"name":"insertOnConflictDoNothing","url":"index.html#insertonconflictdonothing","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":81,"kind":64,"name":"insertOnConflictDoUpdateReturning","url":"index.html#insertonconflictdoupdatereturning","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":82,"kind":64,"name":"insertOnConflictDoUpdate","url":"index.html#insertonconflictdoupdate","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":83,"kind":64,"name":"insertManyReturning","url":"index.html#insertmanyreturning","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":84,"kind":64,"name":"insertMany","url":"index.html#insertmany","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":85,"kind":64,"name":"insertManyOnConflictDoNothingReturning","url":"index.html#insertmanyonconflictdonothingreturning","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":86,"kind":64,"name":"insertManyOnConflictDoNothing","url":"index.html#insertmanyonconflictdonothing","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":87,"kind":64,"name":"insertManyOnConflictDoUpdateReturning","url":"index.html#insertmanyonconflictdoupdatereturning","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":88,"kind":64,"name":"insertManyOnConflictDoUpdate","url":"index.html#insertmanyonconflictdoupdate","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":89,"kind":64,"name":"delete_","url":"index.html#delete_","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":90,"kind":2,"name":"pg","url":"modules/pg.html","classes":"tsd-kind-module"},{"id":91,"kind":64,"name":"query","url":"index.html#query","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":92,"kind":64,"name":"queryOne","url":"index.html#queryone","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":93,"kind":64,"name":"queryOneOrNone","url":"index.html#queryoneornone","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":94,"kind":64,"name":"restrict","url":"index.html#restrict","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":95,"kind":64,"name":"groupBy","url":"index.html#groupby","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":96,"kind":64,"name":"aggregate","url":"index.html#aggregate","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":97,"kind":64,"name":"inQuery","url":"index.html#inquery","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":98,"kind":64,"name":"exists","url":"index.html#exists","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":99,"kind":64,"name":"arbitrary","url":"index.html#arbitrary","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":100,"kind":64,"name":"leftJoin","url":"index.html#leftjoin","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":101,"kind":64,"name":"innerJoin","url":"index.html#innerjoin","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":102,"kind":64,"name":"inner","url":"index.html#inner","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":103,"kind":64,"name":"suchThat","url":"index.html#suchthat","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":104,"kind":64,"name":"select","url":"index.html#select","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":105,"kind":64,"name":"selectValues","url":"index.html#selectvalues","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":106,"kind":64,"name":"limit","url":"index.html#limit","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":107,"kind":64,"name":"order","url":"index.html#order","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":108,"kind":64,"name":"distinct","url":"index.html#distinct","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":109,"kind":64,"name":"isNull","url":"index.html#isnull","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":110,"kind":64,"name":"isNotNull","url":"index.html#isnotnull","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":111,"kind":64,"name":"not","url":"index.html#not","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":112,"kind":64,"name":"restrictEq","url":"index.html#restricteq","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":113,"kind":64,"name":"like","url":"index.html#like","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":114,"kind":64,"name":"ilike","url":"index.html#ilike","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":115,"kind":64,"name":"e","url":"index.html#e","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":116,"kind":2,"name":"Debug","url":"modules/debug.html","classes":"tsd-kind-module"},{"id":117,"kind":2,"name":"SqlType","url":"modules/sqltype.html","classes":"tsd-kind-module"},{"id":118,"kind":2,"name":"Unsafe","url":"modules/unsafe.html","classes":"tsd-kind-module"}]};

@@ -27,3 +27,3 @@ import * as pgLib from "pg";

AscNullsFirst = 4,
DescNullsLast = 5,
DescNullsLast = 5
}

@@ -420,3 +420,10 @@

*/
export declare function ColumnParseError(this: any, message: string, query: string, columnValue: string, parseFunction: string, innerError?: Error): void;
export declare class ColumnParseError extends Error {
readonly query: string;
readonly columnValue: string;
readonly parseFunction: string;
readonly innerError: Error | undefined;
protected __proto__: Error;
constructor(message: string, query: string, columnValue: string, parseFunction: string, innerError?: Error);
}

@@ -423,0 +430,0 @@ /**

{
"name": "zol",
"version": "0.2.4",
"version": "0.2.5",
"description": "Type safe composable SQL abstraction layer",

@@ -43,10 +43,10 @@ "keywords": [

"ts-node": "3.3.0",
"tslint": "5.8.0",
"typescript-formatter": "7.0.0",
"typescript": "2.4.2"
"tslint": "5.11.0",
"typescript-formatter": "7.2.2",
"typescript": "3.2.2"
},
"dependencies": {
"@types/pg": ">=7.1.0 <=7.4.1",
"pg": ">=7.0.2 <=7.4.0"
"@types/pg": ">=7.1.0 <=7.4.11",
"pg": ">=7.0.2 <=7.7.1"
}
}

@@ -95,3 +95,3 @@ import { Col, colUnwrap } from "./Column";

const updated: [ColName, SomeCol<SQL>][] = [];
const fs2 = finalCols(upd(cs));
const fs2 = finalCols(upd(<any>cs));
for (let i = 0; i < names.length; ++i) {

@@ -103,3 +103,3 @@ updated.push([

}
const predicate = colUnwrap(check(cs));
const predicate = colUnwrap(check(<any>cs));
return compInsert(tbl.tableName, names, fs, conflictTblCols, predicate, updated, rs);

@@ -114,3 +114,3 @@ }

const updated: [ColName, SomeCol<SQL>][] = [];
const fs = finalCols(upd(cs));
const fs = finalCols(upd(<any>cs));
for (let i = 0; i < names.length; ++i) {

@@ -122,3 +122,3 @@ updated.push([

}
const predicate = colUnwrap(check(cs));
const predicate = colUnwrap(check(<any>cs));
if (returning === undefined) {

@@ -136,4 +136,4 @@ return compUpdate(tbl.tableName, predicate, updated, []);

const cs = toTup<a>(names, null);
const predicate = colUnwrap(check(cs));
const predicate = colUnwrap(check(<any>cs));
return compDelete(tbl.tableName, predicate);
}

@@ -6,14 +6,23 @@ import * as pgLib from "pg";

*/
export function ColumnParseError(this: any, message: string, query: string, columnValue: string, parseFunction: string, innerError?: Error) {
this.name = "ColumnParseError";
this.message = message;
this.stack = (new Error()).stack;
this.query = query;
this.columnValue = columnValue;
this.parseFunction = parseFunction;
this.innerError = innerError;
export class ColumnParseError extends Error {
public readonly query: string;
public readonly columnValue: string;
public readonly parseFunction: string;
public readonly innerError: Error | undefined;
protected __proto__: Error; // tslint:disable-line:variable-name
public constructor(message: string, query: string, columnValue: string, parseFunction: string, innerError?: Error) {
const trueProto = new.target.prototype;
super(message);
this.__proto__ = trueProto;
this.query = query;
this.columnValue = columnValue;
this.parseFunction = parseFunction;
this.innerError = innerError;
}
}
ColumnParseError.prototype = Object.create(Error.prototype);
ColumnParseError.prototype.constructor = ColumnParseError;

@@ -30,3 +39,3 @@ export function runCustomQuery(conn: pgLib.Client, propNames: string[], propParsers: ((val: string) => any)[], text: string, values: any): Promise<any[]> {

if (customQuery.parseError !== null) {
reject(new (<any>ColumnParseError)(
reject(new ColumnParseError(
customQuery.parseError.message,

@@ -33,0 +42,0 @@ text,

@@ -73,3 +73,3 @@ import { booleanCol, Col, colUnwrap, colWrap, numberCol } from "./Column";

const result = s(<any>mutQ2);
return [result, mutQ2[0]];
return [<any>result, mutQ2[0]];
}

@@ -90,3 +90,3 @@ }

const result = s(<any>mutQ2);
return [result, mutQ2[0]];
return [<any>result, mutQ2[0]];
}

@@ -135,3 +135,3 @@ }

const result = s(<any>mutQ2);
return [result, mutQ2[0]];
return [<any>result, mutQ2[0]];
}

@@ -207,3 +207,3 @@ }

const result = query(<any>mutQ2);
return [result, mutQ2[0]];
return [<any>result, mutQ2[0]];
}

@@ -231,3 +231,3 @@ }

const result = query(<any>mutQ2);
return [result, mutQ2[0]];
return [<any>result, mutQ2[0]];
}

@@ -234,0 +234,0 @@ }

@@ -8,2 +8,3 @@ import { Col } from "./Column";

import { MakeCols, MakeTable, toTup, Write } from "./Query";
import { Param } from "./SQL";
import { Table } from "./Table";

@@ -219,3 +220,3 @@ import { ColName } from "./Types";

const pgParams = params.map(x => litToPgParam(x.param));
const pgParams = params.map((x: Param) => litToPgParam(x.param));

@@ -222,0 +223,0 @@ const result = await pg.query(conn, tagSql(sqlTag, sqlText), pgParams);

@@ -72,23 +72,23 @@ import { Col, colUnwrap, colWrap } from "./Column";

(
State.mapM(x => State.bind<GenState, SomeCol<SQL>, [SomeCol<SQL>, string, (val: string) => any]>(rename(mkSome(mkCol(x[0], x[2]), x[2])), y => State.pure<GenState, [SomeCol<SQL>, string, (val: string) => any]>([y, x[1], x[2]])), cs2),
(rns: [SomeCol<SQL>, string, (val: string) => any][]) =>
State.bind
(
State.get(),
st => {
const newSource = sqlFrom(rns.map(x => x[0]), {
type: "TableName",
tableName: table.tableName
});
const st2: GenState = {
...st,
sources: [newSource].concat(st.sources)
};
return State.bind
(
State.put(st2),
() => State.pure(toTup(someColNames2(rns), null))
);
}
)
State.mapM(x => State.bind<GenState, SomeCol<SQL>, [SomeCol<SQL>, string, (val: string) => any]>(rename(mkSome(mkCol(x[0], x[2]), x[2])), y => State.pure<GenState, [SomeCol<SQL>, string, (val: string) => any]>([y, x[1], x[2]])), cs2),
(rns: [SomeCol<SQL>, string, (val: string) => any][]) =>
State.bind
(
State.get(),
st => {
const newSource = sqlFrom(rns.map(x => x[0]), {
type: "TableName",
tableName: table.tableName
});
const st2: GenState = {
...st,
sources: [newSource].concat(st.sources)
};
return State.bind
(
State.put(st2),
() => State.pure(toTup(someColNames2(rns), null))
);
}
)
));

@@ -95,0 +95,0 @@ });

@@ -189,5 +189,5 @@ import { assertNever } from "../assertNever";

(
ppCol(c.exp),
c2 =>
State.pure(c2 + " AS " + fromColName(c.colName))
ppCol(c.exp),
c2 =>
State.pure(c2 + " AS " + fromColName(c.colName))
);

@@ -344,18 +344,18 @@ /* istanbul ignore next */

(
State.get(),
pp => {
const p2: Param = {
param: l
};
return State.bind
(State.put({
ppParams: [p2].concat(pp.ppParams),
ppTables: pp.ppTables,
ppParamNS: pp.ppParamNS + 1,
ppQueryNS: pp.ppQueryNS
}),
() =>
State.pure("$" + pp.ppParamNS)
);
}
State.get(),
pp => {
const p2: Param = {
param: l
};
return State.bind
(State.put({
ppParams: [p2].concat(pp.ppParams),
ppTables: pp.ppTables,
ppParamNS: pp.ppParamNS + 1,
ppQueryNS: pp.ppQueryNS
}),
() =>
State.pure("$" + pp.ppParamNS)
);
}
);

@@ -368,9 +368,9 @@ }

(
State.get(),
pp => State.put({
ppParams: pp.ppParams,
ppTables: [tableName].concat(pp.ppTables),
ppParamNS: pp.ppParamNS,
ppQueryNS: pp.ppQueryNS
})
State.get(),
pp => State.put({
ppParams: pp.ppParams,
ppTables: [tableName].concat(pp.ppTables),
ppParamNS: pp.ppParamNS,
ppQueryNS: pp.ppQueryNS
})
);

@@ -385,15 +385,15 @@ }

(
State.get(),
pp =>
State.bind
(
State.put({
ppParams: pp.ppParams,
ppTables: pp.ppTables,
ppParamNS: pp.ppParamNS,
ppQueryNS: pp.ppQueryNS + 1
}),
() =>
State.pure("q" + pp.ppQueryNS)
)
State.get(),
pp =>
State.bind
(
State.put({
ppParams: pp.ppParams,
ppTables: pp.ppTables,
ppParamNS: pp.ppParamNS,
ppQueryNS: pp.ppQueryNS + 1
}),
() =>
State.pure("q" + pp.ppQueryNS)
)
);

@@ -408,34 +408,34 @@ }

(
State.mapM(ppSomeCol, sql.cols),
cs2 =>
State.bind(
ppSrc(sql.source),
src2 => State.bind(
ppRestricts(sql.restricts),
r2 => State.bind(
ppGroups(sql.groups),
gs2 => State.bind(
ppOrder(sql.ordering),
ord2 => State.bind(
ppLimit(sql.limits),
lim2 => {
const result = (cs: string[]): string => {
if (cs.length === 0) {
return "1";
} else {
return cs.join(", ");
}
};
State.mapM(ppSomeCol, sql.cols),
cs2 =>
State.bind(
ppSrc(sql.source),
src2 => State.bind(
ppRestricts(sql.restricts),
r2 => State.bind(
ppGroups(sql.groups),
gs2 => State.bind(
ppOrder(sql.ordering),
ord2 => State.bind(
ppLimit(sql.limits),
lim2 => {
const result = (cs: string[]): string => {
if (cs.length === 0) {
return "1";
} else {
return cs.join(", ");
}
};
return State.pure(
"SELECT " + (sql.distinct ? "DISTINCT " : "") + result(cs2) +
src2 +
r2 +
gs2 +
ord2 +
lim2
);
}
)
)))));
return State.pure(
"SELECT " + (sql.distinct ? "DISTINCT " : "") + result(cs2) +
src2 +
r2 +
gs2 +
ord2 +
lim2
);
}
)
)))));
}

@@ -448,5 +448,5 @@

(
freshQueryName(),
qn =>
State.pure(" FROM (SELECT NULL LIMIT 0) AS " + qn)
freshQueryName(),
qn =>
State.pure(" FROM (SELECT NULL LIMIT 0) AS " + qn)
);

@@ -456,3 +456,3 @@ case "TableName":

(dependOn(s.tableName),
() => State.pure(" FROM " + fromTableName(s.tableName))
() => State.pure(" FROM " + fromTableName(s.tableName))
);

@@ -459,0 +459,0 @@ case "Product":

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc