.. Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
.. _`Turbine XML format`: http://db.apache.org/torque/dtd/database.dtd
.. _`Torque`: http://db.apache.org/torque/
.. _`OJB`: http://db.apache.org/ojb/
.. _`Ant`: http://ant.apache.org/
.. _contents:
What is DdlUtils
================
**DdlUtils** is a small, easy-to-use component for working with Database Definition
(DDL) files.
As of Fall, 2016, the DdlUtils work is no longer active.
The website, downloads, and issue tracker all remain open, though the
issue tracker is read-only. The mailing lists have been closed down, but
old mail can be browse in the mailing list archives.
Database Definition (DDL) files are XML files that contain the definition of a database schema, e.g. tables
and columns. These files can be fed into DdlUtils via its Ant task or programmatically in order to
create the corresponding database or alter it so that it corresponds to the DDL. Likewise, DdlUtils
can generate a DDL file for an existing database.
DdlUtils uses the `Turbine XML format`_, which is shared by `Torque`_ and `OJB`_. This format expresses
the database schema in a database-independent way by using JDBC datatypes instead of raw SQL
datatypes which are inherently database specific. An example of such a file is::
Learning more
-------------
There are essentially two ways to use DdlUtils:
* In an `Ant`_ build script via the task provided by DdlUtils. You can learn more about it in the
:doc:`Ant task documentation `.
* From within your Java program, about which you can learn more in the :doc:`API documentation `.
You're also welcome to join one of the two DdlUtils' mailing lists:
* User mailing list ``ddlutils-user db.apache.org``
`Subscribe `_, `Unsubscribe `_, `Archive `_
* Developer mailing list ``ddlutils-dev db.apache.org``
`Subscribe `_, `Unsubscribe `_, `Archive `_