logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Search found 17 matches
nwnx.org Forum Index
Author Message
  Topic: sqlite 3.3.6 Commands
Lady Abagail

Replies: 10
Views: 11109

PostForum: Scripts and Modules   Posted: Mon Jul 31, 2006 1:51   Subject: sqlite 3.3.6 Commands
Hmmm, Ive run into a bug in the table setup for 'pwdata'. I mentioned before that Im reserving the 'pwdata' setup in the main database for other systems that use it, but one of its features is intere ...
  Topic: sqlite 3.3.6 Commands
Lady Abagail

Replies: 10
Views: 11109

PostForum: Scripts and Modules   Posted: Sun Jul 30, 2006 18:06   Subject: sqlite 3.3.6 Commands
Hmmm, Ive run into a bug in the table setup for 'pwdata'. I mentioned before that Im reserving the 'pwdata' setup in the main database for other systems that use it, but one of its features is intere ...
  Topic: COMMIT transaction
Lady Abagail

Replies: 7
Views: 11780

PostForum: Scripts and Modules   Posted: Sun Jul 30, 2006 18:00   Subject: COMMIT transaction
Have you done any performance measures on the ATTACH command ?

Not yet, I am currently designing my database set-up. Once it is executable I will put up a test server and log in with various chara ...
  Topic: sqlite 3.3.6 Commands
Lady Abagail

Replies: 10
Views: 11109

PostForum: Scripts and Modules   Posted: Sun Jul 30, 2006 0:39   Subject: sqlite 3.3.6 Commands
PrC is using a later version with their setup, you might consider using that version. Makes compatibility between major systems easier Smile

But good luck in your project! Its good to see people sti ...
  Topic: COMMIT transaction
Lady Abagail

Replies: 7
Views: 11780

PostForum: Scripts and Modules   Posted: Sun Jul 30, 2006 0:23   Subject: COMMIT transaction
Common use would be to Commit, then immediately open a new transaction. A few minutes later Commit again, then open a new one.

That way you can take advantage of the speed of SQLite running with t ...
  Topic: ATTACH command
Lady Abagail

Replies: 17
Views: 25924

PostForum: Scripts and Modules   Posted: Sun Jul 30, 2006 0:11   Subject: ATTACH command
You can create multiple tables within the SQLite database, you don't have to use just the pwdata table. Those tables can also be different formats if you use the sql direct commands instead of just S ...
  Topic: ATTACH command
Lady Abagail

Replies: 17
Views: 25924

PostForum: Scripts and Modules   Posted: Sat Jul 29, 2006 19:20   Subject: ATTACH command
Common practice with servers using SQLite is to manually close the transaction every few minutes then start another one.

And nice work Smile

I couldnt have even touched this functionality without y ...
  Topic: COMMIT transaction
Lady Abagail

Replies: 7
Views: 11780

PostForum: Scripts and Modules   Posted: Sat Jul 29, 2006 19:16   Subject: COMMIT transaction
SQLite only supports a single transaction so parts 3-4 are irrelevant Smile

So a single expression such as:

SQLExecDirect("BEGIN TRANSACTION;");

Will create an open transaction ...
  Topic: sqlite 3.3.6 Commands
Lady Abagail

Replies: 10
Views: 11109

PostForum: Scripts and Modules   Posted: Sat Jul 29, 2006 19:09   Subject: sqlite 3.3.6 Commands
Nope, but when you make a new database with the utility you either have to use the correct .exe or you have to use another utility that creates it at the correct version.

Then I guess I better incl ...
  Topic: COMMIT transaction
Lady Abagail

Replies: 7
Views: 11780

PostForum: Scripts and Modules   Posted: Sat Jul 29, 2006 13:09   Subject: COMMIT transaction
Great! Please keep in mind that SQLite gets relatively slow if it has to work without an open transaction. If you do not BEGIN somewhere later on, every write operation is immediately written to the d ...
  Topic: ATTACH command
Lady Abagail

Replies: 17
Views: 25924

PostForum: Scripts and Modules   Posted: Fri Jul 28, 2006 21:55   Subject: ATTACH command
you could send a commit as the first query to the database then wrap the rest in transaction(s).

Holy crackers Tenkawa, its not only working, but its doing more then I thought it would. I call a C ...
  Topic: ATTACH command
Lady Abagail

Replies: 17
Views: 25924

PostForum: Scripts and Modules   Posted: Fri Jul 28, 2006 20:52   Subject: ATTACH command
According to what I just read in the latest source the behaviour is still there.

in sqlite.cpp

in the Connect function

rc = sqlite3_prepare(sdb, "BEGIN", -1, &pStmt, NULL);

...
  Topic: ATTACH command
Lady Abagail

Replies: 17
Views: 25924

PostForum: Scripts and Modules   Posted: Fri Jul 28, 2006 20:19   Subject: ATTACH command
It is because if you use the sqlite plugin straight from code in nwnx the entire session is one big transaction
if you look at the code it does a begin when it opens the database and ends the transac ...
  Topic: ATTACH command
Lady Abagail

Replies: 17
Views: 25924

PostForum: Scripts and Modules   Posted: Fri Jul 28, 2006 18:31   Subject: ATTACH command
I don't know anyone that is using Attach() with NWNX...

Any particular reason you aren't just using the tables in one database?

Even if I could implement my design in one database, that doesnt e ...
  Topic: ATTACH command
Lady Abagail

Replies: 17
Views: 25924

PostForum: Scripts and Modules   Posted: Fri Jul 28, 2006 17:55   Subject: ATTACH command
Okay I have extra databases ready made for NWNX and SQLite to access and modify. The question I have now is about the ATTACH command. In SQL syntax "ATTACH database-filename AS database-name&qu ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT + 2 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group