soda-postgres:使用Socrata的SODA2 API查询Postgres数据库

时间:2021-05-15 13:53:33
【文件属性】:
文件名称:soda-postgres:使用Socrata的SODA2 API查询Postgres数据库
文件大小:13KB
文件格式:ZIP
更新时间:2021-05-15 13:53:33
JavaScript 苏打水 使用在postgres数据库前面提供Socrata风格的SODA2 API 安装 克隆仓库 通过npm install安装依赖项 创建一个名为.env的.env.sample副本并填写值,将其指向启用了postgis的postgres数据库 用法 要运行SODA2 API服务器,请使用node index.js然后使用SODA2调用​​(即)查询API。 http://localhost:8080/resource/table_name?$select=*&zip_code=19141 例子 带有“ 数据集的演示服务器提供了以下示例。 [$ select = zip_code,screening_type,geom]( ) [$ select = convex_hull(geom)AS hull&zip_code = 19146]( (geom AS hull&zip_co
【文件预览】:
soda-postgres-master
----index.js(2KB)
----package.json(668B)
----test()
--------test.js(3KB)
--------data()
----Procfile(18B)
----LICENSE(11KB)
----.env.sample(48B)
----.gitignore(17B)
----lib()
--------where.js(1KB)
--------select.js(1KB)
----README.md(2KB)

网友评论