reader
sqlc
Our great sponsors
reader | sqlc | |
---|---|---|
30 | 169 | |
412 | 10,518 | |
- | 5.9% | |
9.2 | 9.7 | |
18 days ago | 6 days ago | |
Python | Go | |
BSD 3-clause "New" or "Revised" License | 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.
reader
-
Alternatives to Makefile for Python
I like this pattern so much, I wrote an article about it; if you want to see what it looks like in real life, check this out.
-
reader 2.5 released – a Python feed reader library
To find out more, check out the GitHub repo and the docs, or give the tutorial a try.
- Write an SQL query builder in 150 lines of Python
-
sqlite-utils - my Python library and CLI tool for manipulating SQLite databases
Looking now through the Python API docs, I found the Quoting characters for use in search thing, which may come in handy for something I'm doing for my feed reader library (deduplicating articles). Not sure if I'll vendor it or add sqlite-utils as a new dependency, but it's good to know someone already solved this problem (I have a prototype, but I haven't really tested it).
-
reader 2.0 released – a Python feed reader library
I'm happy to announce version 2.0 of reader, a Python RSS / Atom / JSON feed reader library.
-
Sunday Daily Thread: What's everyone working on this week?
I'm also working on the 2.0 version of my feed reader library. The backwards compatibility break allows me to clean up a bunch of unnecessary code and fix some bad design decisions; I've deleted 250 lines of code until now, and it's very satisfying.
-
PEP 661 -- Sentinel Values
In my feed reader library, I wrote my own (used here).
The exact same problems None has when it's not a valid value. None is different from the variable type, that's why you have Optional[VarType], which is an alias for Union[VarType, None]; you can model this in exactly the same way: Union[VarType, MissingType]; here's an example.
-
Modern CI is Too Complex and Misdirected
Did this a few days ago for a project of mine and I think the result turned out really nice (human-targeted stuff is at the top, ci- stuff is towards the end).
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.