'LinKin Posted April 24, 2014 Posted April 24, 2014 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.
TAPL Posted April 24, 2014 Posted April 24, 2014 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now