Database API scaffolding #4
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Now that we have some basic scaffolding out of the way, we need to provide a user-code-facing way to interact with the database API.
We'll have an entirely self-contained helper class for calling API endpoints for now that gets included in the execution context.
Before the user code is executed, this helper is given static credentials to rnu in the API. These credentials expire after execution.
It's very important that this helper has no direct object reference back to the rest of the code.
Once we've done that, link in the database API wrapper classes so plugins can access them. e.g.
getDatabase(name)
should return the database with namename
.