8000 docs: minor updates to insert howto by andrewmbenton · Pull Request #2701 · sqlc-dev/sqlc · GitHub
[go: up one dir, main page]

Skip to content

docs: minor updates to insert howto #2701

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

Merged
merged 1 commit into from
Sep 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
docs: minor updates to insert howto
  • Loading branch information
andrewmbenton committed Sep 6, 2023
commit 02ce7280f89a1672d6d15d179f4757c769c26e4d
9 changes: 4 additions & 5 deletions docs/howto/insert.md
86FE
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,11 @@ sql:

### MySQL

### MySQL supports a similar feature using [LOAD DATA](https://dev.mysql.com/doc/refman/8.0/en/load-data.html).

MySQL supports a similar feature using [LOAD DATA](https://dev.mysql.com/doc/refman/8.0/en/load-data.html).

Errors and duplicate keys are treated as warnings and insertion will
continue, even without an error for some cases. Use this in a transaction
and use SHOW WARNINGS to check for any problems and roll back if you want to.
continue, even without an error for some cases. Use this in a transaction
and use SHOW WARNINGS to check for any problems and roll back if necessary.

Check the [error handling](https://dev.mysql.com/doc/refman/8.0/en/load-data.html#load-data-error-handling) documentation for more information.

Expand Down Expand Up @@ -199,6 +198,6 @@ sql:
go:
package: "db"
sql_package: "database/sql"
sql_driver: "github.com/go-sql-driver/mysql"
sql_driver: "github.com/go-sql-driver/mysql"
out: "db"
```
0