
/* SQL API function that creates a collection given a database and collection */
CREATE OR REPLACE FUNCTION __API_SCHEMA_V2__.create_collection(p_database_name text, p_collection_name text)
RETURNS bool
LANGUAGE c
 STRICT
AS 'MODULE_PATHNAME', $function$command_create_collection_core$function$;
COMMENT ON FUNCTION __API_SCHEMA_V2__.create_collection(p_database_name text, p_collection_name text)
    IS 'create a collection';


/* SQL API function that creates a collection given a database and collection */
CREATE OR REPLACE FUNCTION documentdb_api_v2.create_collection(p_database_name text, p_collection_name text)
RETURNS bool
LANGUAGE c
 STRICT
AS 'MODULE_PATHNAME', $function$command_create_collection_core$function$;
COMMENT ON FUNCTION documentdb_api_v2.create_collection(p_database_name text, p_collection_name text)
    IS 'create a collection';
