videos
Slides and examples used for my training videos (by MarioCarrion)
go-database-sql-tutorial
A tutorial for Go's database/sql package (by VividCortex)
Our great sponsors
videos | go-database-sql-tutorial | |
---|---|---|
10 | 9 | |
93 | 798 | |
- | - | |
5.6 | 0.0 | |
about 2 months ago | about 1 year ago | |
Go | CSS | |
MIT License | Creative Commons Attribution Share Alike 4.0 |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
videos
Posts with mentions or reviews of videos.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-05-28.
- NvimTree vs NeoTree
-
Discussion: about "go install" versus brew when available
You can also do something similar with direnv for example (see 1 and 2); and even better if you use the tools.go paradigm then you can have different versions of your binaries relative to your project as well.
-
How to generate translations for multiple packages inside same module
Example for reference.
-
Go Package for testing HTTP interactions: github.com/dnaeon/go-vcr
Please refer to the full example code for more details.
-
Go Package for Mocking HTTP Traffic: github.com/h2non/gock
There's a simple CLI tool I built for requesting OpenWeather information using their API, please refer to the final repository for actually running the full examples.
-
Set struct in Redis
You don't mention what package you're using, but if you're using github.com/go-redis/redis/ you can marshal your struct using encoding/go and then use the SET and SET commands because for Redis everything is bytes, see https://github.com/MarioCarrion/videos/blob/main/2021/03/11-golang-microservices-caching-redis/redis.go I have video covering that exactly: https://youtu.be/wj6-w0DLKRw
-
Building Microservices in Go: Accessing PostgreSQL Databases - Part 1
The full code example mentioned in this post is available on Github, please make sure to read the README for specifics.
-
Building Microservices in Go: Caching using memcached
The code of the examples below are available on Github.
-
Go Package for Equality: github.com/google/go-cmp
Below there are some code snippets, please refer to the final repository for actually running the complete code examples.
-
Go Tools: For database schema migrations
Repository including the code example.
go-database-sql-tutorial
Posts with mentions or reviews of go-database-sql-tutorial.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-02-23.
-
Things to Consider When Going With sqlc
I don't understand why modern project managers bite into object-oriented reading from relational databases like a dog to a bone. After all, SQL was created for processing relational databases, and attempts to bypass this language only lead to wasted resources and eerily slow queries. I had to fix a lot of such "pearls" made with Entity Framework (.NET/C#). Analogue GO language tools are no better. Use the GO language package dabase/sql, which is not only fast and easy, but also has an excellent tutorial (http://go-database-sql.org/).
-
Questions regarding prepared statements in database/sql
I study database/sql using https://go-database-sql.org guide. At the time, I’m interested in prepared statements.
- Dapper-like ORM, Mapping
- Coronavirus, Sergio Mattarella: “il testo è vago e può darsi che sia tardi”
-
How learn backend for frontend dev?
My advice I think would be to try and break this down into stages. First of all I think you need to get comfortable with how to work with a database from Go, so separately from your main application just create a new throwaway folder and start messing about with connecting and then inserting/retrieving data. This site has some good basic info about that part of things: http://go-database-sql.org/
-
GoLang Error 1135: Can´t create a new thread (errno 22 "Resource temporarily unavailable...
I highly recommend to work yourself through this tutorial on how to properly use database/sql package.
- How to learn go?
- Whats the best way to begin learning GoLang ?
-
Building Microservices in Go: Accessing PostgreSQL Databases - Part 1
Go database/sql tutorial is the de-facto resource for understanding how to work with this package together with examples using MySQL and PostgreSQL.
What are some alternatives?
When comparing videos and go-database-sql-tutorial you can also consider the following projects:
Memcached - memcached development tree
golang-cheat-sheet - An overview of Go syntax and features.
tern - The SQL Fan's Migrator
learn-go-with-tests - Learn Go with test-driven development
gobuffalo/pop - A Tasty Treat For All Your Database Needs
go-sqlite3 - Go bindings to SQLite using wazero
migrations - SQL database migrations for Golang go-pg and PostgreSQL
gopl.io - Example programs from "The Go Programming Language"
gock - HTTP traffic mocking and testing made easy in Go ༼ʘ̚ل͜ʘ̚༽
go - The Go programming language
go-cmp - Package for comparing Go values in tests
go-essentials - The essential reading list for Golang developers
videos vs Memcached
go-database-sql-tutorial vs golang-cheat-sheet
videos vs tern
go-database-sql-tutorial vs learn-go-with-tests
videos vs gobuffalo/pop
go-database-sql-tutorial vs go-sqlite3
videos vs migrations
go-database-sql-tutorial vs gopl.io
videos vs gock
go-database-sql-tutorial vs go
videos vs go-cmp
go-database-sql-tutorial vs go-essentials