Skip to content

Commit

Permalink
Refactor crate::OFtable
Browse files Browse the repository at this point in the history
  • Loading branch information
Codetector1374 committed Jul 26, 2024
1 parent d3f8a64 commit 40f3d2e
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 1 deletion.
10 changes: 10 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ indicatif = "0.17.8"
num_enum = "0.7.2"
pretty-hex = "0.4.1"
simple_endian = "0.3.2"
sqlparser = "0.49.0"
tracing = "0.1.40"
tracing-subscriber = "0.3.18"

Expand Down
Empty file added src/innodb/table/field.rs
Empty file.
5 changes: 4 additions & 1 deletion src/innodb/table.rs → src/innodb/table/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
pub mod field;
pub mod row;

use anyhow::Result;
use std::{collections::HashMap, i64, sync::Arc};
use tracing::{trace, warn};
Expand Down Expand Up @@ -290,7 +293,7 @@ mod test {
#[test]
fn test_field_parse_int() {
let buf = [0xFFu8, 0xFF, 0xFF];
let mut field = Field {
let field = Field {
name: Default::default(),
field_type: FieldType::MediumInt,
nullable: false,
Expand Down
Empty file added src/innodb/table/row.rs
Empty file.

0 comments on commit 40f3d2e

Please sign in to comment.