Coder Social home page Coder Social logo

cassandra-sys-rs's People

Contributors

alexeiakimov avatar angusi avatar david-ray1 avatar davideagen avatar dependabot-preview[bot] avatar dependabot[bot] avatar dimbleby avatar iredelmeier avatar jhowarth avatar jshook avatar kw217 avatar malachijonesmsft avatar rukai avatar rustyrazorblade avatar tupshin avatar yukim avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cassandra-sys-rs's Issues

Building on macos fails

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.

How to use multiple primary keys as query conditions?

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?

Requirements for updating this repo

@alexeiakimov asked in Metaswitch/cassandra-rs#111 about what the requirements are for updating this repo.

  • Obviously the usual https://github.com/Metaswitch/cassandra-sys-rs/blob/master/CONTRIBUTING.md guidance applies.
  • Please use 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.
  • There are no tests in this repo, but there are examples which at least use most features. If it makes sense, when you're adding a feature please add to the examples.
  • Please do ensure you carry your changes through to https://github.com/Metaswitch/cassandra-rs and add tests there (if that makes sense).
  • There's an example at #18. @alexeiakimov accurately summarised the steps as:
    • update cassandra.h from the latest driver
    • regenerate the binding code with bindgen utility
    • update the changelog
    • update the CI files to download the correct driver library
  • In general: I know this code isn't as nice as it could be, but please ensure new code does things better, and if you have an opportunity to clean up old code then please do so.

One important note though:

  • This repo needs to move to use GitHub Actions rather than Travis; this has already been done for cassandra-rs.

Thanks!

About the use of uuid

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?

ubuntu 18.04

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:

  • move cassandra-sys to vendoring the dependency by fetching the source and building it? (maybe only behind a cargo feature but use that cargo feature on CI?)
  • come up with our own ubuntu packages and publish them somewhere?
  • Just script the building of the cpp driver from within ci?

I know the driver can be built just fine on a modern linux system because it builds successfully on my local arch linux machine.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.