OpenBD Wiki

From OpenBD
Jump to: navigation, search

CreateSDBDomain()

This function creates a new Amazon SimpleDB domain. Every piece of data within the Amazon SimpleDB is held within a domain. Each user can have up to 100 domains per their account, each holding 10GB of data each.

Amazon SimpleDB

Contents

Parameters

CreateSDBDomain( name, domainname )

  • name: name for this datasource, previously registered using AmazonSimpleDB()
  • domainname: the name of the domain you want to create

Returns

This function will return TRUE/FALSE depending on if it succeeded or not. If a major error occurred it will throw a CFML exception that can be caught.

Example

<cfset AmazonSimpleDB("testamz", "1WHJCG48Y89P4582", "bC6kfiW715mIenvtr537DcHndYmQwVf5l")>

<cfset CreateSDBDomain("testamz", "testDomain" )>

Notes

You must create the domain before you attempt to use it. Failure to do so will generate errors. Also, the domain name is case sensitive.

Engine Compatibility

  • OpenBD
  • BlueDragon

Personal tools