---
name: "tedia2sql"
section: "1"
platform: "linux"
package: "tedia2sql"
version: "1.2.12-3"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/tedia2sql"
---

# tedia2sql(1)

Convert Dia to SQL files

## NAME

tedia2sql - Convert Dia to SQL files

## SYNOPSIS

**tedia2sql** \[*options*\] -i \<xml\_in\> -o \<sql\_out\>

## DESCRIPTION

This manual page documents briefly the **tedia2sql** command. This manual page was written for the Debian GNU/Linux distribution because the original program does not have a manual page.

**tedia2sql** is an utility to translate Dia diagram files into SQL files with the commands necessary to recreate the represented UML structure.\
 It understands the following objects and translates them acordingly:\
\
 	\- Class: Table or View if Abstract is selected\
\
 	\- Association: Foreign Key\
\
 	\- Component: Table content\

For more information consult the documentation at the site or in the /usr/share/doc/ directory.\

## OPTIONS

Options:

- **-h**

  usage

- **-v {1,2}**

  verbosity level

- **-c**

  output less commented SQL code

- **-d**

  add DROP statements to SQL output

- **-s**

  separate diferent actions in diferent files

- **-t**

  DB type. Supported types: postgres, mysql, sybase, oracle, db2, innodb

- **-g**

  input file \*NOT\* gzipped. (Input format normally autodetected)

- **-i \<xml\_in\>**

  Dia file

- **-o \<sql\_out\>**

  SQL file to output to

## AUTHOR

This manual page was written by Leo Costela Antunes \<costela@debian.org\>, for the Debian GNU/Linux system (but may be used by others).
