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

Repositories #1

Open
rikmeijer opened this issue Oct 7, 2023 · 0 comments
Open

Repositories #1

rikmeijer opened this issue Oct 7, 2023 · 0 comments

Comments

@rikmeijer
Copy link
Owner

rikmeijer commented Oct 7, 2023

Structure

Resources: id
Resource_properties: id<id, name>
Resource_property_values: id<id, string identifier>, string value

Property name: [[]]
Complex properties are suffixed with []

Value identfier: [[integer|string]]
Value identifier of complex properties contain index of value

Ideas, migration of properties

$transform = fn() : string => $value;

migrateProperty(fn($add, $replace, $delete) : callable => $transform())

$add($transformer);
$replace("oldcol", $transform);
$delete();

Migration of resources

migrateResource(fn($add, $replace, $delete, $transform) : callable =&gt; $(add|replace|delete))

$add();
$replace("resource", fn(string $property) => match($property) { default: $transformer });
$delete();

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

No branches or pull requests

1 participant