Phriction Knowledge Center - Hexavara Technology Crema Framework Crema Query Language : Getting Started
Crema Query Language : Getting Started
Crema Query Language : Getting Started
Introduction
Crema Query Language is a high-level SQL dialect that allows to write queries using a standardised SQL-like language. Crema Query is implemented as a parser that translates syntax in that of the target RDBMS. It aims to be developer friendly.
Example
Query-ing using regular query strings
var regularQuery string reqularQuery = “SELECT email, name FROM users ORDER BY name DESC” res := crema.ExecuteQuery(reqularQuery)
while using Crema QL
var q *crema.Query q = crema.Select("email", "name").From("users").OrderBy("name").Desc() res := crema.ExecuteQuery(q.QueryString)
CRUD Interface
Tags
None
Subscribers
None
- Last Author
- • galang
- Last Edited
- Oct 15 2019, 2:47 PM