/
Queries.kt
56 lines (43 loc) · 1.2 KB
/
Queries.kt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.16.0
package com.example.booktest.postgresql
import java.sql.Connection
import java.sql.SQLException
import java.sql.Statement
import java.sql.Types
import java.time.OffsetDateTime
interface Queries {
@Throws(SQLException::class)
fun booksByTags(dollar1: List<String>): List<BooksByTagsRow>
@Throws(SQLException::class)
fun booksByTitleYear(title: String, year: Int): List<Book>
@Throws(SQLException::class)
fun createAuthor(name: String): Author?
@Throws(SQLException::class)
fun createBook(
authorId: Int,
isbn: String,
bookType: BookType,
title: String,
year: Int,
available: OffsetDateTime,
tags: List<String>): Book?
@Throws(SQLException::class)
fun deleteBook(bookId: Int)
@Throws(SQLException::class)
fun getAuthor(authorId: Int): Author?
@Throws(SQLException::class)
fun getBook(bookId: Int): Book?
@Throws(SQLException::class)
fun updateBook(
title: String,
tags: List<String>,
bookId: Int)
@Throws(SQLException::class)
fun updateBookISBN(
title: String,
tags: List<String>,
isbn: String,
bookId: Int)
}