Skip to content

Commit c838f22

Browse files
committed
fix: docs
Signed-off-by: if0ne <[email protected]>
1 parent f4f2deb commit c838f22

File tree

9 files changed

+24
-24
lines changed

9 files changed

+24
-24
lines changed

rust/core/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@
3131
//! # Native Rust drivers
3232
//!
3333
//! Native Rust drivers will implement the abstract API consisting of the traits:
34-
//! - [Driver]
35-
//! - [Database]
36-
//! - [Connection]
37-
//! - [Statement]
34+
//! - [AsyncDriver]
35+
//! - [AsyncDatabase]
36+
//! - [AsyncConnection]
37+
//! - [AsyncStatement]
3838
//!
3939
//! For drivers implemented in Rust, using these will be more efficient and
4040
//! safe, since it avoids the overhead of going through C FFI.

rust/core/src/non_blocking.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ use crate::error::Result;
2424
use crate::options::{self, *};
2525

2626
/// Each data partition is described by an opaque byte array and can be
27-
/// retrieved with [Connection::read_partition].
27+
/// retrieved with [AsyncConnection::read_partition].
2828
pub type Partitions = Vec<Vec<u8>>;
2929

30-
/// A partitioned result set as returned by [Statement::execute_partitions].
30+
/// A partitioned result set as returned by [AsyncStatement::execute_partitions].
3131
#[derive(Debug, PartialEq, Eq)]
3232
pub struct PartitionedResult {
3333
/// The result partitions.

rust/core/src/options.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ impl TryFrom<u32> for InfoCode {
218218
}
219219
}
220220

221-
/// Depth parameter for [get_objects][crate::Connection::get_objects] method.
221+
/// Depth parameter for [get_objects][crate::AsyncConnection::get_objects] method.
222222
#[derive(Debug)]
223223
pub enum ObjectDepth {
224224
/// Catalogs, schemas, tables, and columns.
@@ -374,19 +374,19 @@ pub enum OptionStatement {
374374
Temporary,
375375
/// Whether query execution is nonblocking. By default, execution is blocking.
376376
///
377-
/// When enabled, [execute_partitions][crate::Statement::execute_partitions]
377+
/// When enabled, [execute_partitions][crate::AsyncStatement::execute_partitions]
378378
/// will return partitions as soon as they are available, instead of returning
379379
/// them all at the end. When there are no more to return, it will return an
380-
/// empty set of partitions. The methods [execute][crate::Statement::execute],
381-
/// [execute_schema][crate::Statement::execute_schema] and
382-
/// [execute_update][crate::Statement::execute_update] are not affected.
380+
/// empty set of partitions. The methods [execute][crate::AsyncStatement::execute],
381+
/// [execute_schema][crate::AsyncStatement::execute_schema] and
382+
/// [execute_update][crate::AsyncStatement::execute_update] are not affected.
383383
///
384384
/// # Since
385385
///
386386
/// ADBC API revision 1.1.0
387387
Incremental,
388388
/// Get the progress of a query. It's a read-only option that should be
389-
/// read with [get_option_double][crate::Optionable::get_option_double].
389+
/// read with [get_option_double][crate::AsyncOptionable::get_option_double].
390390
///
391391
/// The value is not necessarily in any particular range or have any
392392
/// particular units. For example, it might be a percentage, bytes of data,
@@ -400,7 +400,7 @@ pub enum OptionStatement {
400400
/// ADBC API revision 1.1.0
401401
Progress,
402402
/// Get the maximum progress of a query. It's a read-only option that should be
403-
/// read with [get_option_double][crate::Optionable::get_option_double].
403+
/// read with [get_option_double][crate::AsyncOptionable::get_option_double].
404404
///
405405
/// This is the value of [OptionStatement::Progress] for a completed query.
406406
/// If not supported, or if the value is nonpositive, then the maximum is not

rust/core/src/schemas.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use std::sync::{Arc, LazyLock};
2121

2222
use arrow_schema::{DataType, Field, Schema, SchemaRef, UnionFields, UnionMode};
2323

24-
/// Schema of the data returned by [get_table_types][crate::Connection::get_table_types].
24+
/// Schema of the data returned by [get_table_types][crate::AsyncConnection::get_table_types].
2525
pub static GET_TABLE_TYPES_SCHEMA: LazyLock<SchemaRef> = LazyLock::new(|| {
2626
Arc::new(Schema::new(vec![Field::new(
2727
"table_type",
@@ -30,7 +30,7 @@ pub static GET_TABLE_TYPES_SCHEMA: LazyLock<SchemaRef> = LazyLock::new(|| {
3030
)]))
3131
});
3232

33-
/// Schema of the data returned by [get_info][crate::Connection::get_info].
33+
/// Schema of the data returned by [get_info][crate::AsyncConnection::get_info].
3434
pub static GET_INFO_SCHEMA: LazyLock<SchemaRef> = LazyLock::new(|| {
3535
let info_schema = DataType::Union(
3636
UnionFields::new(
@@ -64,7 +64,7 @@ pub static GET_INFO_SCHEMA: LazyLock<SchemaRef> = LazyLock::new(|| {
6464
]))
6565
});
6666

67-
/// Schema of data returned by [get_statistic_names][crate::Connection::get_statistic_names].
67+
/// Schema of data returned by [get_statistic_names][crate::AsyncConnection::get_statistic_names].
6868
pub static GET_STATISTIC_NAMES_SCHEMA: LazyLock<SchemaRef> = LazyLock::new(|| {
6969
Arc::new(Schema::new(vec![
7070
Field::new("statistic_name", DataType::Utf8, false),
@@ -114,7 +114,7 @@ pub static STATISTICS_DB_SCHEMA_SCHEMA: LazyLock<DataType> = LazyLock::new(|| {
114114
)
115115
});
116116

117-
/// Schema of data returned by [get_statistics][crate::Connection::get_statistics].
117+
/// Schema of data returned by [get_statistics][crate::AsyncConnection::get_statistics].
118118
pub static GET_STATISTICS_SCHEMA: LazyLock<SchemaRef> = LazyLock::new(|| {
119119
Arc::new(Schema::new(vec![
120120
Field::new("catalog_name", DataType::Utf8, true),
@@ -219,7 +219,7 @@ pub static OBJECTS_DB_SCHEMA_SCHEMA: LazyLock<DataType> = LazyLock::new(|| {
219219
)
220220
});
221221

222-
/// Schema of data returned by [get_objects][crate::Connection::get_objects].
222+
/// Schema of data returned by [get_objects][crate::AsyncConnection::get_objects].
223223
pub static GET_OBJECTS_SCHEMA: LazyLock<SchemaRef> = LazyLock::new(|| {
224224
Arc::new(Schema::new(vec![
225225
Field::new("catalog_name", DataType::Utf8, true),

rust/driver/datafusion/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727

2828
## Example Usage
2929

30-
```
30+
```rust
3131
use adbc_core::driver_manager::ManagedDriver;
3232
use adbc_core::options::AdbcVersion;
33-
use adbc_core::{Connection, Database, Driver, Statement};
33+
use adbc_core::blocking::{Connection, Database, Driver, Statement};
3434
use arrow_cast::pretty::print_batches;
3535
use arrow_array::RecordBatch;
3636

rust/driver/snowflake/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ driver, based on the
3131
## Example
3232

3333
```rust,no_run
34-
use adbc_core::{Connection, Statement};
34+
use adbc_core::blocking::{Connection, Statement};
3535
use adbc_snowflake::{connection, database, Driver};
3636
use arrow_array::{cast::AsArray, types::Decimal128Type};
3737

rust/driver/snowflake/src/database/builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ impl Builder {
490490
pub const CLIENT_STORE_TEMP_CREDS_ENV: &str =
491491
"ADBC_SNOWFLAKE_SQL_CLIENT_OPTION_STORE_TEMP_CREDS";
492492

493-
/// See [`Self::]
493+
/// See [`Self::client_identity_provider`]
494494
pub const CLIENT_IDENTITY_PROVIDER_ENV: &str =
495495
"ADBC_SNOWFLAKE_SQL_CLIENT_OPTION_IDENTITY_PROVIDER";
496496

rust/driver_manager/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
//! # use arrow_select::concat::concat_batches;
5151
//! # use adbc_core::{
5252
//! # options::{AdbcVersion, OptionDatabase, OptionStatement},
53-
//! # Connection, Database, Driver, Statement, Optionable
53+
//! # blocking::{Connection, Database, Driver, Statement, Optionable}
5454
//! # };
5555
//! # use adbc_driver_manager::ManagedDriver;
5656
//! # fn main() -> Result<(), Box<dyn std::error::Error>> {

rust/ffi/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
//!
3535
//! The driver exporter allows exposing native Rust drivers as C drivers to be
3636
//! used by other languages via their own driver manager. Once you have an
37-
//! implementation of [adbc_core::Driver], provided that it also implements [Default], you
37+
//! implementation of [adbc_core::blocking::Driver], provided that it also implements [Default], you
3838
//! can build it as an object file implementing the C API with the
3939
//! [export_driver] macro.
4040

0 commit comments

Comments
 (0)