The DROP RESOURCE
syntax is used to drop resources from the current schema
DropResource ::=
'DROP' 'RESOURCE' ( 'IF' 'EXISTS' )? dataSourceName ( ',' dataSourceName )* ( 'IGNORE' 'SINGLE' 'TABLES' )?
DROP RESOURCE
will only drop resources in Proxy, the real data source corresponding to the resource will not be droppedResources are still in used.
will be prompted when removing resources used by rulesSINGLE TABLE RULE
, and when the user confirms that this restriction can be ignored, the IGNORE SINGLE TABLES
keyword can be added to remove the resourceDROP RESOURCE ds_0;
DROP RESOURCE ds_1, ds_2;
DROP RESOURCE ds_1 IGNORE SINGLE TABLES;
DROP RESOURCE IF EXISTS ds_2;
DROP, RESOURCE, IF, EXISTS, IGNORE, SINGLE, TABLES