public void ReadSchemaOfTable(AbstractTable table) { var schema = conn_.GetSchema(table.TableName); foreach (var col in schema.Columns) { } }
public BufferedTable(AbstractTable aTable) : base(aTable.OwnerDB) { table = aTable; // カラムコピー for (int i = 0; i < table.ColumnList.Count; i++) { var col = table.ColumnList[i]; if (col.Name == "id") { continue; } base.AddColumn(col.Name, col.Type, col.Option); } }
public T BackupTable <T>(string baseName, int year, bool createWhenNotExist = false) where T : AbstractTable { string tableName = "backup" + year + "_" + baseName; AbstractTable table = Table(tableName); if (table == null) { if (ExistTable(tableName) || createWhenNotExist) { Type type = typeof(T); System.Reflection.ConstructorInfo ctor = type.GetConstructor(new Type[] { typeof(AbstractDatabase), typeof(string) }); table = (T)ctor.Invoke(new object[] { this, tableName }); AddTable(tableName, table); table.InitTable(createWhenNotExist); } } return(table as T); }
public Row(AbstractTable table) { columns_ = new Dictionary <string, object>(); Table = table; }
protected void AddTable(string tableName, AbstractTable table) { tables_[tableName] = table; }