private void copyTable(Table oldTable,PackedDBHandle newHandle) throws IOException, CancelledException {
																// Pull out table configuration elements
		String tableName = oldTable.getName();					// Name
		Schema schema = oldTable.getSchema();					// Schema
		int[] indexedColumns = oldTable.getIndexedColumns();	// Secondardy indices
		
		Table newTable = newHandle.createTable(tableName, schema, indexedColumns);	// Create new table
		monitor.setMessage("Copying table: "+tableName);
		monitor.setMaximum(oldTable.getRecordCount());
		monitor.setProgress(0);
		RecordIterator iterator = oldTable.iterator();
		while(iterator.hasNext()) {								// Iterate through old records
			DBRecord record = iterator.next();
			newTable.putRecord(record);							// Copy as is into new table
			monitor.checkCancelled();
			monitor.incrementProgress(1);
		}
	}
Copy a single table between databases
@param oldTable is the old table to copy
@param newHandle is the handle to the new database receiving the copy
@throws IOException
@throws CancelledException
Ghidra/Features/FunctionID/ghidra_scripts/RepackFid.java