Hello everybody,
i'm new to Elixir and just starting to explore it (it looks cool!).

I'm trying to manage the following scenario:
I create a new object (let's say i will define my own primary key
fields), and i expose some GUI to the end user.
The end user inserts some data, and fills the primary filed keys.
If the object is really new, when flushing it's inserted into dbms,
and that's fine.
If a record with the same primary key already exists into the dbms,
obviously there's a conflict.
I need to understand how to manage this situation.

In my mind I have a scenario like this one: the user fills the pk
fields. If an existent pk exists, load that object into the current
one so that the user can modify the existing object. Of course, if he/
she entered some data into non-pk fields those would be lost (or,
optionally, they would be used to update?).

Is my way of thinking the problem completly wrong? I had no success in
trying to implement it with Elixir, can you give me some suggestions?

Thanks in advance,
max.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SQLElixir" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlelixir?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to