Skip to content
New issue

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

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

Already on GitHub? # to your account

adding support for sqlite3 #26

Merged
merged 2 commits into from
Aug 22, 2016
Merged

adding support for sqlite3 #26

merged 2 commits into from
Aug 22, 2016

Conversation

csepulv
Copy link
Contributor

@csepulv csepulv commented Aug 8, 2016

I've been using bookshelf-json-columns and started to use sqlite in memory DB's in my tests. Unfortunately, I ran into some issues as I am using sqlite3 module and not sqlite, so I submit this pull request to add sqlite3

@@ -52,7 +52,7 @@ export default Bookshelf => {
}
});

if (client === 'sqlite') {
if (client === 'sqlite' || client === 'sqlite'3) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you fix the syntax error here?

@ricardogama
Copy link
Collaborator

Hi @csepulv!

We're also using sqlite3 as dependency to test the plugin with SQLite, you can easily fix this by changing sqlite3 to sqlite on your knexfile.

However, the plugin should accept all clients and aliases knex supports, so I'll be glad to merge your PR, cheers!

@csepulv
Copy link
Contributor Author

csepulv commented Aug 22, 2016

Good to know about the sqlite change. Sorry about the typo.

@ricardogama ricardogama merged commit a4e50d4 into seegno:master Aug 22, 2016
@ricardogama
Copy link
Collaborator

@csepulv Released as 1.1.1, cheers!

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

Successfully merging this pull request may close these issues.

2 participants