go-gorm / go-gorm/sqlite

Make this package SQLite implementation agnostic

Open
#160 0 comments 6 reactions 1 assignee Claimed by @jinzhu View on GitHub
Dominant language
Go
Stars
231
Forks
217
PR merge metrics
No merged PRs in 30d

Description

## Describe the feature

It would be awesome if this package could be independent of go-sqlite3 and instead, use [`go-sqlite3`](https://github.com/mattn/go-sqlite3) (`sqlite3`) when `CGO_ENABLED=1` and use [`modernc.org/sqlite`](https://gitlab.com/cznic/sqlite) when not.

## Motivation

This allows the user to choose between either [`go-sqlite3`](https://github.com/mattn/go-sqlite3) (`sqlite3`) or [`modernc.org/sqlite`](https://gitlab.com/cznic/sqlite) (`sqlite`) pure-go implementation. [`go-sqlite3`](https://github.com/mattn/go-sqlite3) is excellent, but CGO is a lot to deal with.

The https://github.com/glebarez/sqlite driver is behind on many commits, it would be much simpler to maintain one codebase for multiple drivers rather than two, especially since they are _almost_ the same.

## Related Issues

https://github.com/go-gorm/sqlite/issues/77 https://github.com/go-gorm/sqlite/issues/72 https://github.com/go-gorm/sqlite/pull/93 https://github.com/go-gorm/sqlite/issues/35

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.