$m = new Metaestat(); retornaJSON($m->criaEsquemaDB($codigo_estat_conexao, $_GET["nome_esquema"])); exit; break; case "ALTERANOMETABELADB": $m = new Metaestat(); if ($_GET["nome_esquema"] != "i3geo_metaestat") { retornaJSON("erro"); exit; } retornaJSON($m->alteraNomeTabelaDB($codigo_estat_conexao, $_GET["nome_esquema"], $_GET["nome_tabela"], $_GET["novonome_tabela"])); exit; break; case "ALTERANOMEESQUEMADB": $m = new Metaestat(); retornaJSON($m->alteraNomeEsquemaDB($codigo_estat_conexao, $_GET["nome_esquema"], $_GET["novonome_esquema"])); exit; break; case "COPIATABELADB": $m = new Metaestat(); if ($_GET["nome_esquema"] != "i3geo_metaestat") { retornaJSON("erro"); exit; } retornaJSON($m->copiaTabelaDB($codigo_estat_conexao, $_GET["nome_esquema"], $_GET["nome_tabela"], $_GET["novonome_tabela"])); exit; break; /* Valor: COLUNASTABELA Lista as colunas de uma tabela