Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
github.com/evrintobing17/pagination
An example project for pagination in Postgres with Golang
This repostiory based on this article https://medium.com/easyread/how-to-do-pagination-in-postgres-with-golang-in-4-common-ways-12365b9fb528
$ make run
$ docker ps
# ensure all the API is running
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
0671922c90ab postgres-pagination_offset-limit "/bin/sh -c /app/ole…" 14 minutes ago Up 14 minutes 0.0.0.0:9092->9090/tcp payment-with-offset-limit
5ee034203ad1 postgres-pagination_page-number "/bin/sh -c /app/pne…" 14 minutes ago Up 14 minutes 0.0.0.0:9094->9090/tcp payment-with-page-number
78a82fbc7815 postgres-pagination_uuid-created-time "/bin/sh -c /app/uce…" 14 minutes ago Up 14 minutes 0.0.0.0:9093->9090/tcp payment-with-uuid-created-time
4a83359ac88e postgres-pagination_auto-increment "/bin/sh -c /app/aie…" 14 minutes ago Up 14 minutes 0.0.0.0:9091->9090/tcp payment-with-auto-increment-id
e46c1c6d299b postgres-pagination_postgres-page-number "docker-entrypoint.s…" 33 minutes ago Up 33 minutes (healthy) 5432/tcp payment-with-page-number-db
fea94d4b92ef postgres-pagination_postgres-uuid-created-time "docker-entrypoint.s…" About an hour ago Up About an hour (healthy) 5432/tcp payment-with-uuid-created-time-db
9380e111c0eb postgres-pagination_postgres-offset-limit "docker-entrypoint.s…" About an hour ago Up About an hour (healthy) 5432/tcp payment-with-offset-limit-db
68c90b610f54 postgres-pagination_postgres-auto-increment "docker-entrypoint.s…" About an hour ago Up About an hour (healthy) 5432/tcp payment-with-auto-increment-id-db
Call the API based on the opened port,
$ curl locahost:9091/payments
$ curl locahost:9092/payments
$ curl locahost:9093/payments
$ curl locahost:9094/payments
To run benchmark for each pagination method,
$ cd to_each_directory
$ make benchmark
Example,
$ cd pagenumber
$ make benchmark
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.