This website requires JavaScript.
Explore
Help
Sign In
Hostea
/
gitpad
mirror of
https://github.com/realaravinth/gitpad
Watch
4
Star
0
Fork
You've already forked gitpad
0
Code
Issues
3
Projects
Releases
Wiki
Activity
ae08828ac4
gitpad
/
sqlx-data.json
3 lines
24 B
JSON
Raw
Normal View
History
Unescape
Escape
feat: setup tests
2022-02-12 12:55:45 +00:00
{
feat: add gists_gists, gists_comments and gists_comments & related methods The following changes are implemented for both db-sqlx-postgres and db-sqlx-sqlite: TABLE gists_gists Stores gist metadata with unique index on gists_gists.public_id for fast lookups TABLE gists_comments Stores comment metadata TABLE gists_privacy Stores gist privacy: sqlx currently doesn't have support Postgres enums(ref: https://github.com/launchbadge/sqlx/issues/1171), so storing possible privacy values as references from this table. This table shouldn't be mutated during runtime. Possible values are already recorded in database during migrations. All runtime operations on this table must only take references. Each implementation of GistDatabase also includes a method called privacy_exists, which is called during tests to ensure that migrations are successful. VIEW gists_gists_view Gist lookups combines data from gists_users, gists_gists and gists_privacy. This SQL view boots performance(I think?). At any rate, it is much nicer to work with. QUIRKS Database indexes are i64 in SQLite while i32 in Postgres
2022-02-14 14:29:32 +00:00
"db"
:
"PostgreSQL"
feat: setup tests
2022-02-12 12:55:45 +00:00
}