HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
raaidarshad
dbdeclare
Python2023–2023
raaidarshad / dbdeclare

dbdeclare

Declarative layer for your database.

2Distinct people
2Mentions
0Explicit recommenders
38GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Declarative layer for your database.

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 3:03:16 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by day2 dated mentions

Observed mentions: 2023-02-27 16:04:44 UTC to 2023-03-08 14:30:16 UTC.

012023-02-27 00:00:00 UTC to 2023-02-28 00:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 commentsFeb 272023-02-28 00:00:00 UTC to 2023-03-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2023-03-01 00:00:00 UTC to 2023-03-02 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2023-03-02 00:00:00 UTC to 2023-03-03 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2023-03-03 00:00:00 UTC to 2023-03-04 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 commentsMar 32023-03-04 00:00:00 UTC to 2023-03-05 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2023-03-05 00:00:00 UTC to 2023-03-06 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2023-03-06 00:00:00 UTC to 2023-03-07 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2023-03-07 00:00:00 UTC to 2023-03-08 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2023-03-08 00:00:00 UTC to 2023-03-09 00:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 commentsMar 8

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Feb 272023-02-27 00:00:00 UTC2023-02-28 00:00:00 UTC110
Feb 282023-02-28 00:00:00 UTC2023-03-01 00:00:00 UTC000
Mar 12023-03-01 00:00:00 UTC2023-03-02 00:00:00 UTC000
Mar 22023-03-02 00:00:00 UTC2023-03-03 00:00:00 UTC000
Mar 32023-03-03 00:00:00 UTC2023-03-04 00:00:00 UTC000
Mar 42023-03-04 00:00:00 UTC2023-03-05 00:00:00 UTC000
Mar 52023-03-05 00:00:00 UTC2023-03-06 00:00:00 UTC000
Mar 62023-03-06 00:00:00 UTC2023-03-07 00:00:00 UTC000
Mar 72023-03-07 00:00:00 UTC2023-03-08 00:00:00 UTC000
Mar 82023-03-08 00:00:00 UTC2023-03-09 00:00:00 UTC110

What Hacker News says

2 sources

Show HN: DbDeclare – A Python declarative layer for your database

Hi HN! I made and just published v0.0.1 of DbDeclare. I use Python a lot, and interact with Postgres a lot. I like using SQLAlchemy, and I love Alembic. Those wonderful tools primarily operate on tables, though, and I often find myself writing custom code to declare what databases, roles, schemas, privileges, etc. I want, and I have a hard time updating them reliably and in a repeatable fashion. That's where DbDeclare aims to help: declare what you want in your cluster (in addition to SQLAlchemy-defined tables and columns) in-code, alongside your tables. There is a lot this can't do yet (thus the v0.0.1), but I think there's a decent foundation here to build on and eventually have really nice features like autogenerating change statements between your in-code definition and what is actually in your database cluster (like Alembic). This is
Read the rest
also my first attempt at building an open-source project, so I'm sure there are plenty of mistakes. Please feel free to provide feedback, I'd love to make it better. For what it's worth, I'm aware that you can do some of this at the infrastructure-as-code layer using a tool like Terraform/Pulumi. My personal preference is to have all this sit closer to my tables rather than my infrastructure, so here we are. Anyway, let me know what y'all think. Thanks!
3 points · Open discussion

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.