Skip to content

main · v3.2 (unreleased)

Documentation

Users and maintainers · Index · CurrentMarkdownAgent index

Status: Current.

Allors3 is a platform for applications built with domain inheritance. An application declares its own domain, which extends Core and inherits its model and behaviour. The platform is System, which holds the database and workspace engines, the adapters, the protocols, the metadata and the generators, and Core, the foundational domain with authorization, authentication, the JSON API and the building blocks of a server. An application owns its business domains and its user interface.

These pages document main, the 3.2 line, which is not released. Versions and branches says where the line starts, where Base and Apps continue and where the previous line of main is kept.

Users build applications on Allors3: they declare a domain that extends Core, configure the programs and host the result. Maintainers change the platform. README.md introduces the repository. The writing guide defines the rules for these pages; Terminology records the agreed names. These pages are for humans. Agents use the same technical content, following the instructions in AGENTS.md.

The pages cover the boundary of the platform, domain inheritance, creating an application, the model, objects and relations in the database, extents, derivations, populations and their upgrade, security, the command-line tool, hosting a server, authentication, the JSON API, the workspace in .NET and in TypeScript with its pulls, the database adapters with the schema of SQL Server and PostgreSQL, configuration, the versions, and building and testing the repository. Getting started is the place to begin.

Allors3 is licensed under the GNU Lesser General Public License, version 3; the LICENSE file of the repository holds the text. Ask questions and report problems through the repository’s issues.

The following pages are written for users. Maintainers read them too.

PageKindStatusContent
Getting startedTutorialCurrentClone the platform, run one of its domain tests and write tests of your own on the test domain: objects, a relation, a derived value and an extent, without a database server.
DomainsExplanationCurrentHow the domain of an application extends Core, what it inherits, the order in which the parts of a method run, and how an application includes Core’s code.
Create an applicationHow-to guideCurrentStart an application from the sample, generate and test its projects, and sign in to its server.
The modelReferenceCurrentWhat a repository project declares: classes, interfaces, units, relations and their multiplicity, methods, ids, and the attributes with their defaults.
Objects and relationsExplanationCurrentCreating, relating and deleting objects in the database, what the platform maintains at both ends of a relation, transactions and change sets.
ExtentsHow-to guideCurrentQuery the objects of a class or an interface: filters, relations in a filter, sorting, combining extents and prefetching.
DerivationsExplanationCurrentHow a derivation runs rules in cycles until nothing changes, what patterns match, errors and required roles, and why to derive before a commit.
Write a ruleHow-to guideCurrentDeclare a derived role, write the rule that maintains it, register the rule and test it.
PopulationsExplanationCurrentHow a database gets its population: initialization, the setup and its hooks, saving and loading, and what a load does with a file of an earlier model.
SecurityExplanationCurrentHow Core decides what a user may do with an object: users, user groups, permissions, grants, security tokens and revocations, what Core’s setup creates, and where access is checked.
Grant accessHow-to guideCurrentCreate the permissions, a Role, a user group and a grant in the setup, give the Role its permissions and test what a user may do.
Upgrade a populationHow-to guideCurrentBring the population of an earlier version up to date: write the changes, declare what the new version removed, save, upgrade and test.
The command-line toolReferenceCurrentThe commands of an application’s command-line tool, with the sample’s as the example: settings, commands, options, output, exit codes and adapters.
Host a serverHow-to guideCurrentRun the server of an application on PostgreSQL or SQL Server: write its settings, create the database and a user, start the server, sign in with curl and prepare a deployment.
AuthenticationExplanationCurrentHow a user signs in to the server, what the bearer token holds and how long it lasts, how the server checks it on every request, and what a token outlives.
The JSON APIReferenceCurrentThe endpoints of the server: sign-in, pull, sync, push, invoke, access and permission, with their requests, responses, errors and checks.
The workspaceExplanationCurrentHow a client works with the objects of the database through a workspace: connections, workspaces and sessions, the Local and Remote adapters, what a pull brings into a session, what the user may read and write there, and what a push stores.
Use a workspaceHow-to guideCurrentConnect a .NET workspace to the database in the same process or to a server, pull objects with a filter and an include, read and change them as the user may, push, handle the errors and test on both adapters.
PullsReferenceCurrentWhat a pull of the .NET workspace can ask for: an object or an extent, predicates and sorting, results with a select, an include, paging and a name, arguments, prepared extents and selects, procedures and custom routes, and where the adapters differ.
The TypeScript workspaceReferenceCurrentThe TypeScript libraries of the workspace, the code that the generator writes for them, the connection with a JSON client of the application’s own, and where the TypeScript API differs from the .NET workspace.
The database adaptersExplanationCurrentHow the Memory, Snapshot, SqlClient and Npgsql adapters keep a population and run transactions, how a program chooses one, what the SQL adapters check before the first transaction, and where the adapters differ.
Test on PostgreSQL or SQL ServerHow-to guideCurrentRun the domain tests of an application on PostgreSQL or SQL Server with ALLORS_TEST_ADAPTER and an admin connection, look at the database that they leave and remove it.
The database schemaReferenceCurrentWhat the SQL adapters create for a model: the names, the tables and their columns, the types, the keys and indexes, the table types of SQL Server, the check before the first transaction, and what Init() and the command index change.
ConfigurationReferenceCurrentThe configuration root, the settings file of a domain, environment variables, the settings, the templates and the admin connections.
Versions and branchesReferenceCurrentThe 3.2 line on main, the version branches, the archive branch, and where Base and Apps continue.
TerminologyReferenceCurrentAgreed names for the platform, domains, the model, relations, objects, derivations, security, the workspace, adapters, populations and configuration.

The pages under internals/ describe how the platform and its repository are built. An application must not rely on them: they can change with any version.

PageKindStatusContent
ArchitectureExplanationCurrentThe scope of the platform, the layout of the repository, the folders that carry inheritance, the separation of test scaffolding, the database adapters, and configuration and hosting.
Build and testHow-to guideCurrentPrerequisites, the Nuke targets, the suites and what each needs, the TypeScript workspace and the CI workflows.
Writing documentationHow-to guideCurrentAudience, Diátaxis, status, Oxford English, stable terminology, visual explanations and review.
Documentation websiteDecision recordCurrentHow the website is built, what was reused, which facts moved here from the root of the repository, validation and publication.

The writing guide defines page kinds and statuses. Audience, kind and status describe different things: who a page serves, what it helps them do and whether it describes current behaviour.