MIOLO20
Toggle main menu visibility
Página principal
Estruturas de dados
Estruturas de dados
Hierarquia de classes
Campos de dados
Tudo
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Funções
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Variáveis
$
a
b
c
d
e
f
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Ficheiros
Lista de ficheiros
Globais
Tudo
$
_
a
c
d
e
f
g
i
l
m
o
p
r
s
u
Funções
Variáveis
$
_
c
e
f
l
m
o
p
s
Exemplos
•
Tudo
Estruturas de dados
Namespaces
Ficheiros
Funções
Variáveis
Carregando...
Procurando...
Nenhuma entrada encontrada
mschema.class
Ir para a documentação deste ficheiro.
1
<?php
6
class
PostgresSchema
extends
MSchema
7
{
15
function
getTableInfo
($tablename)
16
{
17
//select relfilenode from pg_class where relname = 'pacote';
18
$sql =
new
msql(
"relfilenode"
,
"pg_class"
,
"lower(relname)=?"
);
19
$sql->setParameters( strtolower($tablename) );
20
$q = $this->conn->db->query($sql->select());
21
22
if
($q[0][0])
23
{
24
$sql =
new
mSql(
'attname, atttypid, attinhcount'
,
'pg_attribute'
,
'attrelid=? AND attnum>0 AND atttypid > 0'
,
'attnum'
);
25
$sql->setParameters($q[0][0]);
26
}
27
else
return
null
;
28
29
//select * from pg_attribute where attrelid = 964175 and attnum > 0
30
$query = @$this->conn->getQuery($sql);
31
return
$query->result;
32
}
15
function
getTableInfo
($tablename) {
…
}
33
}
6
class
PostgresSchema
extends
MSchema
{
…
};
34
?>
MSchema
Definição
mschema.class:3
PostgresSchema
Definição
mschema.class:7
PostgresSchema\getTableInfo
getTableInfo($tablename)
Definição
mschema.class:15
classes
database
postgres
mschema.class
Gerado por
1.10.0