Class SqliteSchemaCollection
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
Default
Default schema.
public SqliteSchema Default { get; }
Property Value
Methods
CreateSchema(SqlSchemaBuilder)
Creates a new SqlSchema instance.
protected override SqliteSchema CreateSchema(SqlSchemaBuilder builder)
Parameters
builderSqlSchemaBuilderSource schema builder.
Returns
- SqliteSchema
New SqlSchema instance.
Get(string)
Returns a schema with the provided name.
[Pure]
public SqliteSchema Get(string name)
Parameters
namestringName 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
namestringName of the schema to return.
Returns
- SqliteSchema
Existing schema or null when schema does not exist.