Formatting fix.

This commit is contained in:
go-jet 2019-07-15 19:55:04 +02:00
parent c78ca8a876
commit 7ed83d4228
4 changed files with 4 additions and 7 deletions

View file

@ -31,7 +31,7 @@ _Support for additional databases will be added in future jet releases._
* DELETE (WHERE, RETURNING),
* LOCK (IN, NOWAIT)
2) Auto-generated Data Model types - Go struct mapped to database type (table or enum)
3) Query execution with mapping to arbitrary destination structure - destination structure can be
3) Query execution with result set mapping to arbitrary destination structure - destination structure can be
created by combining auto-generated data model types.
## Getting Started

View file

@ -67,8 +67,7 @@ func TestJoinEverything(t *testing.T) {
).
ORDER_BY(Artist.ArtistId, Album.AlbumId, Track.TrackId,
Genre.GenreId, MediaType.MediaTypeId, Playlist.PlaylistId,
Invoice.InvoiceId, Customer.CustomerId).
WHERE(Artist.ArtistId.LT_EQ(Int(100000)))
Invoice.InvoiceId, Customer.CustomerId)
var dest []struct { //list of all artist
model.Artist
@ -104,9 +103,7 @@ func TestJoinEverything(t *testing.T) {
err := stmt.Query(db, &dest)
assert.NilError(t, err)
assert.Equal(t, len(dest), 275)
assertJsonFile(t, "./testdata/joined_everything.json", dest)
}

View file

@ -31,7 +31,7 @@ Field name is camel case of column name. See below table for type mapping.
| bytea, uuid | |
| and all remaining types | ColumnString |
### Example
#### Example
Sql table `address`:
```