Comments (5)
It's a reasonable requirement, but may not easy to implement as duckdb don't have a pre-release build for us to depends on, which means we may need to checkout the branch or commit-id to build the version we need, this may not that easy.
For now my suggested solution might be use the buildtime_bindgen
feature, and bring your own duckdb release and header file.
from duckdb-rs.
Currently our build.rs depends on the amalgamation
duckdb.cpp to build, if we don't have that file, it means we need to involve cmake in the build process, which will make the build.rs much more complex than current solution
from duckdb-rs.
Okay. That makes sense. I understand it can complicate the process and that may be undesirable. As an FYI, though, it's not necessary to involve CMake or to "build" anything:
git clone https://github.com/duckdb/duckdb
cd duckdb
python3 scripts/amalgamation.py
The above will create src/amalgamation/duckdb.{cpp,hpp}
and runs in a few seconds (but does require Python 3, which may be a reasonable requirement to already be installed).
I'm fine doing this myself, though. Is there an example of using buildtime_bindgen
and pointing to those files (or that directory) I can reference?
Thanks!
from duckdb-rs.
You could refer to the CI process https://github.com/wangfenjin/duckdb-rs/blob/main/.github/workflows/rust.yaml#L37-L60
The idea is download the binary and export the path, and then use the buildtime_bindgen
feature will do codegen using the exported header file.
For your case is compile the lib and copy the binary to somewhere and export the path
from duckdb-rs.
Close as it's not in the scope of this project
from duckdb-rs.
Related Issues (20)
- u64 not being casted to UBigInt and being casted to BigInt instead HOT 1
- Feature request - support Timestamp data types in the appender api
- column_count can panic
- Assertion failed: types == input.GetTypes() in column_data_collection.cpp, line 718
- impl Drop for Appender has unnecessary unsafe calls.
- Listing tables in rust never iterates HOT 2
- duckdb-rs 0.10.0 compilation failed on windows 11
- duckdb-rs 0.10 is failing on macOS Venture (13.5.2) with code 14 HOT 2
- `DataStruct.struct_vector(i).child(j)` leads to assertion failure
- No support for `UHUGEINT` (`u128`) in `FromSql` trait HOT 2
- Proper way of creating a static connection pool with r2d2 HOT 2
- The latest rust crate build for MacOS fails with default settings HOT 1
- Compared to sqlite, query execution speed is several times slower in rust code HOT 13
- BUG: Panic on `SELECT * FROM arrow(?, ?)` when using `TimestampMillisecondArray` arrow type. HOT 5
- Segfault when using `appender` with Generated Columns
- Question: If an INSERT statement includes a RETURNING Clause, how can I retrieve the returned content? HOT 4
- Support for Decimal128 & Decimal256 without downcasting to f64 HOT 5
- update link to param types in rust client api
- Pivot not working with prepared statements
- Segmentation fault on `try_clone` misuse HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from duckdb-rs.