npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

http-postgres-server

v1.0.0

Published

## 安装

Downloads

4

Readme

执行 postgres sql 的服务

安装

1.使用 npm 仓库安装

npm install -g http-postgres-server

2.使用源码 安装

#a.下载源码
#b.进入源码包、安装依赖
npm install
#c. 链接脚本
npm link

启动服务器

mysql的用户名、密码、数据库名、数据库的地址、端口、http服务的端口 ,下面罗列的均为默认值,可以不填

http-postgres-server --user sa --password 123456 --host 127.0.0.1  --database postgres --port 5432 --http_port 5555
#如只指定 数据库端口 其他均用默认值
http-postgres-server  --port 5432

使用方法

启动服务器后,可对该 HTTP 服务器发起 POST 请求,假设服务器访问地址为 http://127.0.0.1:5555,那么请求地址为 http://127.0.0.1:555/api/query

请求参数如下:

|Name|Descrption| |------|-------| |sql|需要查询的 sql 语句|

示例

请执行正确的 sql,这里我的 schema 是 db_test,同时我的表名也叫做 db_test,请替换伟你的 schema 和 表名

image