Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add vtab and chrono modules to docs #295

Merged
merged 2 commits into from
Apr 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ path = "libduckdb-sys"
version = "0.10.1"

[package.metadata.docs.rs]
features = []
features = ['vtab', 'chrono']
Maxxen marked this conversation as resolved.
Show resolved Hide resolved
all-features = false
no-default-features = true
default-target = "x86_64-unknown-linux-gnu"
Expand Down
2 changes: 1 addition & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub enum DefaultNullOrder {
}

/// duckdb configuration
/// Refer to https://github.com/duckdb/duckdb/blob/master/src/main/config.cpp
/// Refer to <https://github.com/duckdb/duckdb/blob/master/src/main/config.cpp>
#[derive(Default)]
pub struct Config {
config: Option<ffi::duckdb_config>,
Expand Down
1 change: 0 additions & 1 deletion src/vtab/arrow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ pub fn to_duckdb_logical_type(data_type: &DataType) -> Result<LogicalType, Box<d
///
/// * `batch` - A reference to the `RecordBatch` to be converted to a `DataChunk`.
/// * `chunk` - A mutable reference to the `DataChunk` to store the converted data.
/// ```
pub fn record_batch_to_duckdb_data_chunk(
batch: &RecordBatch,
chunk: &mut DataChunk,
Expand Down
4 changes: 2 additions & 2 deletions src/vtab/logical_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use std::{
use crate::ffi::*;

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

/// DuckDB Logical Type.
/// https://duckdb.org/docs/sql/data_types/overview
/// <https://duckdb.org/docs/sql/data_types/overview>
pub struct LogicalType {
pub(crate) ptr: duckdb_logical_type,
}
Expand Down
2 changes: 1 addition & 1 deletion src/vtab/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ pub trait Free {
/// Duckdb table function trait
///
/// See to the HelloVTab example for more details
/// https://duckdb.org/docs/api/c/table_functions
/// <https://duckdb.org/docs/api/c/table_functions>
pub trait VTab: Sized {
/// The data type of the bind data
type InitData: Sized + Free;
Expand Down
Loading