/// <summary> /// Create a schema /// </summary> /// <param name="schemaName"></param> /// <returns></returns> public async Task CreateSchemaAsync(string schemaName) { await this.ExecuteScalarAsync(DialectProvider.GetCreateSchemaStatement(schemaName, false)); }
public void CreateSchema(string schemaName) { this.ExecuteScalarAsync(DialectProvider.GetCreateSchemaStatement(schemaName, false)).Wait(); }
/// <summary> /// Create a schema if no exists /// </summary> /// <param name="schemaName">Name of the schema</param> /// <returns></returns> public async Task CreateSchemaIfNotExistsAsync(string schemaName) { await this.ExecuteScalarAsync(DialectProvider.GetCreateSchemaStatement(schemaName, true)); }
public void CreateSchemaIfNotExists(string schemaName) { this.ExecuteScalarAsync(DialectProvider.GetCreateSchemaStatement(schemaName, true)).Wait(); }