Jump to content

dcConnect


'LinKin

Recommended Posts

Hi,

I found an open source script. And I found these two lines where it connects to the database

local con = dbConnect("sqlite", "db/donate.db") 
dbExec(con, "CREATE TABLE IF NOT EXISTS donators (account TEXT, time TEXT)") 

I've not tested it nor I want, but I am curious about the way he's doing that.

I'm wondering, what if the file donate.db doesn't exist? Does the script creates it automatically?

Thanks.

Link to comment
Hi,

I found an open source script. And I found these two lines where it connects to the database

local con = dbConnect("sqlite", "db/donate.db") 
dbExec(con, "CREATE TABLE IF NOT EXISTS donators (account TEXT, time TEXT)") 

I've not tested it nor I want, but I am curious about the way he's doing that.

I'm wondering, what if the file donate.db doesn't exist? Does the script creates it automatically?

Thanks.

Yes.

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...