scottnuma / db-writer

Continually write timestamps to a database

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

db-writer

db-writer is a simple application that create and continually write timestamps into the stamps table. db-writer can be useful when you want to simulate continuous writes to a database.

db-writer requires setting the CONN_STRING env var. You can find this on Render as Postgres' internal Database URL.

Deploy to Render

Schema

CREATE TABLE IF NOT EXISTS stamps (time timestamp);
INSERT into stamps (time) VALUES ($1);
SELECT * FROM stamps ORDER BY time DESC LIMIT 5;

About

Continually write timestamps to a database


Languages

Language:Go 100.0%