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

Add Tables #2

Merged
merged 2 commits into from
Jan 6, 2024
Merged

Add Tables #2

merged 2 commits into from
Jan 6, 2024

Conversation

dezren39
Copy link

@dezren39 dezren39 commented Jan 6, 2024

Sets different fork defaults, adds tables for migration 3, a DT migration. DT is still up-to-date with charm latest version 2.
|Charm|DT-Charm|DT|
|2|2|3|

Migration0003_DT_Passwords_And_Keys is a db migration script.
This migration adds the following tables:
- connection
- hash_public_key
- text_public_key
- private_key
The tables are used to store passwords and keys.
One can get the public key for a given hash or text.
Certain public keys can have their private key stored and shared.
Connections have their details stored in the connection table.

@dezren39
Copy link
Author

dezren39 commented Jan 6, 2024

instead of using build tags and muddying up the build command, i kind of prefer actually adding driver into the migration process. make rename sql 'sql-up' and make it a string map where key is driver. but unfortunately this isnt exactly what is needed here because libsql behaves like sqlite in local vs remote where you can use random rowid tursodatabase/libsql-client-go#104

@dezren39 dezren39 merged commit 4e397ea into main Jan 6, 2024
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