GithubHelp home page GithubHelp logo

sailshq / waterline-compile-statement-docs-circa-2017 Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 3.0 24 KB

Documentation for original Waterline statement syntax, as specced in compileStatement() (But note that this method will be removed from the driver interface in a future release)

Home Page: http://github.com/node-machine/driver-interface

waterline-compile-statement-docs-circa-2017's Introduction

Waterline Query Docs

NOTE: The documentation in this repo is the next-generation of Waterline query syntax and is not valid in the 0.11 version of Waterline.

This repo documents the Waterline Statement format, expected results, and error notation used by queryable Waterline drivers. While the query syntax defined here will look familiar to anyone who has worked with Waterline or MongoDB, bear in mind that it represents a lower-level abstraction, and has important differences from the criteria dictionaries you might be used to working with when calling methods like .find().

Waterline Statements allow for the composition of complex queries that can run on either a SQL datastore or a NoSQL datastore. There are a few exceptions but for the most part the language is completely database-independent. It acts as an interchange format between higher level code (e.g. business logic) and native database queries (e.g. SQL strings or Mongo dictionaries).

Each statement compiles directly into a native query for a particular database, depending on the driver that is being used to do the compilation. Statements can be built and compiled in user land, but the format is also suitable for internal use within Waterline adapters. In the latter case, the adapter uses a driver to convert a Waterline criteria dictionary into one or more Waterline statements; then compiles those statements into native queries and finally transmits that native query to the underlying database.

Note that, while it is highly influenced by a relational/SQL databases, most of WLQL's syntax is also compatible with NoSQL databases such as MongoDB.

Waterline Drivers

See Waterline driver interface.

Table of Contents

waterline-compile-statement-docs-circa-2017's People

Contributors

particlebanana avatar mikermcneil avatar rachaelshaw avatar

Stargazers

JMV avatar Matt A avatar  avatar Dmitry Demenchuk avatar Luis Lobo Borobia avatar Gaurav Ramanan avatar Alexander Kozhevin avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.