bloom-lang / bud

Prototype Bud runtime (Bloom Under Development)
http://bloom-lang.net
Other
854 stars 60 forks source link

enable resolution rules for PK violations #203

Open jhellerstein opened 13 years ago

jhellerstein commented 13 years ago

users should be able to keep the runtime from crapping out in a PK violation

neilconway commented 13 years ago

I think there are two separate issues here:

  1. Should we provide syntax sugar for other strategies for handling key violations?
  2. What should be the default strategy for handling key violations?

Re: 1, sugar would be fine, although I can think of a few more pressing areas where we need sugar (upserts, please!)

Re: 2, if a key constraint is violated, raising an exception seems like sensible default behavior to me. We can definitely do better in how we handle runtime exceptions, as discussed today.

On Wednesday, May 25, 2011, jhellerstein reply@reply.github.com wrote:

users should be able to keep the runtime from crapping out in a PK violation

Reply to this email directly or view it on GitHub: https://github.com/bloom-lang/bud/issues/203