2

I know how to connect to a database in the current file directory:

db = SQLite3::Database.new 'Data.db'

My question is how do I create a new database in the current file directory?

bonus question: what do the two colons means?

1 Answer 1

2

The file gets created if it doesn't exist.

Bonus: SQLite3::Database points to SQLite3 module's Database submodule or subclass.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.