Skip to content

Commit

Permalink
Merge pull request #120 from go-jet/develop
Browse files Browse the repository at this point in the history
Release 2.7.1
  • Loading branch information
go-jet authored Feb 14, 2022
2 parents 3e802f8 + 9f91fd7 commit c29f0af
Show file tree
Hide file tree
Showing 28 changed files with 1,024 additions and 445 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ https://medium.com/@go.jet/jet-5f3667efa0cc
* [WITH](https://github.com/go-jet/jet/wiki/WITH)

2) Auto-generated Data Model types - Go types mapped to database type (table, view or enum), used to store
result of database queries. Can be combined to create desired query result destination.
result of database queries. Can be combined to create complex query result destination.
3) Query execution with result mapping to arbitrary destination.

## Getting Started
Expand Down Expand Up @@ -164,11 +164,11 @@ import (
```
Let's say we want to retrieve the list of all _actors_ that acted in _films_ longer than 180 minutes, _film language_ is 'English'
and _film category_ is not 'Action'.
```java
```golang
stmt := SELECT(
Actor.ActorID, Actor.FirstName, Actor.LastName, Actor.LastUpdate, // or just Actor.AllColumns
Film.AllColumns,
Language.AllColumns,
Language.AllColumns.Except(Language.LastUpdate),
Category.AllColumns,
).FROM(
Actor.
Expand Down Expand Up @@ -358,7 +358,7 @@ fmt.Println(string(jsonText))
"Language": {
"LanguageID": 1,
"Name": "English ",
"LastUpdate": "2006-02-15T10:02:19Z"
"LastUpdate": "0001-01-01T00:00:00Z"
},
"Categories": [
{
Expand Down Expand Up @@ -393,7 +393,7 @@ fmt.Println(string(jsonText))
"Language": {
"LanguageID": 1,
"Name": "English ",
"LastUpdate": "2006-02-15T10:02:19Z"
"LastUpdate": "0001-01-01T00:00:00Z"
},
"Categories": [
{
Expand Down Expand Up @@ -580,5 +580,5 @@ To run the tests, additional dependencies are required:

## License

Copyright 2019-2021 Goran Bjelanovic
Copyright 2019-2022 Goran Bjelanovic
Licensed under the Apache License, Version 2.0.
Loading

0 comments on commit c29f0af

Please sign in to comment.