Skip to content

Commit

Permalink
Add additional information for lore.Where usage
Browse files Browse the repository at this point in the history
  • Loading branch information
abrahambotros committed May 13, 2017
1 parent 6d04a0f commit bd568a0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions query_sql_and_execute.go
Expand Up @@ -40,7 +40,8 @@ scanning the result into resultSinglePtr. This is essentially a convenience wrap
BuildSqlSelectStar and ExecuteThenParseSingle, applying the WHERE clause accordingly.
Note that where is a pointer; if no where is desired, pass nil instead. When desired, this is
typically something like a squirrel.Eq instance, etc.
typically something like a squirrel.Eq instance, etc. For your convenience, you can use lore.Where
to build a single Where-ish object around a squirrel.Eq/squirrel.Gt/etc.
`SELECT * FROM <table> WHERE <where conditions> LIMIT 1;`
*/
Expand Down Expand Up @@ -137,7 +138,8 @@ scanning the result into resultListPtr. This is essentially a convenience wrappe
BuildSqlUpdateSetMap and ExecuteThenParseList, applying the WHERE clause accordingly.
Note that where is a pointer; if no where is desired, pass nil instead. When desired, this is
typically something like a squirrel.Eq instance, etc.
typically something like a squirrel.Eq instance, etc. For your convenience, you can use lore.Where
to build a single Where-ish object around a squirrel.Eq/squirrel.Gt/etc.
`UPDATE <table> SET <columns and values from map> WHERE <where conditions> RETURNING * ;`
*/
Expand Down Expand Up @@ -185,7 +187,8 @@ scanning the result into resultListPtr. This is essentially a convenience wrappe
BuildSqlDelete and ExecuteThenParseList, applying the WHERE clause accordingly.
Note that where is a pointer; if no where is desired, pass nil instead. When desired, this is
typically something like a squirrel.Eq instance, etc.
typically something like a squirrel.Eq instance, etc. For your convenience, you can use lore.Where
to build a single Where-ish object around a squirrel.Eq/squirrel.Gt/etc.
`DELETE FROM <table> WHERE <where conditions> RETURNING * ;`
*/
Expand Down

0 comments on commit bd568a0

Please sign in to comment.