Skip to content

db create: derive group from source db when forking#1043

Open
c-tonneslan wants to merge 1 commit into
tursodatabase:mainfrom
c-tonneslan:fix/db-create-from-derive-group
Open

db create: derive group from source db when forking#1043
c-tonneslan wants to merge 1 commit into
tursodatabase:mainfrom
c-tonneslan:fix/db-create-from-derive-group

Conversation

@c-tonneslan
Copy link
Copy Markdown

Closes #1004.

Forking with `--from-db` only works within a single group, so when the user has multiple groups but didn't specify `--group`, we can look up the source database and use its group instead of erroring out. Falls back to the original "Please specify one with --group" error if the lookup fails or the source database's group isn't in the user's group list.

Forking with --from-db only works within a single group, so when the
user has multiple groups but didn't specify --group, we can look up
the source database and use its group instead of erroring out. Falls
back to the original "Please specify one with --group" error if the
lookup fails or the source database's group isn't in the user's
group list.

Closes tursodatabase#1004.

Signed-off-by: Charlie Tonneslan <cst0520@gmail.com>
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.

Let creation of db when forking, without specifying the group name

1 participant