Example #1
0
        private void DumpTables(SqliteFileParser parser)
        {
            using (var reader = new SqliteFileReader(parser))
            {
                reader.MasterTableRecordRead += (s, e) => Console.WriteLine($"'{e.Record.Type}'\t'{e.Record.Name}'\t'{e.Record.TableName}'\t{e.Record.RootPage}\t'{e.Record.Sql}'");

                reader.ReadMasterTable();
            }
        }
Example #2
0
        private void DumpTable(SqliteFileParser parser, String tableName)
        {
            using (var reader = new SqliteFileReader(parser))
            {
                reader.TableRecordRead += (s, e) =>
                {
                    foreach (var field in e.Fields)
                    {
                        Console.Write($"'{field.Value}'\t");
                    }
                    Console.WriteLine();
                };

                reader.ReadTable(tableName);
            }
        }