Skip to content

kotlin: unbox query params#8

Merged
mightyguava merged 1 commit intokotlin-masterfrom
unbox
Jan 31, 2020
Merged

kotlin: unbox query params#8
mightyguava merged 1 commit intokotlin-masterfrom
unbox

Conversation

@mightyguava
Copy link
Owner

Don't need to generate FooParam data classes for Kotlin. Named parameters are good enough.

@mightyguava mightyguava mentioned this pull request Jan 31, 2020
7 tasks
// Start a transaction
conn.autoCommit = false
db.createBook(
CreateBookParams(
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ends up with less boilerplate, while code is still just as readable

Copy link

@AlecKazakova AlecKazakova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dope


@Throws(SQLException::class)
fun booksByTags(dollar_1: List<String>): List<BooksByTagsRow> {
fun booksByTags(column1: List<String>): List<BooksByTagsRow> {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was this name supposed to have changed?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch, made it better than before!

@mightyguava mightyguava merged commit 0f04fd3 into kotlin-master Jan 31, 2020
@mightyguava mightyguava deleted the unbox branch January 31, 2020 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants