【文件属性】:
文件名称:pg-range-parser:解析postgres范围类型
文件大小:3KB
文件格式:ZIP
更新时间:2021-05-26 12:43:40
JavaScript
PG范围
处理postgres解析
安装
npm install -S pg-range-parser
用法
var pgRangeType = require ( 'pg-range-parser' ) ;
// { start: { value: '2015-01-01', inclusive: true }
// , end: { value: '2015-02-01', inclusive: false }
// }
pgRangeType . parse ( '[2015-01-01,2015-02-01)' )
// '[2015-01-01,2015-02-01)'
pgRangeType . serialize ( {
start : { value : '2015-01-01' , inclusive : true }
, end : { valu
【文件预览】:
pg-range-parser-master
----.gitignore(14B)
----README.md(787B)
----test()
--------test.js(568B)
----Gruntfile.js(809B)
----package.json(790B)
----index.js(619B)