return value
Success: Return a new SdbCollection object.
Failure: Throw an exception.
error
createCL()
Common exceptions of functions are as follows:
When an exception is thrown, you can () getLastError get an error code , or through ) getLastErrMsg ( get an error message. You can refer to the common error handling guide to learn more.
version
v1.0 and above.
example
-
Create the collection employee under the collection space sample without specifying the partition key.
db.sample.createCL("employee") localhost:11810.sample.employee Takes 0.120450s.
For more information, please click on the official website of Jushan Database