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?

mu is too short
  • 426,620
  • 70
  • 833
  • 800
the_prole
  • 8,275
  • 16
  • 78
  • 163

1 Answers1

2

The file gets created if it doesn't exist.

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

Kimmo Lehto
  • 5,910
  • 1
  • 23
  • 32