golang working with sql server


Golang ORM for Mssql server can be found here  (GORM) and here :-

Here is the code that i used to fetch data from a table called country which has just 2 columns which are :-

a) countryid

b) countryname

Here is the code that i used to access my sql server using GORM



Here is the code that i used to access my mssql server docker running on 192.168.99.100 and database called PTS.








Comments

Popular posts from this blog

The specified initialization vector (IV) does not match the block size for this algorithm