File: usertype.sch

package info (click to toggle)
pgmodeler 1.2.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,160 kB
  • sloc: cpp: 99,216; xml: 27; sh: 15; makefile: 6
file content (92 lines) | stat: -rw-r--r-- 1,888 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
# XML definition for user defined types
# CAUTION: Do not modify this file unless you know what you are doing.
# Code generation can be broken if incorrect changes are made.
[<usertype name=] "&{name}"

$sp
%if {base} %then configuration="base" %end
%if {composite} %then configuration="composite" %end
%if {enumeration} %then configuration="enumeration" %end
%if {range} %then configuration="range" %end

%if {base} %then
	$br
	[ internal-length=] "{internal-length}"
	[ by-value=] %if {by-value} %then "true" %else "false" %end
	$br

	[ alignment=] "{alignment}"
	[ storage=] "{storage}"
	$br

	%if {element} %then
		[ element=] "&{element}"
	%end

	%if {delimiter} %then
		[ delimiter=] "{delimiter}"
	%end

	$br

	%if {default-value} %then
		[ default-value=] "&{default-value}"
	%end

	%if {category} %then
		[ category=] "{category}"
	%end

	%if {preferred} %then
		[ preferred=] "true"
	%end

	%if {collatable} %then
		[ collatable=] "true"
	%end
%end


%if {protected} %then
	[ protected=] "true"
%end

%if {sql-disabled} %then
	[ sql-disabled=] "true"
%end

> $br

{schema}
%if {owner} %then {owner} %end
%if {comment} %then {comment} %end
%if {appended-sql} %then {appended-sql} %end
%if {prepended-sql} %then {prepended-sql} %end

%if {enumeration} %and {labels} %then
	{labels}
%end

%if {typeattrib} %then {typeattrib} %end


%if {range} %then
	%if {subtype} %then {subtype} %end
	%if {collation} %then {collation} %end
	%if {opclass} %then $tb {opclass} %end
	%if {canonical} %then {canonical} %end
	%if {subtypediff} %then {subtypediff} %end
%end

%if {base} %then
	%if {like-type} %then {like-type} %end
	%if {input} %then {input} %end
	%if {output} %then {output} %end
	%if {receive} %then {receive} %end
	%if {send} %then {send} %end
	%if {tpmodin} %then {tpmodin} %end
	%if {tpmodout} %then {tpmodout} %end
	%if {analyze} %then {analyze} %end
%end

</usertype> $br $br