Jump to content
UBot Underground

Accessing An Sqlite Database


Recommended Posts

Hey all, I'd like to hit you all up today to see if you can give me some insights. I've been using the great plugin from Aymen to access sqlite databases, but I'd like to take things a bit further and be able to access the sqlite database directly through jquery calls inside of ubot. Anyone got any ideas on how to accomplish this?

 

It would tremendously improve my tables in the ubot browser.

 

Thanks!

 

Frank

Link to post
Share on other sites

Hey Frank,

 

You will want to take a look at SQL.js to accomplish this.

 

https://github.com/kripken/sql.js

 

I've used this, but not in UBot. The challenge is loading the db file and saving the db file and I had to use the persistent database example to make it work for my project. I don't think that method will translate well to UBot though.

 

https://github.com/kripken/sql.js/wiki/Persisting-a-Modified-Database

 

Take a look at the web worker example as I think that will be the best bet unless you are using node.js.

 

Hope this helps.

 

 

Link to post
Share on other sites

Hey Frank,

I know u said JQuery but this may interest you.

 

http://network.ubotstudio.com/forum/index.php/topic/19021-run-sqlite3-in-ubot-59x-temp-fixworkaround/

 

Nice intro to sqlite3 in python

 

 

CD

Link to post
Share on other sites

Hey all, I'd like to hit you all up today to see if you can give me some insights. I've been using the great plugin from Aymen to access sqlite databases, but I'd like to take things a bit further and be able to access the sqlite database directly through jquery calls inside of ubot. Anyone got any ideas on how to accomplish this?

 

It would tremendously improve my tables in the ubot browser.

 

Thanks!

 

Frank

 

Just out of interested. What is not working for you with the plugin? Or do you try to improve performance somehow?

 

Dan

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...