Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
unique ordercheck documentation added
- Loading branch information
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
__NAME__ purpose | ||
record doesn't exist in a database table | ||
__END__ | ||
|
||
__NAME__ description | ||
This profile checks whether a matching record exists in a database table. | ||
It succeeds if there is <emphasis>no</emphasis> such record. | ||
__END__ | ||
|
||
__NAME__ example: Ensure unique email address | ||
<programlisting> | ||
email=email_only Please enter a valid email address. | ||
&and | ||
email=unique userdb:email An account with this email address already exists. | ||
</programlisting> | ||
__END__ | ||
|
||
__NAME__ notes | ||
This check doesn't guarantee unique records, as there is a small window of | ||
time between performing this check and creating a new record. | ||
__END__ |