Skip to content

Commit d1ea4cb

Browse files
authored
add vtab and chrono modules to docs (#295)
* add features to document list * apply clippy suggestions
1 parent 5407c0e commit d1ea4cb

File tree

5 files changed

+5
-6
lines changed

5 files changed

+5
-6
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ path = "libduckdb-sys"
8585
version = "0.10.1"
8686

8787
[package.metadata.docs.rs]
88-
features = []
88+
features = ['vtab', 'chrono']
8989
all-features = false
9090
no-default-features = true
9191
default-target = "x86_64-unknown-linux-gnu"

src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ pub enum DefaultNullOrder {
4141
}
4242

4343
/// duckdb configuration
44-
/// Refer to https://github.com/duckdb/duckdb/blob/master/src/main/config.cpp
44+
/// Refer to <https://github.com/duckdb/duckdb/blob/master/src/main/config.cpp>
4545
#[derive(Default)]
4646
pub struct Config {
4747
config: Option<ffi::duckdb_config>,

src/vtab/arrow.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,6 @@ pub fn to_duckdb_logical_type(data_type: &DataType) -> Result<LogicalType, Box<d
208208
///
209209
/// * `batch` - A reference to the `RecordBatch` to be converted to a `DataChunk`.
210210
/// * `chunk` - A mutable reference to the `DataChunk` to store the converted data.
211-
/// ```
212211
pub fn record_batch_to_duckdb_data_chunk(
213212
batch: &RecordBatch,
214213
chunk: &mut DataChunk,

src/vtab/logical_type.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use std::{
66
use crate::ffi::*;
77

88
/// Logical Type Id
9-
/// https://duckdb.org/docs/api/c/types
9+
/// <https://duckdb.org/docs/api/c/types>
1010
#[repr(u32)]
1111
#[derive(Debug, PartialEq, Eq)]
1212
pub enum LogicalTypeId {
@@ -109,7 +109,7 @@ impl From<u32> for LogicalTypeId {
109109
}
110110

111111
/// DuckDB Logical Type.
112-
/// https://duckdb.org/docs/sql/data_types/overview
112+
/// <https://duckdb.org/docs/sql/data_types/overview>
113113
pub struct LogicalType {
114114
pub(crate) ptr: duckdb_logical_type,
115115
}

src/vtab/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ pub trait Free {
5959
/// Duckdb table function trait
6060
///
6161
/// See to the HelloVTab example for more details
62-
/// https://duckdb.org/docs/api/c/table_functions
62+
/// <https://duckdb.org/docs/api/c/table_functions>
6363
pub trait VTab: Sized {
6464
/// The data type of the bind data
6565
type InitData: Sized + Free;

0 commit comments

Comments
 (0)