metaswitch / cassandra-sys-rs Goto Github PK
View Code? Open in Web Editor NEWSimple mostly-autogenerated wrapper around the DataStax C/C++ CQL driver.
License: Apache License 2.0
Simple mostly-autogenerated wrapper around the DataStax C/C++ CQL driver.
License: Apache License 2.0
Hello.
Trying to build cassandra-cpp
on macos I get:
cc "-m64" "-L" "$HOME/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "$PROJECT/target/debug/deps/rs_scroller-d39e8fcc964e37b9.1qnj6s9830d6r3y4.rcgu.o" "$PROJECT/target/debug/deps/rs_scroller-d39e8fcc964e37b9.2km8au3oo5rblp3j.rcgu.o" "$PROJECT/target/debug/deps/rs_scroller-d39e8fcc964e37b9.38uecmwb2fnturi4.rcgu.o" "$PROJECT/target/debug/deps/rs_scroller-d39e8fcc964e37b9.44uxcephuzfifzah.rcgu.o" "$PROJECT/target/debug/deps/rs_scroller-d39e8fcc964e37b9.64j2o7n9o8cqkb8.rcgu.o" "-o" "$PROJECT/target/debug/deps/rs_scroller-d39e8fcc964e37b9" "$PROJECT/target/debug/deps/rs_scroller-d39e8fcc964e37b9.4o3e8l6pgl6azvvw.rcgu.o" "-Wl,-dead_strip" "-nodefaultlibs" "-L" "$PROJECT/target/debug/deps" "-L" "/usr/lib" "-L" "/usr/local/Cellar/openssl/1.0.2r/lib" "-L" "/usr/lib/x86_64-linux-gnu" "-L" "/usr/local/lib/x86_64-linux-gnu" "-L" "/usr/local/lib64" "-L" "/usr/local/lib" "-L" "/usr/lib64/" "-L" "/usr/lib/" "-L" "/usr/lib/x86_64-linux-gnu" "-L" "/usr/local/lib/x86_64-linux-gnu" "-L" "/usr/local/lib64" "-L" "/usr/local/lib" "-L" "/usr/lib64/" "-L" "$PROJECT/target/debug/build/decimal-285435f0a574f7d3/out" "-L" "$HOME/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "$PROJECT/target/debug/deps/libcassandra_cpp-c4f071033b509a6c.rlib" "$PROJECT/target/debug/deps/liberror_chain-9c4bcc9c2cb9a03d.rlib" "$PROJECT/target/debug/deps/libbacktrace-cf7352330f54a870.rlib" "$PROJECT/target/debug/deps/librustc_demangle-b8b81e046f6fbd17.rlib" "$PROJECT/target/debug/deps/libcfg_if-8e10b3381722fba2.rlib" "$PROJECT/target/debug/deps/libcassandra_cpp_sys-e973b7aab8ddf2c9.rlib" "$PROJECT/target/debug/deps/libfutures-7ab953d11b2e1dbd.rlib" "$PROJECT/target/debug/deps/libuuid-75133e9e80dc36ad.rlib" "$PROJECT/target/debug/deps/libtime-4b38edaff19428bf.rlib" "$PROJECT/target/debug/deps/libdecimal-0adaa612c7665d20.rlib" "$PROJECT/target/debug/deps/libserde-2513191d4879d6ff.rlib" "$PROJECT/target/debug/deps/librustc_serialize-5668abe9247a5d09.rlib" "$PROJECT/target/debug/deps/libord_subset-31daa916131e4804.rlib" "$PROJECT/target/debug/deps/liblibc-104dc3581e71f1ec.rlib" "$PROJECT/target/debug/deps/libbitflags-8346604936f544cf.rlib" "$PROJECT/target/debug/deps/libslog-c9c9aef676e33be9.rlib" "$HOME/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libstd-64d1544b9dc8a8d7.rlib" "$HOME/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libpanic_unwind-47702365139f147e.rlib" "$HOME/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libbacktrace_sys-0aefa3a2bfa44649.rlib" "$HOME/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libunwind-c2b22c88cacffeb6.rlib" "$HOME/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_demangle-fca4484aa9be2d09.rlib" "$HOME/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/liblibc-4728c64ee20d89f8.rlib" "$HOME/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/liballoc-1722fbf72ce989c9.rlib" "$HOME/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_core-0836ff3f3d6a6ee6.rlib" "$HOME/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcore-91c9fbc323ad09b7.rlib" "$HOME/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcompiler_builtins-43b96ba2cdcc7cb3.rlib" "-lcassandra" "-lcrypto" "-lssl" "-lstdc++" "-luv" "-lcassandra" "-lcrypto" "-lssl" "-lstdc++" "-luv" "-lSystem" "-lresolv" "-lc" "-lm"
ld: warning: directory not found for option '-L/usr/lib/x86_64-linux-gnu'
ld: warning: directory not found for option '-L/usr/local/lib/x86_64-linux-gnu'
ld: warning: directory not found for option '-L/usr/local/lib64'
ld: warning: directory not found for option '-L/usr/lib64/'
ld: warning: directory not found for option '-L/usr/lib/x86_64-linux-gnu'
ld: warning: directory not found for option '-L/usr/local/lib/x86_64-linux-gnu'
ld: warning: directory not found for option '-L/usr/local/lib64'
ld: warning: directory not found for option '-L/usr/lib64/'
ld: library not found for -lstdc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Removing stdc++
dependency works. I don't think it's needed on macos at all.
Also, please note that both cassandra-cpp and cassandra-sys-rs have the same build.rs
files. I don't think that's necessary.
Hi, itβs me again.
The question I want to ask this time is, if there is a table that needs to use multiple primary keys as conditions to query, is the index field of cass_statement_bind_string
changed? or add a new cass_statement_bind_string
?
However, I have tried the following ways:
let query_check = "SELECT * FROM test_ks.t_sta_mgnt_date WHERE deviceid = primary_key and epoch = primary_key_2"
let statement = cass_statement_new(CString::new(query_check).unwrap().as_ptr(), 0);
cass_statement_bind_string(statement, 0, CString::new(primary_key).unwrap().as_ptr());
cass_statement_bind_string(statement, 1, CString::new(primary_key_2).unwrap().as_ptr());
But, the query cannot be made. Is it related to the setting of the parameters?
@alexeiakimov asked in Metaswitch/cassandra-rs#111 about what the requirements are for updating this repo.
cargo fmt
to format the code. If it's not already properly formatted, please put the reformatting into a separate commit so it is easier to review; don't combine it with actual changes.cassandra.h
from the latest driverOne important note though:
Thanks!
Hi,i tried to use uuid
and the schema_meta
example, but found that uuid doesn't seem to be able to get out of the query. Is there any other way? Or will it update the usage method?
The latest ubuntu that datastax provides images for is ubuntu 18.04.
github actions is about to deprecate ubuntu 18.04 with brown outs starting this month: https://github.blog/changelog/2022-08-09-github-actions-the-ubuntu-18-04-actions-runner-image-is-being-deprecated-and-will-be-removed-by-12-1-22/
This project relies on those 18.04 package for its CI.
What should the response of this project be?
The possible options I can think of:
I know the driver can be built just fine on a modern linux system because it builds successfully on my local arch linux machine.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.