live
sqlc
Our great sponsors
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.
live
-
How to Fetch a Turbo Stream
Looks like there are a couple of attempts but my google fu didn't really yield a winner.
https://github.com/while1malloc0/hotwire-go-example
if that's the case, there is definitely an opening on the market for such tech.
As someone who's been writing web apps since DHTML days, Livewire/Turbo feels like we've finally reached the future.
- Show HN: A Full-Stack Web Framework Written in Go
-
Spas Were a Mistake
I hate SPAs. I would never do another SPA again if it were up to me. It just adds too much mental context switching and overhead. I can develop fully server-side apps that are lighter, run faster, and at least 20% less development effort (I actually compared that for the same task: https://medium.com/@mustwin/is-react-fast-enough-bca6bef89a6). So why would I ever do an SPA again if it were up to me. I would use https://github.com/jfyne/live which is inspired by Phoenix LiveViews. This is my professional opinion having many years of experience in both kinds of web apps.
-
Show HN: LiveViewJS – TypeScript back end for LiveView Apps
I've been working on a Go implementation if you fancy trying it out
- What frontend libraries do exist in Go?
-
Looking for early feedback on my new Phoenix LiveView inspired project.
I built it because I love building highly interactive web pages, but the current state of JavaScript leaves me cold. I got really excited when I saw what Phoenix was doing with LiveView and thought I could see the light at the end of the tunnel. There are already a couple of projects also inspired by LiveView (GoLive, live), but I had my own vision that I wanted to realise.
-
Build hotwire applications using Go
Does anyone have an opinion or comparison of hotwire and this similar project? https://github.com/jfyne/live
-
jfyne/live - New release: Live Components. Go server side interactive web app components with no Javascript
Little interactions like menu clicks and animations and such aren't a good fit, but that is where you could use client side javascript. And Live provides hooks to help with this https://github.com/jfyne/live#hooks.
The javascript required by live (https://github.com/jfyne/live/tree/master/web) comes embedded with it, but is also available as an npm package (https://www.npmjs.com/package/@jfyne/live) if you have a more complicated need.
sqlc
-
Show HN: Sqlbind a Python library to compose raw SQL
I came across this yesterday for golang: https://sqlc.dev which is somewhat like what you want, maybe.
Not sure it allows you to parameterize table names but the basic idea is codegen from sql queries so you are working with go code (autocompletion etc).
- API completa em Golang - Parte 7
-
ORMs are nice but they are the wrong abstraction
Agreed, but tools like https://sqlc.dev, which I mention in the article, are a good trade-off that allows you to have verified, testable, SQL in your code.
- API completa em Golang - Parte 6
-
Go ORMs Compared
sqlc is not strictly a conventional ORM. It offers a unique approach by generating Go code from SQL queries. This allows developers to write SQL, which sqlc then converts into type-safe Go code, reducing the boilerplate significantly. It ensures that your queries are syntactically correct and type-safe. sqlc is ideal for those who prefer writing SQL and are looking for an efficient way to integrate it into a Go application.
-
Type-safe Data Access in Go using Prisma and sqlc
I was browsing awesome-go for ideas on how to setup my data access layer when I stumbled on sqlc. It seemed like a great option. Code generation is a strategy often used in the Go ecosystem and making my queries safe at compile time was an idea I really liked. Knex was great, but it required of me that I test thoroughly my queries at runtime and that I sanitize my query results to ensure type safety within my application.
-
Level UP your RDBMS Productivity in GO
Now, we are going to generate the code. For this purpose, we are going to use sqlc.
-
What 3rd-party libraries do you use often/all the time?
https://github.com/sqlc-dev/sqlc — for use with //go:generate
- API completa em Golang - Parte 1
- Tenha controle sobre seu SQL com Golang e SQLC
What are some alternatives?
sqlx - general purpose extensions to golang's database/sql
GORM - The fantastic ORM library for Golang, aims to be developer friendly
SQLBoiler - Generate a Go ORM tailored to your database schema.
ent - An entity framework for Go
pgx - PostgreSQL driver and toolkit for Go
jet - Type safe SQL builder with code generation and automatic query result data mapping
PyPika - PyPika is a python SQL query builder that exposes the full richness of the SQL language using a syntax that reflects the resulting query. PyPika excels at all sorts of SQL queries but is especially useful for data analysis.
Squirrel - Fluent SQL generation for golang
xo - Command line tool to generate idiomatic Go code for SQL databases supporting PostgreSQL, MySQL, SQLite, Oracle, and Microsoft SQL Server
goqu - SQL builder and query library for golang
go - The Go programming language
migrate - Database migrations. CLI and Golang library.