You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2020. It is now read-only.
Copy file name to clipboardExpand all lines: README.markdown
+8-6Lines changed: 8 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,11 @@
1
1
# Squiggle - an SQL query builder for golang
2
2
3
-
## Goals
3
+
Have a program where it's awkward or impossible to compose an SQL query in sinlge place? Tired of concatenating pieces of SQL manually? Then Squiggle is for you! Squiggle is not an ORM but a powerful light weight tool to build SQL queries piece by piece. Squiggle draws inspiration from amazing projects like [Squel.js](http://hiddentao.github.io/squel/) and [Sequel](http://sequel.rubyforge.org).
4
4
5
-
- Ease of use
6
-
- Cover 80-90% of common use cases for SQL query building
5
+
## Project Goals
6
+
7
+
- Intuitive easy to use/read/remember DSL for query creation
8
+
- Cover 100% of common use cases for SQL query building
7
9
8
10
## Example Use
9
11
@@ -24,13 +26,13 @@ func main() {
24
26
25
27
## API
26
28
27
-
### `Select()` - creates a new query of type SELECT
29
+
####`Select()` - creates a new query of type SELECT
28
30
29
31
```go
30
32
squiggle.Select()
31
33
```
32
34
33
-
### `AddFrom(string/squiggle.From...)` - appends to the FROM clause of the query
35
+
####`AddFrom(string/squiggle.From...)` - appends to the FROM clause of the query
34
36
35
37
```go
36
38
squiggle.Select().
@@ -40,7 +42,7 @@ squiggle.Select().
40
42
// => "SELECT * FROM users, db1.table1 t1, foo"
41
43
```
42
44
43
-
### `AddField(string/squiggle.Field...)` - appends to the field/expression portion of the query
45
+
####`AddField(string/squiggle.Field...)` - appends to the field/expression portion of the query
0 commit comments