dbase icon indicating copy to clipboard operation
dbase copied to clipboard

Add a method to rename fields easily

Open stokescomp opened this issue 5 years ago • 1 comments

I made a method for renaming a field. I will add a pull request for it. It will make it possible to do this: $builder = Builder::fromFile('file.dbf')->renameField("name", "newname")->build('file2.dbf');

Instead of this:

$builder = Builder::fromFile('file.dbf');
$builder->getField("name")->setName("newname");
$builder->build('file2.dbf');

stokescomp avatar May 19 '19 01:05 stokescomp

Very nice. Just file the PR

majkel89 avatar May 21 '19 20:05 majkel89