tarantool / tarantool/doc

The complete Tarantool data types list is missing

Open
#928 9 comments 4 reactions 2 assignees View on GitHub

Nobody has claimed this yet.

reference server
Dominant language
CSS
Stars
15
Forks
49
Avg merge
1d 13h
Merged PRs (30d)
3

Description

It looks like we don't have a single table where all Tarantool database types are enumerated. I think it's a basic must have thing.

We have this table:
https://www.tarantool.io/en/doc/2.2/book/box/data_model/#lua-vs-msgpack

But it lacks at least unsigned, any and number. (And by the way what's the difference between bin and varbinary?)

I also think there should be a column with verbal description of data types. E.g.:

double - a double precision floating point number (IEEE 64-bit floating point on most compilers?)
unsigned - an integer number in range from 0 to ... (depending on compiler?)
any - ...
...

Here is the hopefully full (?) list of types from Tarantool source:

/*
 * Possible field data types. Can't use STRS/ENUM macros for them,
 * since there is a mismatch between enum name (STRING) and type
 * name literal ("STR"). STR is already used as Objective C type.
 */
enum field_type {
	FIELD_TYPE_ANY = 0,
	FIELD_TYPE_UNSIGNED,
	FIELD_TYPE_STRING,
	FIELD_TYPE_NUMBER,
	FIELD_TYPE_INTEGER,
	FIELD_TYPE_BOOLEAN,
	FIELD_TYPE_VARBINARY,
	FIELD_TYPE_SCALAR,
	FIELD_TYPE_DECIMAL,
	FIELD_TYPE_ARRAY,
	FIELD_TYPE_MAP,
	field_type_MAX
};

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.