次のようなschema.sqlというファイルがあります。
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
)
sqlite3 に電話してこのファイルから読み取り、データベースを作成する方法はありますか? cat schema.sql > sqlite3 /tmp/database.db のようなものですか?
ありがとう