/// <summary>
 /// Create a schema
 /// </summary>
 /// <param name="schemaName"></param>
 /// <returns></returns>
 public async Task CreateSchemaAsync(string schemaName)
 {
     await this.ExecuteScalarAsync(DialectProvider.GetCreateSchemaStatement(schemaName, false));
 }
Exemple #2
0
 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));
 }
Exemple #4
0
 public void CreateSchemaIfNotExists(string schemaName)
 {
     this.ExecuteScalarAsync(DialectProvider.GetCreateSchemaStatement(schemaName, true)).Wait();
 }