Update Readme.
This commit is contained in:
parent
dc557390b0
commit
8ffbe38993
3 changed files with 194 additions and 194 deletions
12
README.md
12
README.md
|
|
@ -42,7 +42,7 @@ https://medium.com/@go.jet/jet-5f3667efa0cc
|
||||||
* [WITH](https://github.com/go-jet/jet/wiki/WITH)
|
* [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
|
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.
|
3) Query execution with result mapping to arbitrary destination.
|
||||||
|
|
||||||
## Getting Started
|
## Getting Started
|
||||||
|
|
@ -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'
|
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'.
|
and _film category_ is not 'Action'.
|
||||||
```java
|
```golang
|
||||||
stmt := SELECT(
|
stmt := SELECT(
|
||||||
Actor.ActorID, Actor.FirstName, Actor.LastName, Actor.LastUpdate, // or just Actor.AllColumns
|
Actor.ActorID, Actor.FirstName, Actor.LastName, Actor.LastUpdate, // or just Actor.AllColumns
|
||||||
Film.AllColumns,
|
Film.AllColumns,
|
||||||
Language.AllColumns,
|
Language.AllColumns.Except(Language.LastUpdate),
|
||||||
Category.AllColumns,
|
Category.AllColumns,
|
||||||
).FROM(
|
).FROM(
|
||||||
Actor.
|
Actor.
|
||||||
|
|
@ -358,7 +358,7 @@ fmt.Println(string(jsonText))
|
||||||
"Language": {
|
"Language": {
|
||||||
"LanguageID": 1,
|
"LanguageID": 1,
|
||||||
"Name": "English ",
|
"Name": "English ",
|
||||||
"LastUpdate": "2006-02-15T10:02:19Z"
|
"LastUpdate": "0001-01-01T00:00:00Z"
|
||||||
},
|
},
|
||||||
"Categories": [
|
"Categories": [
|
||||||
{
|
{
|
||||||
|
|
@ -393,7 +393,7 @@ fmt.Println(string(jsonText))
|
||||||
"Language": {
|
"Language": {
|
||||||
"LanguageID": 1,
|
"LanguageID": 1,
|
||||||
"Name": "English ",
|
"Name": "English ",
|
||||||
"LastUpdate": "2006-02-15T10:02:19Z"
|
"LastUpdate": "0001-01-01T00:00:00Z"
|
||||||
},
|
},
|
||||||
"Categories": [
|
"Categories": [
|
||||||
{
|
{
|
||||||
|
|
@ -580,5 +580,5 @@ To run the tests, additional dependencies are required:
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
Copyright 2019-2021 Goran Bjelanovic
|
Copyright 2019-2022 Goran Bjelanovic
|
||||||
Licensed under the Apache License, Version 2.0.
|
Licensed under the Apache License, Version 2.0.
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
|
|
@ -36,7 +36,7 @@ func main() {
|
||||||
stmt := SELECT(
|
stmt := SELECT(
|
||||||
Actor.ActorID, Actor.FirstName, Actor.LastName, Actor.LastUpdate,
|
Actor.ActorID, Actor.FirstName, Actor.LastName, Actor.LastUpdate,
|
||||||
Film.AllColumns,
|
Film.AllColumns,
|
||||||
Language.AllColumns,
|
Language.AllColumns.Except(Language.LastUpdate),
|
||||||
Category.AllColumns,
|
Category.AllColumns,
|
||||||
).FROM(
|
).FROM(
|
||||||
Actor.
|
Actor.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue