mirror of
https://github.com/FerretDB/documentdb.git
synced 2026-11-26 04:09:50 -05:00
14 lines
578 B
SQL
14 lines
578 B
SQL
/* db.collection.drop(writeConcern) */
|
|
DROP FUNCTION IF EXISTS __API_SCHEMA_V2__.drop_collection CASCADE;
|
|
CREATE OR REPLACE FUNCTION __API_SCHEMA_V2__.drop_collection(
|
|
p_database_name text,
|
|
p_collection_name text,
|
|
p_write_concern __CORE_SCHEMA_V2__.bson default null,
|
|
p_collection_uuid uuid default null,
|
|
p_track_changes bool default true)
|
|
RETURNS bool
|
|
LANGUAGE C
|
|
AS 'MODULE_PATHNAME', $function$command_drop_collection$function$;
|
|
COMMENT ON FUNCTION __API_SCHEMA_V2__.drop_collection(text,text,__CORE_SCHEMA_V2__.bson,uuid,bool)
|
|
IS 'drop a collection';
|