Skip to main content
All data types supported by OmniQL and their database mappings.

Type Mappings

Numeric Types

AUTO

Auto-incrementing primary key.

BIGAUTO

Auto-incrementing for large tables.

INT

Standard integer (-2,147,483,648 to 2,147,483,647).

BIGINT

Large integer for big numbers.

SMALLINT

Small integer (-32,768 to 32,767).

DECIMAL / NUMERIC

Exact numeric with precision.

FLOAT

Double-precision floating point.

REAL

Single-precision floating point.

String Types

STRING

Variable-length string.

TEXT

Unlimited length text.

CHAR

Fixed-length string.

Boolean Types

BOOLEAN / BOOL

True or false values.

Boolean in Queries

Date and Time Types

TIMESTAMP

Date and time.

DATETIME

Date and time (MySQL uses DATETIME, PostgreSQL uses TIMESTAMP).

DATE

Date only (no time).

TIME

Time only (no date).

Date Literals in Queries

JSON Types

JSON

Standard JSON data.

JSONB

PostgreSQL optimized binary JSON.

UUID Type

Universally unique identifier.

UUID in Queries

Binary Types

BINARY / BLOB

Binary data (files, images).

Type with Constraints

Use colons to add constraints after the type:
See Advanced Schema for more on constraints.

Type with Size

Specify size in parentheses:

Limitations

Not currently supported:
  • DEFAULT values
  • CHECK constraints
  • Array types
  • Type casting
For these features, use native SQL.

Next Steps

Tables

Create tables with types

Operators

Query operators