> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinetica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# BatchingSqlxStats

> BatchingSqlxStats — Kinetica Rust API

[gpudb\_api](https://docs.kinetica.com/content/api/rust/index.md)::<wbr />[sqlx\_support](https://docs.kinetica.com/content/api/rust/sqlx_support/index.md)
[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/sqlx_support.rs#L1173-L1186)&#x20;

<pre>`pub struct BatchingSqlxStats {    pub insert_count: u64,    pub records_inserted: i64,    pub records_updated: i64,    pub flush_count: u64,    pub elapsed_ms: u64,    pub records_per_second: f64,}`</pre>

Statistics from batching operations.

Fields
`insert_count: u64`

Number of INSERT statements processed

`records_inserted: i64`

Total records inserted

`records_updated: i64`

Total records updated (for upsert)

`flush_count: u64`

Number of flush operations

`elapsed_ms: u64`

Total elapsed time in milliseconds

`records_per_second: f64`

Records per second throughput

## Trait Implementations

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/sqlx_support.rs#L1172)
impl [Clone](https://doc.rust-lang.org/1.98.1/core/clone/trait.Clone.html) for [BatchingSqlxStats](https://docs.kinetica.com/content/api/rust/sqlx_support/struct.BatchingSqlxStats.md)

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/sqlx_support.rs#L1172)
fn [clone](https://doc.rust-lang.org/1.98.1/core/clone/trait.Clone.html#tymethod.clone)(\&self) -> [BatchingSqlxStats](https://docs.kinetica.com/content/api/rust/sqlx_support/struct.BatchingSqlxStats.md)

Returns a duplicate of the value. [Read more](https://doc.rust-lang.org/1.98.1/core/clone/trait.Clone.html#tymethod.clone)

1.0.0 (const: [unstable](https://github.com/rust-lang/rust/issues/142757)) · [Source](https://doc.rust-lang.org/1.98.1/src/core/clone.rs.html#245-247)
fn [clone\_from](https://doc.rust-lang.org/1.98.1/core/clone/trait.Clone.html#method.clone_from)(\&mut self, source: \&Self)

Performs copy-assignment from `source`. [Read more](https://doc.rust-lang.org/1.98.1/core/clone/trait.Clone.html#method.clone_from)

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/sqlx_support.rs#L1172)
impl [Debug](https://doc.rust-lang.org/1.98.1/core/fmt/trait.Debug.html) for [BatchingSqlxStats](https://docs.kinetica.com/content/api/rust/sqlx_support/struct.BatchingSqlxStats.md)

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/sqlx_support.rs#L1172)
fn [fmt](https://doc.rust-lang.org/1.98.1/core/fmt/trait.Debug.html#tymethod.fmt)(\&self, f: \&mut [Formatter](https://doc.rust-lang.org/1.98.1/core/fmt/struct.Formatter.html)\<'\_>) -> [Result](https://doc.rust-lang.org/1.98.1/core/fmt/type.Result.html)

Formats the value using the given formatter. [Read more](https://doc.rust-lang.org/1.98.1/core/fmt/trait.Debug.html#tymethod.fmt)

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/sqlx_support.rs#L1172)
impl [Default](https://doc.rust-lang.org/1.98.1/core/default/trait.Default.html) for [BatchingSqlxStats](https://docs.kinetica.com/content/api/rust/sqlx_support/struct.BatchingSqlxStats.md)

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/sqlx_support.rs#L1172)
fn [default](https://doc.rust-lang.org/1.98.1/core/default/trait.Default.html#tymethod.default)() -> [BatchingSqlxStats](https://docs.kinetica.com/content/api/rust/sqlx_support/struct.BatchingSqlxStats.md)

Returns the “default value” for a type. [Read more](https://doc.rust-lang.org/1.98.1/core/default/trait.Default.html#tymethod.default)

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/sqlx_support.rs#L1188-L1199)
impl [From](https://doc.rust-lang.org/1.98.1/core/convert/trait.From.html)\<[BatchingStats](https://docs.kinetica.com/content/api/rust/sql/struct.BatchingStats.md)> for [BatchingSqlxStats](https://docs.kinetica.com/content/api/rust/sqlx_support/struct.BatchingSqlxStats.md)

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/sqlx_support.rs#L1189-L1198)
fn [from](https://doc.rust-lang.org/1.98.1/core/convert/trait.From.html#tymethod.from)(s: [BatchingStats](https://docs.kinetica.com/content/api/rust/sql/struct.BatchingStats.md)) -> Self

Converts to this type from the input type.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.