Skip to content

Commit

Permalink
unique ordercheck documentation added
Browse files Browse the repository at this point in the history
  • Loading branch information
racke committed Mar 16, 2008
1 parent 37bceae commit 9851237
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions refs/unique.ordercheck
@@ -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.
&amp;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__

0 comments on commit 9851237

Please sign in to comment.