RedBase Documentation

Welcome to the RedBase documentation portal. Browse the API reference, explore code examples, and learn how to build with REDB.

API Reference

Browse the REDB API documentation. Select a namespace or type from the tree on the left, or click on items below.

Showing: redb.Export Show all

redb.Export.Flat

Classes

C FlatDdlGenerator Turns a into DDL for one provider.
C FlatExportService Unfolds redb objects into ordinary relational tables and copies the data into them.
C FlatModelBuilder Builds the flat model of a set of Props types: the shared header table, the two list tables and,
C FlatNaming Names of the flat tables and columns, and the rule that keeps every identifier within the
C FlatStorageTypes Chooses the of a column from its CLR type.

Enums

E FlatStorageType Dialect-independent type of a flat column. Each dialect maps it to a column type and to the form

redb.Export.Flat.Model

Classes

C FlatColumn One column of a flat table, described independently of any SQL dialect: the target column type
C FlatDatabaseModel The whole flat model: the three service tables followed by the tables of every scheme, each
C FlatForeignKey A single-column foreign key of a flat table.
C FlatIndex A plain index of a flat table. The export creates one for every foreign key column that no key alrea...
C FlatTable One flat table: its columns and constraints, plus where its rows come from in redb.
C FlatUniqueConstraint A unique constraint of a flat table.

Enums

E FlatCollectionKind Kind of the collection a table stores.
E FlatColumnRole The part a column plays in its table.
E FlatDeleteRule Delete rule of a flat foreign key. The rules mirror redb's own schema: what redb removes together
E FlatElementKind What one element of a collection is.
E FlatKeyKind How a dictionary key is laid out in the flat table.
E FlatTableKind What a flat table holds.
E FlatValueSource The _values column a payload value is read from.

redb.Export.Models

Classes

C ExportFooter Represents the footer (trailer) record of a .redb export file.
C ExportHeader Represents the header record of a .redb export file.
C ExportRecord Abstract base class for all data records in a .redb JSONL stream.
C ListItemRecord Represents a row from the _list_items table.
C ListRecord Represents a row from the _lists table (enumeration/lookup list).
C MigrationRecord Represents a row from the _migrations table: one data migration applied to a scheme (redb Pro). The ...
C ObjectRecord Represents a row from the _objects table (entity instance).
C PermissionRecord Represents a row from the _permissions table.
C RoleRecord Represents a row from the _roles table.
C SchemeRecord Represents a row from the _schemes table (schema/class definition).
C StructureRecord Represents a row from the _structures table (field/property definition).
C TypeRecord Represents a row from the _types table (REDB type definition).
C UserRecord Represents a row from the _users table.
C UserRoleRecord Represents a row from the _users_roles junction table.
C ValueRecord Represents a row from the _values table (EAV property value).

redb.Export.Providers

Classes

C DroppedIndex An index dropped for the duration of a load, with the statement that creates it again.
C MssqlProvider implementation for Microsoft SQL Server.
C PostgresProvider implementation for PostgreSQL.
C ProviderFactory Factory that creates instances by provider name.
C SqliteProvider implementation for SQLite (via Microsoft.Data.Sqlite).

Interfaces

I IDataProvider Abstracts database-specific operations required by the export/import pipeline.
I IParallelImportProvider What a provider needs to offer for an import that writes over several connections at once.

redb.Export.Services

Classes

C ExportService Exports an entire REDB database (or a filtered subset of schemes) to a .redb file.
C ImportService Imports data from a .redb file into a REDB database.
C SchemaInitService Creates the redb schema in a database, as redb init does: the schema an export can be imported into.