Skip to main content
Version: Next

Data type

SpringQL currently supports the following data types.

Number

Integer

2-byte signed

LanguageType name
SQLSMALLINT
Rusti16
Cshort

4-byte signed

LanguageType name
SQLINTEGER
Rusti32
Cint

8-byte signed

LanguageType name
SQLBIGINT
Rusti64
Clong

4-byte unsigned

LanguageType name
SQLUNSIGNED INTEGER
Rustu32
Cunsigned int

Floating point number

4-byte

LanguageType name
SQLFLOAT
Rustf32
Cfloat

Boolean

LanguageType name
SQLBOOLEAN
Rustbool
Cbool

String

UTF-8 with length (not NULL-terminated)

LanguageType name
SQLTEXT
RustString
Cchar * , int (length)

Binary

LanguageType name
SQLBLOB
RustVec<u8>
Cconst void * , int (length)