-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, say the database you would want to create for your project
was called myproj
.( echo "create database myproj; use myproj ;" cscout -s mysql myproj.cs ) | mysqlFor PostgreSQL you would write:
createdb -U username myproj cscout -s postgres myproj.cs | psql -U username myprojFor HSQLDB you would write:
cscout -s hsqldb myproj.cs | java -classpath $HSQLDBHOME/lib/hsqldb/hsqldb.jar org.hsqldb.util.SqlTool --rcfile $HSQLDBHOME/lib/hsqldb/sqltool.rc mem -The 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) » |