public wDBTable(string name, DatabaseClient root) { rootLocation = root.currentFolderLocation; dbc = root.Clone(); dbc.SelectDB("$" + name); dbc.SetCurrentDBAsRoot(); dbc.ReturnToRoot(); }
public static void CreateTable(string tableName, DatabaseClient parentDB) { if (parentDB.ExistDB("$" + tableName) == DatabaseClient.DBResponse.Exists) return; parentDB.CreateDB("$" + tableName); DatabaseClient dbc = parentDB.Clone(); dbc.SelectDB("$" + tableName); dbc.SetValue(".rowsAdded", "0"); }
public wDBTableRow(DatabaseClient dbc) { this.dbc = dbc.Clone(); }
public DatabaseClient Clone() { DatabaseClient copy = new DatabaseClient(this.dbName); copy.defaultFolderStack = new List<string>(this.defaultFolderStack.ToArray()); copy.folderStack = new List<string>(this.folderStack.ToArray()); return copy; }