Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SQLite package #1158

Open
hishamco opened this issue Apr 22, 2024 · 5 comments
Open

Add SQLite package #1158

hishamco opened this issue Apr 22, 2024 · 5 comments
Labels
enhancement New feature or request

Comments

@hishamco
Copy link

Problem

Lack to support SQLite database OOB

Solution

Introducing Testcontainers.Sqlite package

Benefit

Allow devs to use SQLite

Alternatives

Nothing

Would you like to help contributing this enhancement?

Yes

@hishamco hishamco added the enhancement New feature or request label Apr 22, 2024
@0xced
Copy link
Contributor

0xced commented Apr 22, 2024

Could you please elaborate on what are the advantages of using a Docker container over directly using one of the many available SQLite libraries such as Microsoft.Data.Sqlite, SQLite-net or System.Data.SQLite?

@hishamco
Copy link
Author

I working on an OSS project I just find myself need a docker image for integration testing. I know I can manage it myself by creating a .db but I need to cleanup everything after the testing

@HofmeisterAn
Copy link
Collaborator

Couldn't you use the generic container builder? We could add a section to our documentation covering common builder patterns, similar to an article or how-to guide. I am uncertain whether we require modules for all kinds of "simple" configurations.

Is there even a container image available? How would you access the database from remote? Looking forward to discussing this topic and hear your thoughts (since I would simply store the database in-memory and might miss something).

@hishamco
Copy link
Author

Is there even a container image available?

https://hub.docker.com/r/keinos/sqlite3#!

(since I would simply store the database in-memory and might miss something).

This sometimes problematic especially in testing

@HofmeisterAn
Copy link
Collaborator

https://hub.docker.com/r/keinos/sqlite3#!

As I commented here, I do not think it hosts a database accessible remotely. According to the Docker Hub docs, they also mount the database file from the host. I am not sure how you are planning to implement a module, but I am curious to see the proof of concept.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants