SQLite database related question
#1

What should I do, open the database on the server start and close it on the server exit or open it only when I'm making a query?

This:
pawn Код:
public OnGameModeInit()
{
    db_open("mydatabase.sqlite");
    return 1;
}

public OnGameModeExit()
{
    db_close(db_var);
    return 1;
}
Or this:
pawn Код:
public OnPlayerConnect()
{
    db_open("name.sqlite");
    // query and code
    db_close(db_var);
    return 1;
}
Reply


Messages In This Thread
SQLite database related question - by Miguel - 23.10.2010, 04:41
Re: SQLite database related question - by Calgon - 23.10.2010, 05:09
Re: SQLite database related question - by Miguel - 23.10.2010, 05:38

Forum Jump:


Users browsing this thread: 1 Guest(s)