File: test.xml

package info (click to toggle)
phing 3.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 9,868 kB
  • sloc: php: 59,850; xml: 9,713; sql: 78; makefile: 39; sh: 14
file content (100 lines) | stat: -rw-r--r-- 3,824 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<?xml version="1.0" ?>
<project name="PDOTaskTest" default="testPDOTask">
    <target name="testPDOTask">
        <pdosqlexec url="sqlite:test.db">
            <transaction>DROP TABLE IF EXISTS xxxxx</transaction>
            <transaction><![CDATA[
                CREATE TABLE xxxxx (
                    test_id INTEGER PRIMARY KEY,
                    test_field TEXT
                )]]></transaction>
        </pdosqlexec>
    </target>
    <target name="testWriteXMLResutFile">
        <pdosqlexec url="sqlite:test.db">
            <transaction>DROP TABLE IF EXISTS xxxxx</transaction>
            <transaction><![CDATA[
                CREATE TABLE xxxxx (
                    test_id INTEGER PRIMARY KEY,
                    test_field TEXT
                )]]></transaction>
            <formatter type="xml" encoding="UTF-8" showheaders="true" formatoutput="false" outfile="result.xml"/>
        </pdosqlexec>
    </target>
    <target name="testWritePlainResutFile">
        <pdosqlexec url="sqlite:test.db" userid="" password="">
            <transaction src="table.sql"/>
            <formatter type="plain"
                       encoding="UTF-8"
                       append="false"
                       coldelim="|"
                       rowdelim=";"
                       showheaders="false"
                       formatoutput="true"
                       outfile="result.txt"
            >
                <param name="someClassAttrib" value="some-value"/>
            </formatter>
        </pdosqlexec>
    </target>
    <target name="testContinue">
        <pdosqlexec url="sqlite:test.db" onerror="continue">
            <transaction>THIS IS NO SQL</transaction>
        </pdosqlexec>
    </target>
    <target name="testErrorProp">
        <pdosqlexec url="sqlite:test.db" onerror="continue" errorproperty="sql.error">
            <transaction>THIS IS NO SQL</transaction>
        </pdosqlexec>
    </target>
    <target name="testFileList">
        <pdosqlexec url="sqlite:test.db">
            <filelist dir="." files="table.sql"/>
        </pdosqlexec>
    </target>
    <target name="testFileSet">
        <pdosqlexec url="sqlite:test.db">
            <fileset dir="." includes="table.sql"/>
        </pdosqlexec>
    </target>
    <target name="testStatementCountProp">
        <pdosqlexec url="sqlite:test.db" statementcountproperty="statement.count">
            <transaction>DROP TABLE IF EXISTS xxxxx</transaction>
            <transaction><![CDATA[
                CREATE TABLE xxxxx (
                    test_id INTEGER PRIMARY KEY AUTOINCREMENT,
                    test_field TEXT
                )]]></transaction>
        </pdosqlexec>
    </target>
    <target name="testOptionalAttributes">
        <pdosqlexec url="sqlite:test.db">
            <transaction>DROP TABLE IF EXISTS xxxxx</transaction>
            <transaction><![CDATA[
                CREATE TABLE xxxxx (
                    test_id INTEGER PRIMARY KEY AUTOINCREMENT,
                    test_field TEXT
                )]]></transaction>
            <transaction><![CDATA[
                INSERT INTO xxxxx (test_field)
                VALUES('test field 1')
                ]]></transaction>
            <transaction><![CDATA[
                SELECT * from xxxxx
                ]]></transaction>
            <formatter type="plain"
                       showheaders="true"
                       showtrailers="true"
                       outfile="result.txt"
            />
        </pdosqlexec>
    </target>
    <target name="testDoNotFailOnConnectionError">
        <pdosqlexec url="test:test" failOnConnectionError="false">
            <transaction><![CDATA[
                SELECT * from xxxxx
            ]]></transaction>
        </pdosqlexec>
        <echo message="foo"/>
    </target>
</project>