Jump to content
UBot Underground

Ubot 5 - sqlite how to create an emty database?


Recommended Posts

Thanks, but the question is how to CREATE an empty database to start with, not connect to an existing one.  However, even when I put a pre-made sqlite file in there I do not get anything but an error establishing a connection. I have been using aymen's sqlite plugin previously, but I cant even make that work with ubot 5 now... kind of having a nighmare right now with several issues at the same time and not sure whats causing what. in order to even file a bug report.

 

 

http://screencast.com/t/RjMazxb1zty

 

Use the Connect to Database command - when the wizard pops up use the dropdown to select the database type you are interested in. (as seen at the link above)

Link to post
Share on other sites

no command in there like aymens plugin. As a quick get round you can use SQLite manager plugin for firefox to create a DB(if you only plan to use a pre created DB in your software

Link to post
Share on other sites

no command in there like aymens plugin. As a quick get round you can use SQLite manager plugin for firefox to create a DB(if you only plan to use a pre created DB in your software

 

Thanks, that's what I thought...  Problem is my bot (using Aymens plugin now) needs to create the database on the fly... at least thats how I coded it now (uses a whole new db for each site its scraping because each site is pretty huge (100k+ entries) and scraping hundreds of sites. only reason I was interested in changing from aymens plugin is, I assume end user would not need to install anything extra with the built-in one... but I have yet to even confirm that is the case or not either. I feel kind of under water on this ub5 trying to chase down all the things I cant seem to get working... oh well... thanks for confirming what I thought anyway.

Link to post
Share on other sites
  • 1 year later...

Hello,

 

I suppose you can just open the connection the way Big Jay showed up and then send the CREATE statement in SQL format using the QUERY command (with no results).

 

Of course you might want to test first if the database and the tables are already existing before creating them.

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...