HackerTrans
TopNewTrendsCommentsPastAskShowJobs

singingwolfboy

no profile record

Submissions

Advent of Slop: A Guest Post by Claude

lucumr.pocoo.org
6 points·by singingwolfboy·7 tháng trước·0 comments

comments

singingwolfboy
·2 tháng trước·discuss
https://archive.ph/aE9Xg
singingwolfboy
·2 tháng trước·discuss
https://archive.ph/EvzqM
singingwolfboy
·4 tháng trước·discuss
https://archive.ph/ABkeI
singingwolfboy
·4 tháng trước·discuss
https://archive.ph/6kiqr
singingwolfboy
·4 tháng trước·discuss
https://archive.ph/KTIGX
singingwolfboy
·5 tháng trước·discuss
https://archive.ph/J8pg5
singingwolfboy
·6 tháng trước·discuss
https://archive.ph/pm1c1
singingwolfboy
·6 tháng trước·discuss
https://archive.ph/rHPk3
singingwolfboy
·7 tháng trước·discuss
https://archive.ph/trS1i
singingwolfboy
·9 tháng trước·discuss
https://archive.is/Xe0yW
singingwolfboy
·11 tháng trước·discuss
https://archive.is/QH4hl
singingwolfboy
·11 tháng trước·discuss
https://archive.ph/Q9lvm
singingwolfboy
·11 tháng trước·discuss
https://archive.is/BYFSO
singingwolfboy
·12 tháng trước·discuss
https://archive.is/7BmHJ
singingwolfboy
·năm ngoái·discuss
https://archive.ph/Pkxun
singingwolfboy
·6 năm trước·discuss
PostGraphile [1] is a framework for generating a GraphQL API based on the tables in your database; as a result, good database design is crucial. Graphile Starter [2] is a quickstart project that demonstrates best practices for getting up and running with PostGraphile quickly. In particular, check out the SQL migration file in that project [3]. It demonstrates:

1. Dividing up tables so that one user can have more than one email address

2. Using PostgreSQL’s “row-level security” system to restrict database results based on the logged in user

3. Dividing tables across multiple schemas for additional security

4. SQL comments for documentation

5. SQL functions for common functionality, such as logging in or verifying an email

It’s a fascinating project, and well worth a look!

[1](https://www.graphile.org/postgraphile/)

[2](https://github.com/graphile/starter)

[3](https://github.com/graphile/starter/blob/master/%40app/db/mi...)