Class SchemaInitService

Assembly: redb.Export.dll

Creates the redb schema in a database, as redb init does: the schema an export can be imported into.

public static class SchemaInitService

Inheritance

Object→SchemaInitService

Methods

GetSchemaScript(string)

The full schema initialization script of a provider, embedded in its assembly.

public static string GetSchemaScript(string provider)

InitializeAsync(string, string, Action<string>?, CancellationToken)

Creates the schema. PostgreSQL and SQL Server run the provider's initialization script, which deploys the module

public static Task InitializeAsync(string provider, string connectionString, Action<string>? log = null, CancellationToken ct = default)