Go Sqlite

Open-source Go projects categorized as Sqlite | Edit details

Top 19 Go Sqlite Projects

  • GitHub repo rqlite

    The lightweight, distributed relational database built on SQLite

    Project mention: Cloudflare Durable Objects Are Now Generally Available | news.ycombinator.com | 2021-11-15
  • GitHub repo migrate

    Database migrations. CLI and Golang library.

    Project mention: Are entity framework tools typically avoided with MySQL & Go and are there alternatives for migration script tooling that version control the entire schema like SSDT? | reddit.com/r/golang | 2021-11-16

    Not that I know of. Generally the approach taken is to have ordered migration scripts and a schema version, and then have code automatically apply the appropriate set of migrations in the right order, for example using golang-migrate.

  • Scout APM

    Scout APM: A developer's best friend. Try free for 14-days. Scout APM uses tracing logic that ties bottlenecks to source code so you know the exact line of code causing performance issues and can get back to building a great product faster.

  • GitHub repo xo

    Command line tool to generate idiomatic Go code for SQL databases supporting PostgreSQL, MySQL, SQLite, Oracle, and Microsoft SQL Server (by xo)

    Project mention: We Went All in on Sqlc/Pgx for Postgres and Go | news.ycombinator.com | 2021-09-08

    I'm a big fan of the database first code generator approach to talking to an SQL database, so much so that I wrote pggen[1] (not to be confused with pggen[2], as far as I can tell a sqlc fork, which I just recently learned about).

    I'm a really big partisan of this approach, but I think I'd like to play the devil's advocate here and lay out some of the weaknesses of both a database first approach in general and sqlc in particular.

    All database first approaches struggle with SQL metaprogramming when compared with a query builder library or an ORM. For the most part, this isn't an issue. Just writing SQL and using parameters correctly can get you very far, but there are a few times when you really need it. In particular, faceted search and pagination are both most naturally expressed via runtime metaprogramming of the SQL queries that you want to execute.

    Another drawback is poor support from the database for this kind of approach. I only really know how postgres does here, and I'm not sure how well other databases expose their queries. When writing one of these tools you have to resort to tricks like creating temporary views in order infer the argument and return types of a query. This is mostly opaque to the user, but results in weird stuff bubbling up to the API like the tool not being able to infer nullability of arguments and return values well and not being able to support stuff like RETURNING in statements. sqlc is pretty brilliant because it works around this by reimplementing the whole parser and type checker for postgres in go, which is awesome, but also a lot of work to maintain and potentially subtlety wrong.

    A minor drawback is that you have to retrain your users to write `x = ANY($1)` instead of `x IN ?`. Most ORMs and query builders seem to lean on their metaprogramming abilities to auto-convert array arguments in the host language into tuples. This is terrible and makes it really annoying when you want to actually pass an array into a query with an ORM/query builder, but it's the convention that everyone is used to.

    There are some other issues that most of these tools seem to get wrong, but are not impossible in principle to deal with for a database first code generator. The biggest one is correct handling of migrations. Most of these tools, sqlc included, spit out the straight line "obvious" go code that most people would write to scan some data out of a db. They make a struct, then pass each of the field into Scan by reference to get filled in. This works great until you have a query like `SELECT * FROM foos WHERE field = $1` and then run `ALTER TABLE foos ADD COLUMN new_field text`. Now the deployed server is broken and you need to redeploy really fast as soon as you've run migrations. opendoor/pggen handles this, but I'm not aware of other database first code generators that do (though I could definitely have missed one).

    Also the article is missing a few more tools in this space. https://github.com/xo/xo. https://github.com/gnormal/gnorm.

    [1]: https://github.com/opendoor/pggen

  • GitHub repo upper.io/db

    Data access layer for PostgreSQL, CockroachDB, MySQL, SQLite and MongoDB with ORM-like features.

    Project mention: Migrating from PHP to Go | reddit.com/r/golang | 2021-09-30

    upper.io is a viable alternative to GORM. Just a suggestion.

  • GitHub repo askgit

    Query git repositories with SQL. Generate reports, perform status checks, analyze codebases. 🔍 📊

    Project mention: Askgit: Command-line tool for running SQL queries on Git repositories | reddit.com/r/CKsTechNews | 2021-11-27
  • GitHub repo dbmate

    :rocket: A lightweight, framework-agnostic database migration tool.

    Project mention: Database migrations with nodejs? sqlite3 / lowdb? | reddit.com/r/node | 2021-10-13

    If you want something agnostic, you can check dbmate that can do this just from CLI.

  • GitHub repo goose

    A database migration tool. Supports SQL migrations and Go functions.

    Project mention: Dockerize & Backup A Postgres Database | dev.to | 2021-11-16

    Great, so our data has been backed up! This means that you can restore folks back to a particular point in time when things were as they should be. So long as you have an application that can reliably serve this data (ruminates on articles using Goose to accomplish database versioning) you can restore functionality and value to your users.

  • Nanos

    Run Linux Software Faster and Safer than Linux with Unikernels.

  • GitHub repo goqu

    SQL builder and query library for golang

    Project mention: Migrating from PHP to Go | reddit.com/r/golang | 2021-09-30

    https://github.com/doug-martin/goqu for building SQL queries. Supports MySQL and Postgres at least - super handy!

  • GitHub repo tbls

    tbls is a CI-Friendly tool for document a database, written in Go.

    Project mention: Lesser Known PostgreSQL Features | news.ycombinator.com | 2021-11-09

    In-database comments combined with something like https://github.com/k1LoW/tbls make for very cheap database documentation.

    No affiliation with tbls except that I'm a big fan

  • GitHub repo gobuffalo/pop

    A Tasty Treat For All Your Database Needs (by gobuffalo)

    Project mention: Go Tools: For database schema migrations | dev.to | 2021-02-22

    github.com/gobuffalo/pop: CLI (DSL + Explicit SQL), and

  • GitHub repo prisma-client-go

    Prisma Client Go is an auto-generated and fully type-safe database client

    Project mention: Schema-driven development in 2021 | dev.to | 2021-07-15

    From the schema, a TypeScript Prisma Client can be generated that can be used in Node.js applications - including Next.js! A Go Prisma Client is also in the works.

  • GitHub repo go-sqlbuilder

    A flexible and powerful SQL string builder library plus a zero-config ORM.

  • GitHub repo dbhub.io

    A "Cloud" for SQLite databases. Collaborative development for your data. :)

    Project mention: DBHub: SQLite Storage “In the Cloud” | news.ycombinator.com | 2021-09-28
  • GitHub repo cachego

    Golang Cache component - Multiple drivers

  • GitHub repo go-sqlite

    Low-level Go interface to SQLite 3

    Project mention: New advanced, CGo-free SQLite package | reddit.com/r/golang | 2021-04-30

    modernc.org/sqlite provides a database/sql driver, but does not (currently) provide an easy way to get at the more advanced functionality of SQLite, like streaming blob I/O or user-defined functions. David Crawshaw has argued that the database/sql API is not a good fit for SQLite, which is how crawshaw.io/sqlite came about.

  • GitHub repo Sqinn-Go

    SQLite with pure Go

  • GitHub repo dbui

    Universal Database CLI for MySQL, PostgreSQL, and SQLite. Terminal User Interface Application.

    Project mention: I just found a decent, yet underrated, interactive CLI for MySQL, PostgreSQL, and SQLite | reddit.com/r/Database | 2021-06-28
  • GitHub repo dbbench

    🏋️ dbbench is a simple database benchmarking tool which supports several databases and own scripts

  • GitHub repo csv-sql

    Command-line tool to load csv and excel (xlsx) files and run sql commands

    Project mention: CLI tool to import/export csv/xlsx files and run SQL queries | reddit.com/r/SideProject | 2021-06-13
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2021-11-27.

Go Sqlite related posts

Index

What are some of the best open-source Sqlite projects in Go? This list will help you:

Project Stars
1 rqlite 9,071
2 migrate 7,585
3 xo 2,949
4 upper.io/db 2,803
5 askgit 2,680
6 dbmate 2,182
7 goose 2,002
8 goqu 1,319
9 tbls 1,186
10 gobuffalo/pop 1,138
11 prisma-client-go 1,045
12 go-sqlbuilder 663
13 dbhub.io 192
14 cachego 158
15 go-sqlite 146
16 Sqinn-Go 83
17 dbui 62
18 dbbench 61
19 csv-sql 24
Find remote jobs at our new job board 99remotejobs.com. There are 34 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com