dropTable(ctx, tablename)
Deletes a data import table.
Parameters
Name | Type | Description |
---|---|---|
ctx | Struct, required | Database details, see above |
tablename | String, required | The name of the table to drop |
Returns
Boolean. True if the table was deleted.
Example
<cfset ds=APPLICATION.datasource>
<cfset dt=APPLICATION.databasetype>
<cfset tablename="timstable">
<!--- get a data importer --->
<cfmodule template="/icm/admin/dataimport/importer_v1.cfm" name="di" datasource=#ds# databasetype=#dt#>
<!--- drop the table --->
<cfset droptable = di.dropTable(ctx=#di#, tablename=#tablename#)>
<cfoutput>Done. Result:[#droptable#]</cfoutput><cfflush>
Last modified on 30 September 2022