Git Product home page Git Product logo

Comments (7)

gam6itko avatar gam6itko commented on September 13, 2024

The "clone" approach was made for safety purposes, it allows user to rollback changes in file. If you need this, then I can make a "realtime" approach, which you can set in constructor options.

from php-xbase.

DierteK avatar DierteK commented on September 13, 2024

Would be great if this could be solved in realtime.

Thanks

from php-xbase.

razvanphp avatar razvanphp commented on September 13, 2024

I'm also interested in this realtime edit mode... it should be faster that writing the whole file again just to add one new record for example.

In my application I also need a stream returned for downloading, so probably I'll bake something and open a PR if welcomed.

Thank you for your work!

from php-xbase.

gam6itko avatar gam6itko commented on September 13, 2024

@razvanphp PR is no needed, I'll do it at the week.

from php-xbase.

gam6itko avatar gam6itko commented on September 13, 2024

Use 1.3.2 with code below

$tableWrite = new WritableTable(
    'file.dbf', 
    [
        'encoding' => 'cp866',
        'editMode' => WritableTable::EDIT_MODE_REALTIME,
    ]
);
// do edits
$tableWrite->close();

waiting for your feedback

from php-xbase.

DierteK avatar DierteK commented on September 13, 2024

Thanks, works perfectly :-)

I could change a DBF file that was opened by several Foxpro applications (via Windows/CIFS) at the same time and no error occurred.

One more question:
After an $table->writeRecord(); all 3-digit decimal numbers become 2-digit. And this not only for fields I changed, but also for existing fields.

Is there a solution for this? It is a FoxPro-DBF, field type is numeric 10, 3.

Thanks

from php-xbase.

gam6itko avatar gam6itko commented on September 13, 2024

@DierteK please open a new issue for "10, 3"

from php-xbase.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.