rick_db
goqu
rick_db | goqu | |
---|---|---|
3 | 23 | |
2 | 2,239 | |
- | - | |
1.5 | 5.6 | |
over 1 year ago | about 1 month ago | |
Python | Go | |
MIT 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.
rick_db
-
New web framework for Python in development
I forgot to add that most of my "custom" implementations are also open-source, to avoid repeating the same boilerplate over and over at different places. Its not "pythonic", and it is at varying degrees of maturity, and honestly, they are mostly for internal use in my projects (documentation is incomplete, interfaces may change, etc), but if you want have a look:
https://github.com/oddbit-project/rick_db - postgresql query builder & object mapper - it is built around the concept of pure data objects (no indirect references do open resources) that can represent application data between layers; It also features a forward-only migration manager;
https://github.com/oddbit-project/rick - plumbing, validation & assorted logic - provides service locators, registries, containers (including dependency injection); validators, forms & request validation (with support for laravel-style validation chains), and a bunch of other stuff;
https://github.com/oddbit-project/pokie - flask-based web meta-framework, focused on REST api design, that brings components from the other two projects into an modular applicational framework;
-
Windyquery: A non-blocking Python PostgreSQL query builder
That is basically the description of an object mapper, with all the guarantees of an object mapper :). It seems if you actually use the query builder as such, no guarantees exist.
I'm pretty picky regarding query builders and ORM's, to the extent of having written several of them over the years, in different languages (both dynamic and strong typed, unfortunately closed-source). I'm a strong advocate of schema-first design, and usually a query builder will allow you to design your queries explicitly, but having some internal behaviors (such as string concatenation, identifier quoting and automatic in-order separation of parameters and values to be bound) taken care of. As good examples of this, I'd mention golang's goqu (https://github.com/doug-martin/goqu) and - to some extent - C# SqlKata (https://sqlkata.com/). Following my frustrations with Python ORMs, I built my own toy project, sort-of-in-beta, called rickdb (https://github.com/oddbit-project/rick_db).
goqu
-
newbie here looking for a framework
For SQL, I'd probably go with goqu http://doug-martin.github.io/goqu/
- Open-sourcing SQX, a way to build flexible database models in Go
-
Best sqlc alternative for dynamic queries?
I use goqu (https://github.com/doug-martin/goqu)
-
ORM or no ORM (and which ones)?
SQL Builders (think squirrel or goqu)
-
Golang Postgres Schema Builder?
I've been looking for a package that allows me to build Postgres DDL statements in Golang. I'm currently using Goqu (https://github.com/doug-martin/goqu) for building statements and it works great, however it does not have support for building schemas. Basic things like creating tables, creating indexes. A great one in JavaScript can be found here: (https://knexjs.org/guide/schema-builder.html#essentials) I have been unable to find anything in Go, does anyone know of any packages like this?
-
GET method to get records from SQL database
Then use something like https://github.com/doug-martin/goqu to build the SQL.
-
ORM in Golang?
Try this
- Best SQL builder.
-
ORM vs SQL Builder in Go
We've been using goqu and it's super nice! although there are a ton of other query builders that could better fit your use-case.
-
escaping text in Go
If the statement is too dynamic to use query parameters I'd ideally use a dynamic query builder rather than concatenating strings. Goqu is a lib like that but I haven't yet used it personally https://github.com/doug-martin/goqu
What are some alternatives?
SqlKata Query Builder - SQL query builder, written in c#, helps you build complex queries easily, supports SqlServer, MySql, PostgreSql, Oracle, Sqlite and Firebird
Squirrel - Fluent SQL generation for golang
jOOQ - jOOQ is the best way to write SQL in Java
pgx - PostgreSQL driver and toolkit for Go
pokie
sqlc - Generate type-safe code from SQL
jet - Type safe SQL builder with code generation and automatic query result data mapping
chproxy - Open-Source ClickHouse http proxy and load balancer
sqrl - Fluent SQL generation for golang
sqlx - general purpose extensions to golang's database/sql
diskv - A disk-backed key-value store.
Tile38 - Real-time Geospatial and Geofencing