[odb-users] Database schema from sql file

Boris Kolpackov boris at codesynthesis.com
Tue Oct 4 09:27:38 EDT 2016


Hi Anaswara,

Anaswara Nair <anaswara.nn at gmail.com> writes:

> I have used ODB in my program with sqlite database. I created standalone
> SQL file using --schema-format sql option. Now how can I create the schema
> using this sql file in my database?

With SQLite you normally use embedded (in C++) schema and then use the
odb::schema_catalog API to apply it to the database.

But if you want to use standalone SQL, you should be able to do it using
the sqlite3(1) driver.

Boris



More information about the odb-users mailing list