/// <summary> /// Create a table in this database. /// </summary> /// <param name="quorum">The first shard of the table is placed inside the <see cref="Scalien.Quorum"/>.</param> /// <param name="name">The name of the table.</param> /// <returns>The <see cref="Scalien.Table"/> object corresponding to the created table.</returns> /// <exception cref="SDBPException"/> /// <seealso cref="CreateTable(string)"/> public virtual Table CreateTable(string name, Quorum quorum) { int status = scaliendb_client.SDBP_CreateTable(client.cptr, databaseID, quorum.QuorumID, name); client.CheckResultStatus(status); return(GetTable(name)); }
/// <summary> /// Rename the table. /// </summary> /// <param name="newName">The new name of the table.</param> /// <exception cref="SDBPException"/> public virtual void RenameTable(string newName) { int status = scaliendb_client.SDBP_RenameTable(client.cptr, tableID, newName); client.CheckResultStatus(status); }