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

Fix :memory: database support for sqlite #37

Open
grokloc opened this issue Jul 6, 2019 · 1 comment
Open

Fix :memory: database support for sqlite #37

grokloc opened this issue Jul 6, 2019 · 1 comment

Comments

@grokloc
Copy link

grokloc commented Jul 6, 2019

This library doesn't seem to support :memory: databases in sqlite - the fix is simple:

at https://github.com/huntlabs/hunt-database/blob/master/source/hunt/database/driver/sqlite/Connection.d#L78

add something like this:

if (filename == "/:memory:") {
         filename = ":memory:";
}

and now you can use connection strings like sqlite:///:memory

For more info:

https://www.sqlite.org/inmemorydb.html

@zoujiaqing
Copy link
Member

Thanks, but we will remove sqlite support in next big release.

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

No branches or pull requests

2 participants