Skip to content

ignore:true/replace:true options for /db/-/create API #1927

@simonw

Description

@simonw

See also:

It turns out I want to be able to call /db/-/create multiple times with the rows argument, so that I don't have to worry about creating the table first.

As such I find myself wanting support for the "insert": true and "replace": true options as well.

Still TODO:

  • A test for the case where you call /-/create twice with rows without using these options
  • pk should be required if you are using these options
  • Error if you pass pk and the table exists already but has a different pk
  • Documentation for insert and replace - and what happens if you repeat a /-/create with rows generally
  • Documentation should explain that you are allowed to call /-/create more than once using rows.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions