WebSQL icon indicating copy to clipboard operation
WebSQL copied to clipboard

Import in Vue project

Open sweebee opened this issue 6 years ago • 1 comments

I'm using the library for a while now in some simple JS projects, But I want to include it into my Vue project. Is there a way to do this? Can't get it working this way:

import * as WebSQL from './WebSQL';
var db = WebSQL('test');

Object.defineProperty(Vue.prototype, '$db', { value: db });

I keep getting: Can't find variable: WebSQL (WebSQL.js:429)

sweebee avatar Jun 12 '18 17:06 sweebee

This project is pretty old at this point. If you'd like to send a pull request, I'd gladly accept.

psayre23 avatar Jun 16 '18 16:06 psayre23