Table of Contents

Class SqliteSchemaBuilderCollection

Namespace
LfrlAnvil.Sqlite.Objects.Builders
Assembly
LfrlAnvil.Sqlite.dll

Represents a collection of SQL schema builders.

public sealed class SqliteSchemaBuilderCollection : SqlSchemaBuilderCollection, ISqlSchemaBuilderCollection, IReadOnlyCollection<ISqlSchemaBuilder>, IEnumerable<ISqlSchemaBuilder>, IEnumerable
Inheritance
SqliteSchemaBuilderCollection
Implements
Inherited Members

Remarks

SqliteDialect implementation.

Properties

Database

Database that this collection belongs to.

public SqliteDatabaseBuilder Database { get; }

Property Value

SqliteDatabaseBuilder

Default

Default schema.

public SqliteSchemaBuilder Default { get; }

Property Value

SqliteSchemaBuilder

Methods

Create(string)

Creates a new schema builder.

public SqliteSchemaBuilder Create(string name)

Parameters

name string

Name of the schema.

Returns

SqliteSchemaBuilder

New ISqlSchemaBuilder instance.

Exceptions

SqlObjectBuilderException

When schema could not be created.

CreateSchemaBuilder(string)

Creates a new SqlSchemaBuilder instance.

protected override SqliteSchemaBuilder CreateSchemaBuilder(string name)

Parameters

name string

Schema's name.

Returns

SqliteSchemaBuilder

New SqlSchemaBuilder instance.

Get(string)

Returns a schema with the provided name.

[Pure]
public SqliteSchemaBuilder Get(string name)

Parameters

name string

Name of the schema to return.

Returns

SqliteSchemaBuilder

Existing schema.

Exceptions

KeyNotFoundException

When schema does not exist.

GetEnumerator()

Creates a new SqlObjectBuilderEnumerator<TSource, TDestination> instance for this collection.

[Pure]
public SqlObjectBuilderEnumerator<SqlSchemaBuilder, SqliteSchemaBuilder> GetEnumerator()

Returns

SqlObjectBuilderEnumerator<SqlSchemaBuilder, SqliteSchemaBuilder>

New SqlObjectBuilderEnumerator<TSource, TDestination> instance.

GetOrCreate(string)

Creates a new schema builder or returns an existing schema builder.

public SqliteSchemaBuilder GetOrCreate(string name)

Parameters

name string

Name of the schema.

Returns

SqliteSchemaBuilder

New ISqlSchemaBuilder instance or an existing schema builder.

Exceptions

SqlObjectBuilderException

When schema does not exist and could not be created.

TryGet(string)

Attempts to return a schema with the provided name.

[Pure]
public SqliteSchemaBuilder? TryGet(string name)

Parameters

name string

Name of the schema to return.

Returns

SqliteSchemaBuilder

Existing schema or null when schema does not exist.