Connect to a SQLite database file. And check it the following tables exists: price, itinerary, leg, segment, carrier, agent, and place. If not, create them.
dbCreateDB(conn = RSQLite::SQLite(), dbname = "flight.db")
conn | A |
---|---|
dbname | The path to the database file. Don't use two exceptions:
|
An object of class SQLiteConnection
. If
can't connect to SQLite driver, return 1.