Table of Contents

Class MySqlSchemaCollection

Namespace
LfrlAnvil.MySql.Objects
Assembly
LfrlAnvil.MySql.dll

Represents a collection of SQL schemas.

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

Remarks

MySqlDialect implementation.

Properties

Database

Database that this collection belongs to.

public MySqlDatabase Database { get; }

Property Value

MySqlDatabase

Default

Default schema.

public MySqlSchema Default { get; }

Property Value

MySqlSchema

Methods

CreateSchema(SqlSchemaBuilder)

Creates a new SqlSchema instance.

protected override MySqlSchema CreateSchema(SqlSchemaBuilder builder)

Parameters

builder SqlSchemaBuilder

Source schema builder.

Returns

MySqlSchema

New SqlSchema instance.

Get(string)

Returns a schema with the provided name.

[Pure]
public MySqlSchema Get(string name)

Parameters

name string

Name of the schema to return.

Returns

MySqlSchema

Existing schema.

Exceptions

KeyNotFoundException

When schema does not exist.

GetEnumerator()

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

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

Returns

SqlObjectEnumerator<SqlSchema, MySqlSchema>

New SqlObjectEnumerator<TSource, TDestination> instance.

TryGet(string)

Attempts to return a schema with the provided name.

[Pure]
public MySqlSchema? TryGet(string name)

Parameters

name string

Name of the schema to return.

Returns

MySqlSchema

Existing schema or null when schema does not exist.