Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] support MySQL batch insert by using 2D list #59

Open
red010182 opened this issue Mar 8, 2023 · 0 comments
Open

[feature] support MySQL batch insert by using 2D list #59

red010182 opened this issue Mar 8, 2023 · 0 comments

Comments

@red010182
Copy link

val users = listOf(
    listOf("Bill", 20),
    listOf("Andy", 18)
)
queryOf("INSERT INTO User SET (name, age) VALUES ?", users)

// becomes:
INSERT INTO User SET (name, age) VALUES ("Bill", 20), ("Andy", 18);

@red010182 red010182 changed the title [feature] support batch insert by using list of map [feature] support batch insert by using list of list Mar 8, 2023
@red010182 red010182 changed the title [feature] support batch insert by using list of list [feature] support batch insert by using 2D list Mar 8, 2023
@red010182 red010182 changed the title [feature] support batch insert by using 2D list [feature] support MySQL batch insert by using 2D list Mar 8, 2023
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

No branches or pull requests

1 participant