I have a file called schema.sql, which looks like this:
drop table if exists codes;
create table paste_codes (
id integer primary key autoincrement,
codetitle string not null,
codebody string not null,
pub_date string not null
)
Is there any way I can tel sqlite3 to read it from this file and create the database for me? Something like cat schema.sql > sqlite3 /tmp/database.db?
Thanks