Skip to content

Support DELETE #6

@thiagodp

Description

@thiagodp

AFAIK, database-js-ini does not support DELETE commands yet. One problem is probably the syntax.

Thus, I would like to suggest a syntax for that:

Delete from the ROOT

DELETE FROM ROOT

would remove all the sections and keys from the file.

Delete a section

DELETE FROM `my section`

would remove the section "my section".

DELETE FROM `my section` WHERE max < 100

would only remove the section "my section" if "max" is less than 100.

Notes

  • Keys can be removed with the UPDATE method, setting their value to NULL.
    For example:
    UPDATE `my section` SET max = null WHERE max < 100
    would remove the key "max" if its current value is less than 100.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions