946
edits
(→API) |
(→API) |
||
| Line 56: | Line 56: | ||
Currently, the store uses transactions internally to add each person (because data is split up over multiple tables), so there is no public API for dealing with database transactions. In the future, we may add this functionality. | Currently, the store uses transactions internally to add each person (because data is split up over multiple tables), so there is no public API for dealing with database transactions. In the future, we may add this functionality. | ||
The object to pass in to <tt>add</tt> and <tt>update</tt> and returned by <tt>find</tt> look like the sample below. Currently, by default, we're storing a single [http://portablecontacts.net/draft-spec.html#schema Portable Contacts object] within the wrapper object, | The object to pass in to <tt>add</tt> and <tt>update</tt> and returned by <tt>find</tt> look like the sample below. Currently, by default, we're storing a single [http://portablecontacts.net/draft-spec.html#schema Portable Contacts object] within the wrapper object. Note that the schema for the 'default' document is contained in the 'default' property of 'documentSchemas'. Be sure to verify the schema, as the People store will not enforce adherence to Portable Contacts or any other schema. | ||
<pre> | <pre> | ||
edits