Table of Contents

Class SqliteSchemaCollection

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

Represents a collection of SQL schemas.

public sealed class SqliteSchemaCollection : SqlSchemaCollection, ISqlSchemaCollection, IReadOnlyCollection<ISqlSchema>, IEnumerable<ISqlSchema>, IEnumerable
Inheritance
SqliteSchemaCollection
Implements
Inherited Members

Remarks

SqliteDialect implementation.

Properties

Database

Database that this collection belongs to.

public SqliteDatabase Database { get; }

Property Value

SqliteDatabase

Default

Default schema.

public SqliteSchema Default { get; }

Property Value

SqliteSchema

Methods

CreateSchema(SqlSchemaBuilder)

Creates a new SqlSchema instance.

protected override SqliteSchema CreateSchema(SqlSchemaBuilder builder)

Parameters

builder SqlSchemaBuilder

Source schema builder.

Returns

SqliteSchema

New SqlSchema instance.

Get(string)

Returns a schema with the provided name.

[Pure]
public SqliteSchema Get(string name)

Parameters

name string

Name of the schema to return.

Returns

SqliteSchema

Existing schema.

Exceptions

KeyNotFoundException

When schema does not exist.

GetEnumerator()

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

[Pure]
public SqlObjectEnumerator<SqlSchema, SqliteSchema> GetEnumerator()

Returns

SqlObjectEnumerator<SqlSchema, SqliteSchema>

New SqlObjectEnumerator<TSource, TDestination> instance.

TryGet(string)

Attempts to return a schema with the provided name.

[Pure]
public SqliteSchema? TryGet(string name)

Parameters

name string

Name of the schema to return.

Returns

SqliteSchema

Existing schema or null when schema does not exist.