SQL
2 articles
-
Build HTTP and database integrations
Insert Rows with Go database/sql and Retrieve Generated IDs
Pass INSERT values separately to ExecContext, then retrieve a generated ID only after checking the execution error.
-
Build HTTP and database integrations
Scan Database Rows into Go Values with `database/sql`
Scan selected columns into matching Go destinations, preserve SQL NULL with nullable types, and check errors throughout row iteration.


