-s
dialect,
where the argument specifies the SQL dialect (for example,
mysql, or postgresql).
The SQL script will appear in CScout's standard output,
allowing you to directly pipe the results into the database's
client.
For example, if the database you would want to create for your project
was called myproj
, for MySQL you would write
( echo "create database myproj; use myproj ;" cscout -s mysql myproj.cs ) | mysqland for PostgreSQL
createdb -U username myproj cscout -s postgres myproj.cs | psql -U username myprojThe direct piping allows you to avoid the overhead of creating an intermediate file, which can be very large.
Contents | « Previous Next (Schema of the Generated Database) » |