<?php
include('PgFieldNameFixer.php');
$pgFNF= new PgFieldNameFixer(); // instantiate the object
// setting the host of dataBase:
// METHOD host
// PARAMS: dataBaseName, dataBaseAddress, dataBasePort
$pgFNF->host('listagens', 'localhost', '5432');
// setting the admin user of dataBase:
// METHOD user
// PARAMS: userName, userPassWord
$pgFNF->user('root', '1234');
// fixing the fieldNames of the table named "table_example"
$pgFNF->fix('table_example');
?>
|