Need help with edgedb?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

edgedb
4.5K Stars 114 Forks Apache License 2.0 5.2K Commits 184 Opened issues

Description

The next generation relational database.

Services available

!
?

Need anything else?

Contributors list

No Data

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

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:

SELECT User {
    id,
    name,
    image,
    latest_reviews := (
        WITH UserReviews := User.$id

Status

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.

Documentation

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

Building From Source

Please follow the instructions outlined in the documentation.

License

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.