public Sqlite3MasterTable(Sqlite3Database db, Sqlite3Table table) { Tables = new List <Sqlite3SchemaRow>(); IEnumerable <Sqlite3Row> rows = table.EnumerateRows(); foreach (Sqlite3Row row in rows) { Sqlite3SchemaRow other = new Sqlite3SchemaRow(); other.Database = db; row.TryGetOrdinal(0, out string str); other.Type = str; row.TryGetOrdinal(1, out str); other.Name = str; row.TryGetOrdinal(2, out str); other.TableName = str; row.TryGetOrdinal(3, out long lng); other.RootPage = (uint)lng; row.TryGetOrdinal(4, out str); other.Sql = str; Tables.Add(other); } }
internal Sqlite3Table(ReaderBase reader, BTreePage rootPage, Sqlite3SchemaRow table) { SchemaDefinition = table; _reader = reader; RootPage = rootPage; }