Unify open and openInMemory with Location type#49
Conversation
It's an option, but I'm also hesitant. One of the things that makes me hesitant is that you can pass query params to set certain options, which can override or be overriden by the options record you pass to |
That's supported via Sqlite URIs but I don't think it is supported by the node API, which says the string has to be a file path or Maybe a function like |
|
I don't think I like moving location into the options. And a connection string that is node-api-specific doesn't feel right either. Happy to merge this as-is soon unless you have thoughts. |
|
I'm happy to merge this. |
Closes #46
Thoughts on adding a ConnectionString variant? It could just be a pass-thru to DatabaseSync. That would make it a lot easier to configure the registry with environment variables for deployment. I'm torn because that's a pretty raw approach, and a true Uri option would be better, but it doesn't look like node's sqlite supports sqlite's uri config.