Our great sponsors
-
I switched to the "denisnkom" driver (https://github.com/denisenkom/go-mssqldb) as the stability of that improved.
-
I started out using the ODBC driver wrapper when there weren't good choices for native drivers. I wrote a little helper package to figure out the best ODBC driver to use: https://github.com/billgraziano/mssqlodbc. Lots of the code I wrote would run in different environments with different configurations. That package is a little out of date now.
-
InfluxDB
Access the most powerful time series database as a service. Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.
-
I started out using the ODBC driver wrapper when there weren't good choices for native drivers. I wrote a little helper package to figure out the best ODBC driver to use: https://github.com/billgraziano/mssqlodbc. Lots of the code I wrote would run in different environments with different configurations. That package is a little out of date now.
-
(More shameless self-promotion) I also have a utility that pulls SQL Server extended events into Logstash or Elastic: https://github.com/billgraziano/xelogstash. This uses the native GO driver also without issues.
-
However, if I were starting today, I would use the Microsoft driver - especially if I was doing anything with Azure. Over the next year I will likely migrate to use this package. I'm just not sure how much the original driver will be updated now that Microsoft is working on a fork.
-
Plus, if you look in the MS repository, you see a GO port of sqlcmd using the driver. Which also uses a different version of the "sql" package that handles PRINT statements. That certainly looks interesting.
-
I typically use sqlx to deal with query results.
-
SonarQube
Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.