Jump to content
UBot Underground

[SELL] SQLite Database Plugin


Recommended Posts

  • Replies 263
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

Are you sick of using text files and CSV files to store your data in the most unprofessional way possible ?   Now with SQLite plugin for Ubot , you will be able to store data , update data , delete da

Hi Everyone, I wanted to confirm the same issues with SQLite and NULL values and DOUBLE QUOTES in your literal strings. I wrestled with this for several hours till I had a breakthrough via trial&

Update 1.2   -Added a grid window command   http://content.screencast.com/users/aymen99/folders/Jing/media/ec539139-86a3-4465-afa6-c33278242026/2013-04-06_1906.png   http://content.screencast.com/user

Posted Images

Hi, is it possible to connect to a password protected Sqlite DB?

 

how to write the connection string? as the plugin only ask for the path.

 

Thanks

I think this is currently not supported with the plugin.

 

Dan

  • Like 1
Link to post
Share on other sites

Hi, is it possible to connect to a password protected Sqlite DB?

 

how to write the connection string? as the plugin only ask for the path.

 

Thanks

 

You can't do that for now , i'll add it in a future update!

  • Like 1
Link to post
Share on other sites
  • 1 month later...

Hello.

 

I have some issues to execute a query with WHERE xx  LIKE 'yy'

The sql query works fine with the sqlite command line tool. But when I try to run it with the plugin it doesn't work.

 

Seems to be related to the LIKE command. 

 

Here's the complete query:

select urls from profiles WHERE Sprachen  LIKE 'deutsch'

 

Thanks in advance for your help

Dan

  • Like 1
Link to post
Share on other sites

Update:

 

Seems to be related to the size of the database. It works for a small DB. But for a large one with 5Million entries this doesn't work correctly.

But when I run the query with my sqlite admin tool (sqlite expert professional), the query executes in 99ms. 

 

Update2:

Ok this issue is clearly a time problem. I had to wait a lot longer for the query to finish. 

 

So the following query:

select urls from profiles WHERE Sprachen  LIKE 'deutsch'

 

Took  95ms in my SQLite Tool.

 

With the UBot Plugin the same query against the same database took:

2minutes and 47 seconds.

 

Any idea why this happens? Can we improve that?

 

Thanks

Dan

Link to post
Share on other sites

Update:

 

Seems to be related to the size of the database. It works for a small DB. But for a large one with 5Million entries this doesn't work correctly.

But when I run the query with my sqlite admin tool (sqlite expert professional), the query executes in 99ms. 

 

Update2:

Ok this issue is clearly a time problem. I had to wait a lot longer for the query to finish. 

 

So the following query:

select urls from profiles WHERE Sprachen  LIKE 'deutsch'

 

Took  95ms in my SQLite Tool.

 

With the UBot Plugin the same query against the same database took:

2minutes and 47 seconds.

 

Any idea why this happens? Can we improve that?

 

Thanks

Dan

is this the command that returns into a ubot table, how many rows if its a lot then the bottleneck is loading into the ubot table. One quick fix is to use the limit SQLite command process being.

 

1.check how many rows your database has for the query.

2.use the SQLite limit command to read out in chunks of 500.

3.add to something like a large table.

4.repeat to all are read out.

Link to post
Share on other sites

is this the command that returns into a ubot table, how many rows if its a lot then the bottleneck is loading into the ubot table. One quick fix is to use the limit SQLite command process being.

 

1.check how many rows your database has for the query.

2.use the SQLite limit command to read out in chunks of 500.

3.add to something like a large table.

4.repeat to all are read out.

Thanks Kev.

 

tested that as well. But that's even slower. Probably because I have to use offset in combination with LIMIT. 

 

I also tried to user "where rowid between 1 AND 50000"

but that takes over 2 minutes as well.

 

Even when I use "save to file". So no variables or anything involved.

 

Same query executes in 39ms in my tool. 

 

So this looks like a performance issue with the sqlite plugin to me?

 

@Aymen: Any idea why this could happen?

 

Thanks

Dan

Link to post
Share on other sites

Thanks Kev.

 

tested that as well. But that's even slower. Probably because I have to use offset in combination with LIMIT. 

 

I also tried to user "where rowid between 1 AND 50000"

but that takes over 2 minutes as well.

 

Even when I use "save to file". So no variables or anything involved.

 

Same query executes in 39ms in my tool. 

 

So this looks like a performance issue with the sqlite plugin to me?

 

@Aymen: Any idea why this could happen?

 

Thanks

Dan

 

I'll check that out Dan!

Link to post
Share on other sites
  • 3 weeks later...
  • 4 weeks later...
  • 3 weeks later...

Regardless of how I set up the db path and what sql command I use, I continue to get the "Object reference not set to an instance of an object" error. Can create a db file, that works, all other sql commands give me this error and can not show any data using the get data command.

 

Tried to create and populate the db file using sqliteexpert as Dan suggested (great program BTW, thanks Dan!) and then get data using ubot, still get the object error and 0 results. Tried this using the special folder (my documents) as well as direct path e:\dbname.sqlite and get the same error.

 

Even tried the exact same data and examples Aymen showed in the video, getting same error.

 

Using latest version (I assume, just downloaded a few weeks ago)

 

Any suggestions?

 

Thanks much!

Link to post
Share on other sites

Regardless of how I set up the db path and what sql command I use, I continue to get the "Object reference not set to an instance of an object" error. Can create a db file, that works, all other sql commands give me this error and can not show any data using the get data command.

 

Tried to create and populate the db file using sqliteexpert as Dan suggested (great program BTW, thanks Dan!) and then get data using ubot, still get the object error and 0 results. Tried this using the special folder (my documents) as well as direct path e:\dbname.sqlite and get the same error.

 

Even tried the exact same data and examples Aymen showed in the video, getting same error.

 

Using latest version (I assume, just downloaded a few weeks ago)

 

Any suggestions?

 

Thanks much!

Could you post or PM your test DB and the code you use in UBot Studio?

 

Dan

Link to post
Share on other sites

Could you post or PM your test DB and the code you use in UBot Studio?

 

Dan

 

 

Sure thing, thanks Dan, here is the code, file attached:

 

plugin command("SQLlite.dll""SQLite Create Database""{$special folder("My Documents")}/pc/pcdb.sqlite")

alert($plugin function("SQLlite.dll""sqlite error"))

plugin command("SQLlite.dll""SQLite Query""{$special folder("My Documents")}/pc/pcdb.sqlite""create table mytable (name varchar(50), category varchar(25), filename varchar(75))")

alert($plugin function("SQLlite.dll""sqlite error"))

plugin command("SQLlite.dll""SQLite Query""{$special folder("My Documents")}/pc/pcdb.sqlite""insert into mytable (name, category) values (\'Test Name\',\'category1\')")

alert($plugin function("SQLlite.dll""sqlite error"))

plugin command("SQLlite.dll""SQLite Query""{$special folder("My Documents")}/pc/pcdb.sqlite""insert into mytable (name, category, filename) values (\'Test Name 2\',\'category2\',\'myfile.zip\')")

alert($plugin function("SQLlite.dll""sqlite error"))

plugin command("SQLlite.dll""SQLite Get Data""{$special folder("My Documents")}/pc/pcdb.sqlite""select * from mytable order by name desc"&results)

alert($plugin function("SQLlite.dll""sqlite error"))

 
Verified that the create table and insert commands are working, opened the file in sqliteexpert, but when I try to select * with the get data command, I get the object error and zero results.
 
Thanks!
 
-----
EDIT
forum here is telling me can't attach a sqlite or zip file, so not sure how to upload it? No way in PM either.
Link to post
Share on other sites

Table cells can not be NULL for the Get Data command. You can create the table with empty cells, or you can always add information to all the cells. 

 

 

plugin command("SQLlite.dll""SQLite Create Database""{$special folder("Application")}\\test.sqlite")
alert($plugin function("SQLlite.dll""sqlite error"))
plugin command("SQLlite.dll""SQLite Query""{$special folder("Application")}\\test.sqlite""create table mytable (name varchar(50), category varchar(25), filename varchar(75))")
alert($plugin function("SQLlite.dll""sqlite error"))
plugin command("SQLlite.dll""SQLite Query""{$special folder("Application")}\\test.sqlite""insert into mytable (name, category, filename) values (\'Test Name\',\'category1\',\'NO FILE\')")
alert($plugin function("SQLlite.dll""sqlite error"))
plugin command("SQLlite.dll""SQLite Query""{$special folder("Application")}\\test.sqlite""insert into mytable (name, category, filename) values (\'Test Name 2\',\'category2\',\'myfile.zip\')")
alert($plugin function("SQLlite.dll""sqlite error"))
plugin command("SQLlite.dll""SQLite Get Data""{$special folder("Application")}\\test.sqlite""select * from mytable"&results)
alert($plugin function("SQLlite.dll""sqlite error"))

 

 

Cheers

Dan

Link to post
Share on other sites

Table cells can not be NULL for the Get Data command. You can create the table with empty cells, or you can always add information to all the cells. 

 

 

plugin command("SQLlite.dll""SQLite Create Database""{$special folder("Application")}\\test.sqlite")

alert($plugin function("SQLlite.dll""sqlite error"))

plugin command("SQLlite.dll""SQLite Query""{$special folder("Application")}\\test.sqlite""create table mytable (name varchar(50), category varchar(25), filename varchar(75))")

alert($plugin function("SQLlite.dll""sqlite error"))

plugin command("SQLlite.dll""SQLite Query""{$special folder("Application")}\\test.sqlite""insert into mytable (name, category, filename) values (\'Test Name\',\'category1\',\'NO FILE\')")

alert($plugin function("SQLlite.dll""sqlite error"))

plugin command("SQLlite.dll""SQLite Query""{$special folder("Application")}\\test.sqlite""insert into mytable (name, category, filename) values (\'Test Name 2\',\'category2\',\'myfile.zip\')")

alert($plugin function("SQLlite.dll""sqlite error"))

plugin command("SQLlite.dll""SQLite Get Data""{$special folder("Application")}\\test.sqlite""select * from mytable"&results)

alert($plugin function("SQLlite.dll""sqlite error"))

 

 

Cheers

Dan

 

Got it, thanks a bunch Dan, works like a charm now :)

Appreciate your help!

Link to post
Share on other sites
  • 3 weeks later...

Hey The Fixer,

 

I believe most Ubotters run SQLite to write to the local disk on their PC and maybe on a hosted VPS or dedicated server. Shared web hosted accounts (usually Linux or Windows based) will most certainly not allow you to run SQLite directly on the server. Here is some SQLite info that may answer your question better, since I'm not sure what your end goal is with SQLite and your data. You may just be looking for a traditional RDBMS like MySQL to store and manipulate your data.

 

About SQLite
http://www.sqlite.org/about.html

Appropriate Uses For SQLite
http://www.sqlite.org/whentouse.html
"SQLite is not directly comparable to other SQL database engines such as Oracle, PostgreSQL, MySQL, or SQL Server since SQLite is trying to solve a very different problem."

 

I hope that helps someone...

-Rich

Link to post
Share on other sites

Been real busy Dan , i'll try to check it out soon!

 

Hi Aymen,

 

don't want to be impatiently, but may I ask if you had time to look into this already?

If not, any idea when you might have a free timeslot?

 

Cheers

Dan

Link to post
Share on other sites

Hi Aymen,

 

don't want to be impatiently, but may I ask if you had time to look into this already?

If not, any idea when you might have a free timeslot?

 

Cheers

Dan

 

Not really Dan, sorry if i promised you something , been buried in work for over 2 weeks , i didn't forget about any update though!

  • Like 1
Link to post
Share on other sites
  • 2 months later...

Hi Aymen,

 

just wanted to ask if you had some time during the last 3 months to look into the things we discussed:

 

1. Performance issue

2. Table to database command with update option. 

Thanks in advance for your help.

 

Kindest regards

Dan

Link to post
Share on other sites

Hi Aymen,

 

just wanted to ask if you had some time during the last 3 months to look into the things we discussed:

 

1. Performance issue

2. Table to database command with update option. 

 

Thanks in advance for your help.

 

Kindest regards

Dan

 

about the performance issue , can't really have it reproduced properly , what i concluded is that it can be tied to ubot itself , i won't promise you anything about this , will see how things goes !

about new features and options i'll have a look at them when releasing the next version which will be in a week or so from now!

  • Like 1
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...