BAN cmd ...

Started by DontKnowScripting:(, May 06, 2015, 06:32 PM

Previous topic - Next topic

DontKnowScripting:(


MatheuS

Put in OnScriptLoad

db <- ConnectSQL( "YourDBName.db" );
and OnScriptUnload

DisconnectSQL( db );
if( !sucess ) tryAgain();
Thanks to the VCMP community. It was the happiest period of my life.

DontKnowScripting:(

I just came to know I'm using database.sqlite



which one is faster database.sqlite or .db? can you convert this script for database.sqlite?

.

#3
The file extension doesn't matter in almost all cases. There's no performance difference and it's just a simple file on your system. You could name it some_database.who_dafuq_cares for all I know. Or simply not use an extension at all. Same thing applies to scripts and every other file in your computer as long as the Read/Write software doesn't enforce that. The extensions are just a hint to the user and to let the OS add some special decorations to the file (also a hint) without the need to read the header and find the file type manually (which would be almost impossible to do for all the files without some standardization first and would also a burden for your storage drives).
.