Skip to content

Support INSERT #4

@thiagodp

Description

@thiagodp

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

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

Insert into the ROOT

INSERT INTO ROOT VALUES ( "foo", "bar" )
INSERT INTO ROOT VALUES ( "max", 1 )

would produce

foo=bar
max=1

Insert into a section

INSERT INTO `my section` VALUES ( "foo", "bar" )
INSERT INTO `my section` VALUES ( "max", 1 )

would produce

[my section]
foo=bar
max=1

Notes:

  • Section is created if not exists.
  • Values are overwritten if exist.

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