Remember

Storage for relatively static information, such as database credentials.

What it does

Remember is initialized with a name and credentials associatedd with this name. Services supporting it, will later retrieve the credentials using only the configured name.

It has been designed to prevent every Querier-service from having all credentials in its own settings, and allows for rapidly changing database credentials throughout the project.

CredentialsStore is a passive service and will yell at you when hit or presented with underlying branches.

How it works

{
        plugins = [
                f"Data.dll",
                f"BasicHttpServer.dll",
                f"OutputComposing.dll"];

        instances = {
                credentials = Remember("example", dbtype = "mysql",
                        host = "localhost", db = "example",
                        user = "example", pass = "example",
                        pool = true);

                showpies = SQL(f"queries/Pies.sql"
                        credset = "example"
                ) {
                        none->Template(f"templates/NoPies.html");
                        single->Template(f"templates/OnePie.html");
                        iterate->Template(f"templates/NPies.html");
                };

                server = HttpService(
                        prefixes = ["http://localhost:8080/"]
                ) {
                        http->instances.showpies;
                };
        };
}

Settings

credset the name compatible components may use to acquire credentials
[any] one or multiple login fields. anything set in the CredentialsStore will be passed onto components requesting information

Branches

none.