Toggle menu

dropTable

dropTable(ctx, tablename)

Deletes a data import table.

Parameters

NameTypeDescription
ctxStruct, requiredDatabase details, see above
tablenameString, requiredThe 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

Share this page

Facebook icon Twitter icon email icon

Print

print icon