@@ -15,11 +15,11 @@ export type arrayJSON_t = JSON_t[];
15
15
16
16
export type categoryArray = category [ ] ;
17
17
18
- /** 'FindBookById ' parameters type */
19
- export type findBookByIdParams = { readonly id ?: number } ;
18
+ /** 'BooksByAuthor ' parameters type */
19
+ export type booksByAuthorParams = { readonly authorName : string } ;
20
20
21
- /** 'FindBookById ' return type */
22
- export type findBookByIdResult = {
21
+ /** 'BooksByAuthor ' return type */
22
+ export type booksByAuthorResult = {
23
23
readonly author_id : ( undefined | number ) ;
24
24
readonly big_int : ( undefined | bigint ) ;
25
25
readonly categories : ( undefined | categoryArray ) ;
@@ -29,14 +29,14 @@ export type findBookByIdResult = {
29
29
readonly rank : ( undefined | number )
30
30
} ;
31
31
32
- /** 'FindBookById ' query type */
33
- export type findBookByIdQuery = { readonly params : findBookByIdParams ; readonly result : findBookByIdResult } ;
32
+ /** 'BooksByAuthor ' query type */
33
+ export type booksByAuthorQuery = { readonly params : booksByAuthorParams ; readonly result : booksByAuthorResult } ;
34
34
35
- /** 'BooksByAuthor ' parameters type */
36
- export type booksByAuthorParams = { readonly authorName : string } ;
35
+ /** 'FindBookById ' parameters type */
36
+ export type findBookByIdParams = { readonly id ?: number } ;
37
37
38
- /** 'BooksByAuthor ' return type */
39
- export type booksByAuthorResult = {
38
+ /** 'FindBookById ' return type */
39
+ export type findBookByIdResult = {
40
40
readonly author_id : ( undefined | number ) ;
41
41
readonly big_int : ( undefined | bigint ) ;
42
42
readonly categories : ( undefined | categoryArray ) ;
@@ -46,40 +46,40 @@ export type booksByAuthorResult = {
46
46
readonly rank : ( undefined | number )
47
47
} ;
48
48
49
- /** 'BooksByAuthor ' query type */
50
- export type booksByAuthorQuery = { readonly params : booksByAuthorParams ; readonly result : booksByAuthorResult } ;
49
+ /** 'FindBookById ' query type */
50
+ export type findBookByIdQuery = { readonly params : findBookByIdParams ; readonly result : findBookByIdResult } ;
51
51
52
52
/** Returns an array of all matched results. */
53
- export const FindBookById_many : ( _1 :PgTyped_Pg_Client_t , _2 :findBookByIdParams ) => Promise < findBookByIdResult [ ] > = BookService__sqlJS . FindBookById . many as any ;
53
+ export const BooksByAuthor_many : ( _1 :PgTyped_Pg_Client_t , _2 :booksByAuthorParams ) => Promise < booksByAuthorResult [ ] > = BookService__sqlJS . BooksByAuthor . many as any ;
54
54
55
55
/** Returns exactly 1 result. Returns `None` if more or less than exactly 1 result is returned. */
56
- export const FindBookById_one : ( _1 :PgTyped_Pg_Client_t , _2 :findBookByIdParams ) => Promise < ( undefined | findBookByIdResult ) > = BookService__sqlJS . FindBookById . one as any ;
56
+ export const BooksByAuthor_one : ( _1 :PgTyped_Pg_Client_t , _2 :booksByAuthorParams ) => Promise < ( undefined | booksByAuthorResult ) > = BookService__sqlJS . BooksByAuthor . one as any ;
57
57
58
58
/** Returns exactly 1 result. Returns `Error` (with an optionally provided `errorMessage`) if more or less than exactly 1 result is returned. */
59
- export const FindBookById_expectOne : ( _1 :PgTyped_Pg_Client_t , _2 :findBookByIdParams , errorMessage :( undefined | string ) ) => Promise <
60
- { TAG : "Ok" ; _0 : findBookByIdResult }
61
- | { TAG : "Error" ; _0 : string } > = BookService__sqlJS . FindBookById . expectOne as any ;
59
+ export const BooksByAuthor_expectOne : ( _1 :PgTyped_Pg_Client_t , _2 :booksByAuthorParams , errorMessage :( undefined | string ) ) => Promise <
60
+ { TAG : "Ok" ; _0 : booksByAuthorResult }
61
+ | { TAG : "Error" ; _0 : string } > = BookService__sqlJS . BooksByAuthor . expectOne as any ;
62
62
63
63
/** Executes the query, but ignores whatever is returned by it. */
64
- export const FindBookById_execute : ( _1 :PgTyped_Pg_Client_t , _2 :findBookByIdParams ) => Promise < void > = BookService__sqlJS . FindBookById . execute as any ;
64
+ export const BooksByAuthor_execute : ( _1 :PgTyped_Pg_Client_t , _2 :booksByAuthorParams ) => Promise < void > = BookService__sqlJS . BooksByAuthor . execute as any ;
65
65
66
- export const findBookById : ( params :findBookByIdParams , client :PgTyped_Pg_Client_t ) => Promise < findBookByIdResult [ ] > = BookService__sqlJS . findBookById as any ;
66
+ export const booksByAuthor : ( params :booksByAuthorParams , client :PgTyped_Pg_Client_t ) => Promise < booksByAuthorResult [ ] > = BookService__sqlJS . booksByAuthor as any ;
67
67
68
68
/** Returns an array of all matched results. */
69
- export const BooksByAuthor_many : ( _1 :PgTyped_Pg_Client_t , _2 :booksByAuthorParams ) => Promise < booksByAuthorResult [ ] > = BookService__sqlJS . BooksByAuthor . many as any ;
69
+ export const FindBookById_many : ( _1 :PgTyped_Pg_Client_t , _2 :findBookByIdParams ) => Promise < findBookByIdResult [ ] > = BookService__sqlJS . FindBookById . many as any ;
70
70
71
71
/** Returns exactly 1 result. Returns `None` if more or less than exactly 1 result is returned. */
72
- export const BooksByAuthor_one : ( _1 :PgTyped_Pg_Client_t , _2 :booksByAuthorParams ) => Promise < ( undefined | booksByAuthorResult ) > = BookService__sqlJS . BooksByAuthor . one as any ;
72
+ export const FindBookById_one : ( _1 :PgTyped_Pg_Client_t , _2 :findBookByIdParams ) => Promise < ( undefined | findBookByIdResult ) > = BookService__sqlJS . FindBookById . one as any ;
73
73
74
74
/** Returns exactly 1 result. Returns `Error` (with an optionally provided `errorMessage`) if more or less than exactly 1 result is returned. */
75
- export const BooksByAuthor_expectOne : ( _1 :PgTyped_Pg_Client_t , _2 :booksByAuthorParams , errorMessage :( undefined | string ) ) => Promise <
76
- { TAG : "Ok" ; _0 : booksByAuthorResult }
77
- | { TAG : "Error" ; _0 : string } > = BookService__sqlJS . BooksByAuthor . expectOne as any ;
75
+ export const FindBookById_expectOne : ( _1 :PgTyped_Pg_Client_t , _2 :findBookByIdParams , errorMessage :( undefined | string ) ) => Promise <
76
+ { TAG : "Ok" ; _0 : findBookByIdResult }
77
+ | { TAG : "Error" ; _0 : string } > = BookService__sqlJS . FindBookById . expectOne as any ;
78
78
79
79
/** Executes the query, but ignores whatever is returned by it. */
80
- export const BooksByAuthor_execute : ( _1 :PgTyped_Pg_Client_t , _2 :booksByAuthorParams ) => Promise < void > = BookService__sqlJS . BooksByAuthor . execute as any ;
80
+ export const FindBookById_execute : ( _1 :PgTyped_Pg_Client_t , _2 :findBookByIdParams ) => Promise < void > = BookService__sqlJS . FindBookById . execute as any ;
81
81
82
- export const booksByAuthor : ( params :booksByAuthorParams , client :PgTyped_Pg_Client_t ) => Promise < booksByAuthorResult [ ] > = BookService__sqlJS . booksByAuthor as any ;
82
+ export const findBookById : ( params :findBookByIdParams , client :PgTyped_Pg_Client_t ) => Promise < findBookByIdResult [ ] > = BookService__sqlJS . findBookById as any ;
83
83
84
84
export const FindBookById : {
85
85
/** Returns exactly 1 result. Returns `Error` (with an optionally provided `errorMessage`) if more or less than exactly 1 result is returned. */
0 commit comments