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

feat: add bindings for Scalar function API #348

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

rustyconover
Copy link

Add some initial bindings for the scalar function C API.

@Mytherin
Copy link
Contributor

Thanks for the PR! Could you rebase with main?

@@ -14,6 +14,24 @@ pub use bindings::*;
pub const DuckDBError: duckdb_state = duckdb_state_DuckDBError;
pub const DuckDBSuccess: duckdb_state = duckdb_state_DuckDBSuccess;

use std::slice;
impl From<&duckdb_string_t> for String {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DuckDbString from #361 might be beneficial here, instead of preemptively converting to Rust String

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants