by edgedb

edgedb /edgedb

The next generation relational database.

4.4K Stars 112 Forks Last release: 2 months ago (v1.0a4) Apache License 2.0 5.1K Commits 5 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

Build Status Join GitHub discussions

What is EdgeDB?

EdgeDB is an open-source object-relational database built on top of PostgreSQL. The goal of EdgeDB is to empower its users to build safe and efficient software with less effort.

EdgeDB features:

  • strict, strongly typed schema;
  • powerful and expressive query language;
  • rich standard library;
  • built-in support for schema migrations;
  • native GraphQL support.

Check out the blog posts for more examples and the philosophy behind EdgeDB.

Modern Type-safe Schema

The data schema in EdgeDB is a clean high-level representation of a conceptual data model:

type User {
    required property name -> str;

type Person { required property first_name -> str; required property last_name -> str; }

type Review { required property body -> str; required property rating -> int64 { constraint min_value(0); constraint max_value(5); }

required link author -> User;
required link movie -> Movie;

required property creation_time -> local_datetime;


type Movie { required property title -> str; required property year -> int64; required property description -> str;

multi link directors -> Person;
multi link cast -> Person;

property avg_rating := math::mean(.<movie review>

EdgeDB has a rich library of datatypes and functions.


EdgeQL is the query language of EdgeDB. It is efficient, intuitive, and easy to learn.

EdgeQL supports fetching object hierarchies with arbitrary level of nesting, filtering, sorting and aggregation:

    latest_reviews := (
        WITH UserReviews := User.$id


EdgeDB is currently in alpha. See our Issues for a list of features planned or in development.

Getting Started

Please refer to the Tutorial section of the documentation on how to install and run EdgeDB.


The EdgeDB documentation can be found at edgedb.com/docs.

Building From Source

Please follow the instructions outlined in the documentation.


The code in this repository is developed and distributed under the Apache 2.0 license. See LICENSE for details.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.