diff --git a/.github/workflows/rust-audit.yml b/.github/workflows/rust-audit.yml index 61251a1..aaaae8f 100644 --- a/.github/workflows/rust-audit.yml +++ b/.github/workflows/rust-audit.yml @@ -17,7 +17,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Audit Check # https://github.com/rustsec/audit-check/issues/2 - uses: rustsec/audit-check@master + - run: cargo update + - name: Audit Check + uses: rustsec/audit-check@v2.0.0 with: - token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/CODEOWNERS b/CODEOWNERS index a345de4..9ee6f47 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -14,4 +14,4 @@ # This should make it easy to add new rules without breaking existing ones. # Global rule: -* @marvin-hansen @jovezhong +* @marvin-hansen @jovezhong @zliang-min diff --git a/Cargo.toml b/Cargo.toml index 5d76d41..6996106 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -34,7 +34,7 @@ path = "examples/remove/main.rs" [dependencies] -clickhouse = { version = "0.13", features = ["watch"] } +clickhouse = { version = "0.13", features = ["inserter", "watch"] } clickhouse-derive = { version = "0.2" } tokio = { version = "1", features = ["rt-multi-thread", "macros"] } serde = { version = "1.0.196", features = ["derive"] } diff --git a/src/lib/insert.rs b/src/lib/insert.rs index 7a18781..4696d06 100644 --- a/src/lib/insert.rs +++ b/src/lib/insert.rs @@ -90,10 +90,10 @@ impl ProtonClient { /// .inserter("table_name") /// .await /// .expect("Failed to create inserter") - /// .with_max_entries(100_000); // The maximum number of rows in one INSERT statement. + /// .with_max_rows(100_000); // The maximum number of rows in one INSERT statement. /// /// for i in 0..1000 { - /// inserter.write(&MyRow { no: i, name: "foo" }).await.expect("Failed to insert row"); + /// inserter.write(&MyRow { no: i, name: "foo" }).expect("Failed to insert row"); /// inserter.commit().await.expect("Failed to commit"); // Checks limits and ends a current INSERT if they are reached. /// } ///