5 Inserting records into a postgresql database with Go

calhoun.io posted by gopher 314 days ago  

In this post we are going to take everything we have learned a step further and we are going to look at how to insert records into an SQL database, along with how the database/sql package helps us avoid any unwanted SQL injection attacks by cleaning the inputs we provide before executing SQL statements. Don't worry if you aren't familiar with SQL injection - we will be covering what it is and what exactly the database/sql package does to prevent it within this post.

Register to comment or vote on this story