Wrapper for mongoc_database_has_collection().

This function checks to see if a collection exists on the MongoDB server within database.

Property definitions

mongodb $ NativeMongoDb :: has_collection
	# Wrapper for `mongoc_database_has_collection()`.
	#
	# This function checks to see if a collection exists on the MongoDB server
	# within database.
	fun has_collection(name: CString): Bool import set_mongoc_error `{
		bson_error_t error;
		if(!mongoc_database_has_collection(self, name, &error)) {
			NativeMongoDb_set_mongoc_error(self, &error);
			return false;
		}
		return true;
	`}
lib/mongodb/native_mongodb.nit:259,2--270,3