From 7ed83d4228f232f29631d7a35aa0ff62533bd953 Mon Sep 17 00:00:00 2001 From: go-jet Date: Mon, 15 Jul 2019 19:55:04 +0200 Subject: [PATCH] Formatting fix. --- README.md | 2 +- tests/chinook_db_test.go | 5 +---- wiki/Generator.md | 2 +- wiki/SQL-Builder.md | 2 +- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index a371e83..22ffc34 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/tests/chinook_db_test.go b/tests/chinook_db_test.go index ad7d738..c6569cc 100644 --- a/tests/chinook_db_test.go +++ b/tests/chinook_db_test.go @@ -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) } diff --git a/wiki/Generator.md b/wiki/Generator.md index 515b0f4..7aae919 100644 --- a/wiki/Generator.md +++ b/wiki/Generator.md @@ -39,7 +39,7 @@ Usage of jet: ``` To generate jet SQL Builder and Data Model files from postgres database we need to call `jet` generator with postgres -connection parameters and root destination folder path for generated files. +connection parameters and root destination folder path for generated files. Assuming we are running local postgres database, with user `jet`, database `jetdb` and schema `dvds` we will use this command: ```sh diff --git a/wiki/SQL-Builder.md b/wiki/SQL-Builder.md index a534557..c7ce07c 100644 --- a/wiki/SQL-Builder.md +++ b/wiki/SQL-Builder.md @@ -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`: ```