HackerTrans
トップ新着トレンドコメント過去質問紹介求人

vbilopav

no profile record

投稿

PostgreSQL REST API from SQL Scripts

npgsqlrest.github.io
1 ポイント·投稿者 vbilopav·3 か月前·0 コメント

[untitled]

1 ポイント·投稿者 vbilopav·6 か月前·0 コメント

Show HN: End-to-End Static Type Checking: PostgreSQL to TypeScript

npgsqlrest.github.io
1 ポイント·投稿者 vbilopav·6 か月前·0 コメント

PostgreSQL REST API Benchmark: 15 Frameworks Compared

npgsqlrest.github.io
1 ポイント·投稿者 vbilopav·7 か月前·0 コメント

Show HN: NpgsqlRest Automatic PostgreSQL Web Server

npgsqlrest.github.io
2 ポイント·投稿者 vbilopav·7 か月前·0 コメント

コメント

vbilopav
·4 か月前·議論
This was my first approach in realizing my PostgreSQL-centric, Db-first, or rather SQL-first vision of software development.

The project was call pgroutiner and it generated bunch of C# code for me out of PostgreSQL.

After doing couple of projects with it, I realized it wasn't enough. The new approach is a dynamic HTTTP REST API generation but, with plugin for code generation of frontend files (Typescript,. Javascript, HTTP files). This iw way better approach. Look it up, it's called npgsqlrest.github.io
vbilopav
·8 か月前·議論
Why not Foreign Data Wrappers?
vbilopav
·9 か月前·議論
NpgsqlRest Automatic PostgreSQL Web Server

Create REST APIs for PostgreSQL databases in minutes.

https://npgsqlrest.github.io/

- one man project (me) - been doing it well over a year now - no sponsorship, no investors, no backers, no nothing just my passion - I haven't even advertised much, this may first ir second time I'm sharing a link - On a weekdays im building a serious stuff with it - On weekends preparing a new major version with lessons learned from doing a real project with it

Not going to stop. But I migh be seeking sponsors in future, not sure how that will turn out. If not that's ok, I'm cool to be only user.
vbilopav
·10 か月前·議論
It looks to me team is clueless about database development.

Typescript ORMz lol.

Soft deletes make indexing, well, problmatic to say at least. Use temporal tabls instead for point in time recovery. Nevertheless it could have been solved on a database level without any help from ORMs, lookup RLS. Still, screws up indexing strategy.
vbilopav
·10 か月前·議論
What an awful query example! This should and is simple. Here:

select jsonb_build_object( 'title', title, 'genres', genres, 'actors', json_agg( jsonb_build_object( 'name', actor_name, 'characters', actor_characters ) ), 'directors', directors, 'writers', writers ) from ( select t.primaryTitle as title, t.genres, actor_person.primaryName as actor_name, array_agg(pc.character) as actor_characters, array_agg(director_person.primaryName) as directors, array_agg(writer_person.primaryName) as writers from title t left join principal actor on t.tconst = actor.tconst and actor.category = 'actor' left join person actor_person on actor.nconst = actor_person.nconst left join principal_character pc on actor.nconst = pc.nconst and actor.tconst = pc.tconst left join principal director on t.tconst = director.tconst and director.category = 'director' left join person director_person on director.nconst = director_person.nconst left join principal writer on t.tconst = writer.tconst and writer.category = 'writer' left join person writer_person on writer.nconst = writer_person.nconst where t.tconst = 'tt3890160' group by t.tconst, actor_person.primaryName, t.primaryTitle, t.genres, actor.ordering, director_person.primaryName, writer_person.primaryName order by actor.ordering asc ) main group by title, genres, directors, writers;

Here: https://i.postimg.cc/zB1Bgg1L/movies.png