Docs
  • Home
  • Install
  • Learn
    Documentation

    An in-depth look at everything there is to know about EdgeDB: data types, query language, schema and database setup, etc.

    5-min Quickstart

    Install EdgeDB, create a simple schema, and write your first queries in under 5 minutes.

    Interactive Tutorial

    The quickest way to learn the key concepts of EdgeDB without installation, right in your browser.

    Easy EdgeDB Book

    An easy to follow book about using EdgeDB for an imaginary game based on the setting in Bram Stoker's 1897 book Dracula.

    RoadmapRFCsCheatsheetsBlogYouTube
  • Blog
  • Community
  • Learn
    • 5-min Quickstart
    • Easy EdgeDB Book
    • Interactive Tutorial
    • Documentation
  • Roadmap
  • Careers
  • 4.8k
Light
Dark
System
1.0 beta 2latest
/ to search
  • Introduction
  • Getting Started
  • Cheatsheets
  • Data Model
    • Overview
    • Object Types
    • Scalar Types
      • Numerics
      • String
      • Boolean
      • Date and Time
      • JSON
      • Enum
      • Bytes
      • UUID
    • Collection Types
    • Abstract Types
    • Functions
    • Links
    • Properties
    • Computables
    • Indexes
    • Constraints
    • Expression Aliases
    • Annotations
    • Modules
    • Databases
    • Extensions
  • EdgeQL
  • Clients
  • Administration
  • CLI
  • Changelog
  • Internals

Scalar Types

Scalar types are primitive individual types. Scalar type instances hold a single value, called a scalar value.

The standard EdgeDB scalar types are:

  • Numeric types:

    • int16

    • int32

    • int64

    • float32

    • float64

    • bigint

    • decimal

    • sequence

  • String type

  • Boolean type

  • Date and Time types:

    • datetime

    • duration

    • cal::local_datetime

    • cal::local_date

    • cal::local_time

    • cal::relative_duration

  • UUID type

  • JSON type

  • Enum types

See also scalar type SDL, DDL, introspection, and functions and operators.

Data ModelObject Types
Scalar TypesNumerics
Light
Dark
System
Product
HomeInstallRoadmap
Resources
DocumentationTutorialEasy EdgeDBCommunity
Company
CareersPress Kit
Newsletter
Subscribe to our mailing list to be the first to know about new blog posts and announcements.

© 2021, EdgeDB Inc.