GithubHelp home page GithubHelp logo

wmatrosov / tarantool-cpp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from objatiegroba/tarantool-cpp

0.0 0.0 0.0 56 KB

C++ tarantool-c wrap

License: MIT License

C++ 96.69% Lua 2.25% CMake 1.07%

tarantool-cpp's Introduction

tarantool-cpp

C++ tarantool-c wrap

Simple Examples

TarantoolConnector tnt("127.0.0.1", "10001");
auto result tnt.call("func_name", {3, 4, 5, "arg"});
optional<string> str;
int num;
result.parse(str, num);

or

TarantoolConnector tnt("127.0.0.1", "10001");
optional<string> str;
int num;
tie(str, num) = tnt.call<optional<string>, int>("func_name", {3, 4, 5, "arg"});

Support types

  • int and unsigned int (16, 32, 64 bits)
  • bool
  • string
  • float, double
  • tuple
  • vector
  • vector as binary
  • map
  • boost::optional

Custom classes expressed through basic

Tests

C++17, GCC 7 or later

F.A.Q.

  • Why doesn't tarantool-cpp use std::variant?

    It is hard to resolve a type of variable by the first char of MsgPack elements. There are only 7 basic types of stored data. We can add variant for basic types, but for others we have to emplement recursive brute force.

  • Is it thread safe?

    No

  • Is it compatible with C++11?

    cxx17 branch

    Yes, but we recommend to use c++17 (GCC 7 or later), because there are many cases where using std::optional is necessary.

tarantool-cpp's People

Contributors

objatiegroba avatar ivan2kh avatar qazzquimby avatar

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.