-
-
Notifications
You must be signed in to change notification settings - Fork 701
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ignore:true/replace:true options for /db/-/create API #1927
Comments
Also: the documentation should clarify that you can call this API multiple times when using the (It will probably grow |
Neither of these options make sense if you didn't pass a My initial implementation spotted if the So maybe this work should expanded to include validation that checks if the table exists already - and if it does, confirms that the primary key (and maybe even the columns) are the same as for that existing table. Of course if you only send |
I'm going to push what I have anyway. I'll keep this issue open while I think through the above comment. |
I have not yet documented the new |
I'll finish this after I land: |
See also:
It turns out I want to be able to call
/db/-/create
multiple times with therows
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:
/-/create
twice withrows
without using these optionspk
should be required if you are using these optionspk
and the table exists already but has a differentpk
insert
andreplace
- and what happens if you repeat a/-/create
with rows generally/-/create
more than once usingrows
.The text was updated successfully, but these errors were encountered: