Return-Path: Delivered-To: apmail-db-ddlutils-dev-archive@www.apache.org Received: (qmail 64418 invoked from network); 20 Apr 2006 02:39:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Apr 2006 02:39:38 -0000 Received: (qmail 29675 invoked by uid 500); 20 Apr 2006 02:39:36 -0000 Delivered-To: apmail-db-ddlutils-dev-archive@db.apache.org Received: (qmail 29654 invoked by uid 500); 20 Apr 2006 02:39:36 -0000 Mailing-List: contact ddlutils-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ddlutils-dev@db.apache.org Delivered-To: mailing list ddlutils-dev@db.apache.org Received: (qmail 29643 invoked by uid 99); 20 Apr 2006 02:39:36 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Apr 2006 19:39:36 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Apr 2006 19:39:35 -0700 Received: from brutus (localhost.localdomain [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8F7277142CA for ; Thu, 20 Apr 2006 02:38:34 +0000 (GMT) Message-ID: <26585604.1145500714550.JavaMail.jira@brutus> Date: Thu, 20 Apr 2006 02:38:34 +0000 (GMT+00:00) From: "Guy Davis (JIRA)" To: ddlutils-dev@db.apache.org Subject: [jira] Updated: (DDLUTILS-101) Support the dumping of data from a database into an XML file for each table. In-Reply-To: <14556617.1145500294947.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DDLUTILS-101?page=all ] Guy Davis updated DDLUTILS-101: ------------------------------- Attachment: multi_files.patch This includes two new Commands that allow for the dumping of a database to multiple XML files (one per table) and the loading of data from multiple files. The loading is done similarly as if all the files were in one large XML file, which allows for reference between the tables involved in the load. (This wasn't supported by the existing WriteDataToDatabase command. The dump adds an ORDER BY to the SELECT * FROM TABLE_NAME consisting of primary keys. This means the dump is consisent every time and one can diff the dump files between data changes in a human readable format. > Support the dumping of data from a database into an XML file for each table. > ---------------------------------------------------------------------------- > > Key: DDLUTILS-101 > URL: http://issues.apache.org/jira/browse/DDLUTILS-101 > Project: DdlUtils > Type: Improvement > Environment: WinXP > Java 1.5.0_06 > Oracle 10g EE > Reporter: Guy Davis > Assignee: Thomas Dudziak > Attachments: multi_files.patch > > We're using DDLUtils to store the schema and setup data required for our application. We can version the XML files and see diffs of the schema and data after dumping a modified database. This is a great feature. > However the single XML file containing all the setup data from our ~25 tables grew to over 3 MB in size and was unwieldy to work with. In particular, a simple "select * from table" was used to dump the data. This would result in spurious diffs where the file contents didn't change between dumps but the lines were moved around making a diff unreadable. > So it would be great if the Ant tasks supported dumping a database to a directory with one XML for each tables data. Also, the dump should be ordered by the tables primary keys so that it is possible to easily compare with older versions and see new rows, deleted rows, and changed fields. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira