Jump to content

Resource with own .db file (SQLite)


'LinKin

Recommended Posts

Hello,

I've been told that using executeSQLQuery hangs the whole server while waiting for response and lacks support for callbacks.

I was told to use db* functions for better performance.

I assume I'd need to create a resource with its own database file, so that I can connect to it by using dbConnect

How to create this .db file (for SQLite) inside the script that I am doing?

Regards,

Linkin.

Link to comment

dbConnect will create the database file if it not exist.

For SQLite it is a filepath to a SQLite database file. If the filepath starts with ":/" then the server's global databases directory is used. The file will be created if it does not exist.
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...