crossdb-org / crossdb

Ultra High-performance Lightweight Embedded and Server OLTP RDBMS✨
https://crossdb.org
Mozilla Public License 2.0
182 stars 12 forks source link

CrossDB Rust Driver #29

Closed wyhaya closed 1 month ago

wyhaya commented 1 month ago

Hi, can you create a crossdb-org/crossdb-rs repo? I would like to contribute to crossdb. I have currently written some code that can run basic SQL queries, and it is here: crossdb-rs


Just noticed that @sprappcom in #24 wants to provide Rust bindings for crossdb; There may be some conflicts.

jcwangxp commented 1 month ago

I just created the repo and invite you as maintainer. https://github.com/crossdb-org/crossdb-rust His code is not ready and I don't know the progress. I think you can maintain this project together.

kolinfluence commented 1 month ago

@wyhaya u beat me to it. mine's almost completed tml. will use urs. :)

p.s. : i've checked ur code, havent tried it but will use urs. @sprappcom will not continue with it

kolinfluence commented 1 month ago

@wyhaya i have issues with compiling and using urs. can u provide more information on how to use yours in the README.md?

wyhaya commented 1 month ago

@kolinfluence Currently, there are some warnings, but it can run normally on Linux and macOS. I haven't tested it onWindows yet. It's currently statically compiled, and you can check how to run the example in .github/workflows/test.yml.

kolinfluence commented 1 month ago

@wyhaya i just chked ur code, it's quite limited. i may use mine. i test if i can get it to work in 2 days. will update here

kolinfluence commented 1 month ago

@jcwangxp i'll continue with mine. my code is more comprehensive. his code works for now but it's very limited. if i cant get it to work in 2 days, will update here again.

jcwangxp commented 1 month ago

@kolinfluence , I've invited you too. you can work together. in addition, i added 2 functions which will make the binging easy.

xdb_type_t
xdb_column_type (uint64_t meta, uint16_t iCol);

const char* 
xdb_column_name (uint64_t meta, uint16_t iCol);
kolinfluence commented 1 month ago

@wyhaya although mine's more comprehensive, i'm having some issues with making everything come together.

  1. urs seemed to work for now so will use and improve upon urs.
  2. can you figure out how to fix the warnings? it's quite annoying.
jcwangxp commented 1 month ago

I've fixed crossdb comping warnings, please pull latest code.