hertz-examples
GORM
hertz-examples | GORM | |
---|---|---|
6 | 81 | |
238 | 37,092 | |
4.6% | 0.7% | |
4.6 | 8.2 | |
4 days ago | 14 days ago | |
Go | Go | |
Apache License 2.0 | MIT License |
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.
hertz-examples
- How to apply reverse proxy over websocket
-
Use session middleware to implement distributed session solution based on Redis
The main content of this post is to introduce a bizdemo hertz_session. The link to the demo is here.
-
Golang Reverse Proxy Practices
cloudwego/hertz-examples
-
Web Development JWT Practices
The previous post briefly introduced a high-performance Go HTTP framework - Hertz. This article is based on a demo from the Hertz open-source repository. tree/main/bizdemo/hertz_jwt), which describes how to use Hertz to complete the JWT authentication and authorization process.
-
High Performance Web Framework Tasting-Database Operations
Shell git clone https://github.com/cloudwego/hertz-examples.git cd bizdemo/hertz_gorm
In this post, you'll learn more about using the Hertz framework with an official demo.
GORM
-
How to use migrations with Golang
Go doesn't support migrations natively for that propuso we can use the popular golang-migrate package also if you use an ORM like GORM you can use it for that.
-
Toasty, an Async ORM for Rust
I never understood why people are so stubborn about hating on orm.
For example I'm familiar with https://gorm.io and it does save me a lot of time and useless boilerplate.
And guess what, if I ever need to make a complex query, I also happen to know SQL, and I'm just going to make a "raw" query https://gorm.io/docs/sql_builder.html#Raw-SQL and be done with it.
It's not all that hard.
-
Building a RESTful API with Go Fiber: An Express-Inspired Boilerplate
SQL database: PostgreSQL Object Relation Mapping using Gorm
-
Store IoT device data
The previous post demonstrated receiving the raw data and unmarshalling it into a struct that was already annotated with gorm tags. Gorm is a popular ORM for Go. If you are not familiar with it, you can for more information here.
-
GORM, PostgreSQL & Atlas
GORM is a, quite conveniently named, ORM for GO
-
Scaling Backend to 1M requests with just 2GB ram ⚡️
Written in GIN framework and uses GORM as ORM.
-
How to handle migrations in Golang
There are ORMs like gorm that supports some kind of documentation with files, but they mainly focus on converting the database to "things" in the code to be used by the ORM, and not as documentation only/documentation-first.
-
Go ORMs Compared
GORM is a comprehensive ORM tool in Go, offering a code-first approach which allows defining database schemas using struct tags in Go. It's known for its developer-friendly nature, making it suitable for both beginners and experienced users. GORM supports a variety of SQL databases like MySQL, PostgreSQL, and SQLite. It's designed to be flexible, allowing developers to drop down to raw SQL when necessary. However, it's important to be cautious about its performance implications in large-scale applications.
-
6 🔥 Awesome Golang packages (web devs)
Homepage: https://gorm.io/
- Tenha controle sobre seu SQL com Golang e SQLC
What are some alternatives?
jwt - JWT middleware for Hertz
ent - An entity framework for Go
reverseproxy - reverseproxy for Hertz
Xorm
gzip - gzip for hertz
SQLBoiler - Generate a Go ORM tailored to your database schema.
sessions - Sessions middleware for Hertz
pgx - PostgreSQL driver and toolkit for Go
csrf
go-pg - Golang ORM with focus on PostgreSQL features and performance
registry - The service registration & discovery extensions for Hertz
beego orm