'LinKin Posted April 24, 2014 Share 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. Link to comment
Noki Posted April 24, 2014 Share Posted April 24, 2014 1. Then it won't connect. 2. No. It must be there. Link to comment
Atton Posted April 24, 2014 Share Posted April 24, 2014 You can make a db file using the sql browser. Link to comment
TAPL Posted April 24, 2014 Share 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. Link to comment
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