Commit graph

157 commits

Author SHA1 Message Date
cbf16a7e63
common: add basic database tests; skip when DB unavailable
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I10be55f54495c07de19ed26a03c9596c6a6a6964
2026-02-02 01:15:02 +03:00
0e6d249e0f
common: initial database handling
Can be configured from the config file, and also using environment
options.

```toml
[database]
url = "postgresql://fc_ci:password@localhost/fc_ci"
max_connections = 20
min_connections = 5
connect_timeout = 30
idle_timeout = 600
max_lifetime = 1800
```

We'll want to support SQlite in the future, and better secret handling
for database credentials. For now, this is workable.

---

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I36b4c1306511052a2748ca9d5d3429366a6a6964
2026-02-02 01:15:01 +03:00
a4c3cd1517
meta: add database migrations; set up migration CLI
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I0cbc9798243134d36f788099ecc3ee5a6a6a6964
2026-02-02 01:15:00 +03:00
63e1fbe554
docs: add initial design document
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I99399d520a1339d87072279f76de3cd26a6a6964
2026-02-02 01:14:59 +03:00
2c4cf83f47
nix: initial tooling setup
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ib47aeafee9474f491cfebddd3fa935826a6a6964
2026-02-02 01:14:58 +03:00
03568c3a25
docs: add very basic README
So it doesn't look so empty in here...

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Icff5e32cef6d19e42107f0f4945f26b06a6a6964
2026-02-02 01:14:57 +03:00
6203ea7f52
initial commit
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I79a875e75937ff6b3739ca36bfb0b2836a6a6964
2026-02-02 01:14:56 +03:00