-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/Mause/duckdb-rs into struct
- Loading branch information
Showing
85 changed files
with
679 additions
and
322 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[submodule "libduckdb-sys/duckdb-sources"] | ||
path = libduckdb-sys/duckdb-sources | ||
[submodule "crates/libduckdb-sys/duckdb-sources"] | ||
path = crates/libduckdb-sys/duckdb-sources | ||
url = https://github.com/duckdb/duckdb | ||
update = none |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
[package] | ||
name = "duckdb" | ||
[workspace] | ||
resolver = "2" | ||
members = [ | ||
"crates/duckdb", | ||
"crates/libduckdb-sys", | ||
"crates/duckdb-loadable-macros" | ||
] | ||
|
||
[workspace.package] | ||
version = "0.10.2" | ||
authors = ["wangfenjin <[email protected]>"] | ||
edition = "2021" | ||
description = "Ergonomic wrapper for DuckDB" | ||
repository = "https://github.com/wangfenjin/duckdb-rs" | ||
homepage = "https://github.com/wangfenjin/duckdb-rs" | ||
documentation = "http://docs.rs/duckdb/" | ||
|
@@ -12,90 +18,46 @@ keywords = ["duckdb", "database", "ffi"] | |
license = "MIT" | ||
categories = ["database"] | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[lib] | ||
name = "duckdb" | ||
|
||
[workspace] | ||
members = ["libduckdb-sys", "duckdb-loadable-macros"] | ||
|
||
[features] | ||
default = [] | ||
bundled = ["libduckdb-sys/bundled"] | ||
httpfs = ["libduckdb-sys/httpfs", "bundled"] | ||
json = ["libduckdb-sys/json", "bundled"] | ||
parquet = ["libduckdb-sys/parquet", "bundled"] | ||
vtab = [] | ||
vtab-loadable = ["vtab", "duckdb-loadable-macros"] | ||
vtab-excel = ["vtab", "calamine"] | ||
vtab-arrow = ["vtab", "num"] | ||
appender-arrow = ["vtab-arrow"] | ||
vtab-full = ["vtab-excel", "vtab-arrow", "appender-arrow"] | ||
extensions-full = ["httpfs", "json", "parquet", "vtab-full"] | ||
buildtime_bindgen = ["libduckdb-sys/buildtime_bindgen"] | ||
modern-full = ["chrono", "serde_json", "url", "r2d2", "uuid", "polars"] | ||
polars = ["dep:polars"] | ||
chrono = ["dep:chrono", "num-integer"] | ||
|
||
[dependencies] | ||
# time = { version = "0.3.2", features = ["formatting", "parsing"], optional = true } | ||
hashlink = "0.8" | ||
chrono = { version = "0.4.22", optional = true } | ||
serde_json = { version = "1.0", optional = true } | ||
csv = { version = "1.1", optional = true } | ||
url = { version = "2.1", optional = true } | ||
lazy_static = { version = "1.4", optional = true } | ||
byteorder = { version = "1.3", features = ["i128"], optional = true } | ||
[workspace.dependencies] | ||
duckdb = { version = "0.10.2", path = "crates/duckdb" } | ||
libduckdb-sys = { version = "0.10.2", path = "crates/libduckdb-sys" } | ||
duckdb-loadable-macros = { version = "0.1.1", path = "crates/duckdb-loadable-macros" } | ||
autocfg = "1.0" | ||
bindgen = { version = "0.69", default-features = false } | ||
byteorder = "1.3" | ||
calamine = "0.22.0" | ||
cast = "0.3" | ||
cc = "1.0" | ||
chrono = "0.4.22" | ||
csv = "1.1" | ||
doc-comment = "0.3" | ||
fallible-iterator = "0.3" | ||
fallible-streaming-iterator = "0.1" | ||
flate2 = "1.0" | ||
hashlink = "0.8" | ||
lazy_static = "1.4" | ||
memchr = "2.3" | ||
uuid = { version = "1.0", optional = true } | ||
smallvec = "1.6.1" | ||
cast = { version = "0.3", features = ["std"] } | ||
arrow = { version = "51", default-features = false, features = ["prettyprint", "ffi"] } | ||
num = { version = "0.4", default-features = false } | ||
pkg-config = "0.3.24" | ||
polars = "0.35.4" | ||
polars-core = "0.35.4" | ||
pretty_assertions = "1.4.0" | ||
proc-macro2 = "1.0.56" | ||
quote = "1.0.21" | ||
r2d2 = "0.8.9" | ||
rand = "0.8.3" | ||
regex = "1.6" | ||
rust_decimal = "1.14" | ||
strum = { version = "0.25", features = ["derive"] } | ||
r2d2 = { version = "0.8.9", optional = true } | ||
calamine = { version = "0.22.0", optional = true } | ||
num = { version = "0.4", optional = true, default-features = false, features = ["std"] } | ||
duckdb-loadable-macros = { version = "0.1.1", path="./duckdb-loadable-macros", optional = true } | ||
polars = { version = "0.35.4", features = ["dtype-full"], optional = true} | ||
num-integer = {version = "0.1.46", optional = true} | ||
|
||
[dev-dependencies] | ||
doc-comment = "0.3" | ||
serde = "1.0" | ||
serde_json = "1.0" | ||
smallvec = "1.6.1" | ||
strum = "0.25" | ||
syn = "2.0.15" | ||
tar = "0.4.38" | ||
tempdir = "0.3.7" | ||
tempfile = "3.1.0" | ||
lazy_static = "1.4" | ||
regex = "1.6" | ||
uuid = { version = "1.0", features = ["v4"] } | ||
unicase = "2.6.0" | ||
rand = "0.8.3" | ||
tempdir = "0.3.7" | ||
polars-core = "0.35.4" | ||
pretty_assertions = "1.4.0" | ||
# criterion = "0.3" | ||
|
||
# [[bench]] | ||
# name = "data_types" | ||
# harness = false | ||
|
||
[dependencies.libduckdb-sys] | ||
path = "libduckdb-sys" | ||
version = "0.10.2" | ||
|
||
|
||
[package.metadata.docs.rs] | ||
features = ['vtab', 'chrono'] | ||
all-features = false | ||
no-default-features = true | ||
default-target = "x86_64-unknown-linux-gnu" | ||
|
||
[package.metadata.playground] | ||
features = [] | ||
all-features = false | ||
|
||
[[example]] | ||
name = "hello-ext" | ||
crate-type = ["cdylib"] | ||
required-features = ["vtab-loadable"] | ||
url = "2.1" | ||
uuid = "1.0" | ||
vcpkg = "0.2" | ||
arrow = { version = "51", default-features = false } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[package] | ||
name = "duckdb-loadable-macros" | ||
version = "0.1.1" | ||
authors.workspace = true | ||
edition.workspace = true | ||
license.workspace = true | ||
repository.workspace = true | ||
homepage.workspace = true | ||
keywords.workspace = true | ||
readme.workspace = true | ||
categories = ["external-ffi-bindings", "database"] | ||
description = "Native bindings to the libduckdb library, C API; build loadable extensions" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
proc-macro2 = { workspace = true } | ||
quote = { workspace = true } | ||
syn = { workspace = true, features = ["extra-traits", "full", "fold", "parsing"] } | ||
|
||
[lib] | ||
proc-macro = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../LICENSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../README.md |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
[package] | ||
name = "duckdb" | ||
version = "0.10.2" | ||
authors.workspace = true | ||
edition.workspace = true | ||
repository.workspace = true | ||
homepage.workspace = true | ||
documentation.workspace = true | ||
readme.workspace = true | ||
keywords.workspace = true | ||
license.workspace = true | ||
categories.workspace = true | ||
description = "Ergonomic wrapper for DuckDB" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[lib] | ||
name = "duckdb" | ||
|
||
[features] | ||
default = [] | ||
bundled = ["libduckdb-sys/bundled"] | ||
httpfs = ["libduckdb-sys/httpfs", "bundled"] | ||
json = ["libduckdb-sys/json", "bundled"] | ||
parquet = ["libduckdb-sys/parquet", "bundled"] | ||
openssl_vendored = ["libduckdb-sys/openssl_vendored", "bundled"] | ||
unstable_boringssl = ["libduckdb-sys/unstable_boringssl", "bundled"] | ||
openssl_bindgen = ["libduckdb-sys/openssl_bindgen", "bundled"] | ||
vtab = [] | ||
vtab-loadable = ["vtab", "duckdb-loadable-macros"] | ||
vtab-excel = ["vtab", "calamine"] | ||
vtab-arrow = ["vtab", "num"] | ||
appender-arrow = ["vtab-arrow"] | ||
vtab-full = ["vtab-excel", "vtab-arrow", "appender-arrow"] | ||
extensions-full = ["httpfs", "json", "parquet", "vtab-full"] | ||
buildtime_bindgen = ["libduckdb-sys/buildtime_bindgen"] | ||
modern-full = ["chrono", "serde_json", "url", "r2d2", "uuid", "polars"] | ||
polars = ["dep:polars"] | ||
|
||
[dependencies] | ||
libduckdb-sys = { workspace = true } | ||
hashlink = { workspace = true } | ||
chrono = { workspace = true, optional = true } | ||
serde_json = { workspace = true, optional = true } | ||
csv = { workspace = true, optional = true } | ||
url = { workspace = true, optional = true } | ||
lazy_static = { workspace = true, optional = true } | ||
byteorder = { workspace = true, features = ["i128"], optional = true } | ||
fallible-iterator = { workspace = true } | ||
fallible-streaming-iterator = { workspace = true } | ||
memchr = { workspace = true } | ||
uuid = { workspace = true, optional = true } | ||
smallvec = { workspace = true } | ||
cast = { workspace = true, features = ["std"] } | ||
arrow = { workspace = true, features = ["prettyprint", "ffi"] } | ||
rust_decimal = { workspace = true } | ||
strum = { workspace = true, features = ["derive"] } | ||
r2d2 = { workspace = true, optional = true } | ||
calamine = { workspace = true, optional = true } | ||
num = { workspace = true, features = ["std"], optional = true } | ||
duckdb-loadable-macros = { workspace = true, optional = true } | ||
polars = { workspace = true, features = ["dtype-full"], optional = true } | ||
num-integer = {version = "0.1.46"} | ||
|
||
[dev-dependencies] | ||
doc-comment = { workspace = true } | ||
tempfile = { workspace = true } | ||
lazy_static = { workspace = true } | ||
regex = { workspace = true } | ||
uuid = { workspace = true, features = ["v4"] } | ||
unicase = { workspace = true } | ||
rand = { workspace = true } | ||
tempdir = { workspace = true } | ||
polars-core = { workspace = true } | ||
pretty_assertions = { workspace = true } | ||
# criterion = "0.3" | ||
|
||
# [[bench]] | ||
# name = "data_types" | ||
# harness = false | ||
|
||
|
||
[package.metadata.docs.rs] | ||
features = [] | ||
all-features = false | ||
no-default-features = true | ||
default-target = "x86_64-unknown-linux-gnu" | ||
|
||
[package.metadata.playground] | ||
features = [] | ||
all-features = false | ||
|
||
[[example]] | ||
name = "hello-ext" | ||
crate-type = ["cdylib"] | ||
required-features = ["vtab-loadable"] |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.