All Projects → fenos → dqlx

fenos / dqlx

Licence: other
A DGraph Query Builder

Programming Languages

go
31211 projects - #10 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to dqlx

Scripts-Sploits
A number of scripts POC's and problems solved as pentests move along.
Stars: ✭ 37 (-9.76%)
Mutual labels:  builder
keypirinha-theme-builder
A tool to create themes for Keypirinha launcher
Stars: ✭ 25 (-39.02%)
Mutual labels:  builder
Nova-Menu-Builder
A Menu Builder for Laravel Nova
Stars: ✭ 63 (+53.66%)
Mutual labels:  builder
dotnet-design-patterns-samples
The samples of .NET design patterns
Stars: ✭ 25 (-39.02%)
Mutual labels:  builder
Amazon-Product-Advertising-API-URL-Builder
Build Amazon Product Advertising API request URLs without having to read the documentation or study the used hashing algorithms.
Stars: ✭ 27 (-34.15%)
Mutual labels:  builder
jam-stack-box
Your own self hosted continuous deployment solution for JAM Stack websites.
Stars: ✭ 25 (-39.02%)
Mutual labels:  builder
AdvancedSQL
The best Java query builder/SQL connector.
Stars: ✭ 23 (-43.9%)
Mutual labels:  builder
AppRopio.Mobile
AppRopio - mobile apps builder for iOS/Android based on Xamarin
Stars: ✭ 16 (-60.98%)
Mutual labels:  builder
ECSEntityBuilder
Unity ECS Entity Builder/Wrapper
Stars: ✭ 39 (-4.88%)
Mutual labels:  builder
TemmieWebhook
ARCHIVED - Please use https://github.com/MinnDevelopment/discord-webhooks/ instead!! | A simple Discord Webhook API made in Java
Stars: ✭ 38 (-7.32%)
Mutual labels:  builder
Discord-AIO
Discord AIO (All In One) - discord stealer/token grabber builder with token checks, webhook spammer, obfuscation, encryption, crypto miner, RAT and a lot of extra features.
Stars: ✭ 105 (+156.1%)
Mutual labels:  builder
grapesjs-plugin-forms
Set of form components and blocks for the GrapesJS editor
Stars: ✭ 39 (-4.88%)
Mutual labels:  builder
ngx-env
Easily inject environment variables into your Angular applications
Stars: ✭ 73 (+78.05%)
Mutual labels:  builder
react-json-logic
Build and evaluate JsonLogic with React components
Stars: ✭ 21 (-48.78%)
Mutual labels:  builder
StablexUI-Designer
Graphical designer (gui-builder) for library StablexUI
Stars: ✭ 14 (-65.85%)
Mutual labels:  builder
patterns
Good practices to create code in Java, open to other languages. ⚡
Stars: ✭ 14 (-65.85%)
Mutual labels:  builder
elemento
Builder API and other goodies for Elemental2
Stars: ✭ 90 (+119.51%)
Mutual labels:  builder
php-schema.org-mapping
A fluent interface to create mappings using Schema.org for Microdata and JSON-LD.
Stars: ✭ 31 (-24.39%)
Mutual labels:  builder
Awesome-Dgraph
A list of media, code and info about Dgraph.
Stars: ✭ 20 (-51.22%)
Mutual labels:  dgraph
menapro
CMS of 2017
Stars: ✭ 20 (-51.22%)
Mutual labels:  builder

dqlx

dqlx is a fully featured DGraph Schema and Query Builder for Go. It aims to simplify the interaction with the awesome Dgraph database allowing you to fluently compose any queries and mutations of any complexity. It also comes with a rich Schema builder to easily develop and maintain your Dgraph schema.

CircleCI Coverage Status Go Report Card

Status

The project is getting close to its first official release

Why?

The DGraph query language is awesome! it is really powerful, and you can achieve a lot with it. However, as you start trying to add dynamicity (like any other declarative query language) you soon starts fiddling with a lot strings concatenations and can quickly get messy.

dqlx tries to simplify the interaction with DGraph by helping to construct Queries and mutations with a fluent API.

Features

  • Schema Builder (Types, Predicates, Indexes)
  • Filtering - Connecting Filters (AND / OR)
  • Nested Selection / Filters
  • Functions
  • Pagination
  • Aggregation
  • Sorting
  • GroupBy
  • Multiple Query Block
  • Query Variables
  • Values Variables
  • Facets
  • Mutations

Documentation

You can find the documentation here: https://fenos.github.io/dqlx


Installation

go get github.com/fenos/dqlx

Quick Overview

func main() {
    // Connect to Dgraph cluster
    db, err := dqlx.Connect("localhost:9080")

    if err != nil {
        log.Fatal()
    }

    ctx := context.Background()

    var animals []map[string]interface{}

    // Query for animals
    _, err = db.
        QueryType("Animal").
        Select(`
            uid
            name
            species
            age
        `).
        Filter(
            dqlx.Eq{"species": "Cat"},
            dqlx.Lt{"age": 5},
        ).
        UnmarshalInto(&animals).
        Execute(ctx)

    if err != nil { panic(err) }

    println(fmt.Sprintf("The animals are: %v", animals))
}

Licence

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].