Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

identity: set up sqlite #124

Merged
merged 4 commits into from
Aug 17, 2024
Merged

identity: set up sqlite #124

merged 4 commits into from
Aug 17, 2024

Conversation

TheButlah
Copy link
Contributor

@TheButlah TheButlah commented Aug 12, 2024

This PR un-stubs the /create and /users/:id/did.json endpoints by implementing a database via sqlx + sqlite.

In particular, I implemented:

  • SQL schema migration, including validation that all migrations on the db are up to date
  • Automatic db file creation if it doesn't exist
  • No need for hosting a db yourself, since sqlite is statically linked and runs on same node
  • support for controlling db file path via CLI or env var

@TheButlah TheButlah changed the title ident_svr: set up sqlite identity: set up sqlite Aug 12, 2024
@TheButlah TheButlah marked this pull request as draft August 12, 2024 05:34
@TheButlah TheButlah force-pushed the thebutlah/set-up-sqlite branch from b951782 to 7b95c2f Compare August 12, 2024 09:50
@TheButlah TheButlah marked this pull request as ready for review August 12, 2024 09:50
@TheButlah TheButlah merged commit 909593a into main Aug 17, 2024
4 checks passed
@TheButlah TheButlah deleted the thebutlah/set-up-sqlite branch August 17, 2024 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant