Skip to content

[extension/db_storage] Replace github.com/mattn/go-sqlite3 with a non-CGO alternative #35280

Closed
@Fiery-Fenix

Description

@Fiery-Fenix

Component(s)

extension/storage/dbstorage

Describe the issue you're reporting

At the moment extension/db_storage is using github.com/mattn/go-sqlite3 driver which require CGO_ENABLED=1 during build time to work.
But, according Contribution Guide using CGO is prohibited and it's make sense to replace github.com/mattn/go-sqlite3 driver with pure Go driver to eliminate CGO_ENABLED=1 requirement.
Fortunately, there is few pure Go drivers that might be used as drop-in replacement (thanks Grafana developers for initial evaluation):

  • modernc.org/sqlite
  • github.com/glebarez/go-sqlite
  • github.com/ncruces/go-sqlite3

Because of nature how SQLite driver is used in extension/db_storage this change shouldn't introduce any major issues from my perspective

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions