in packages/quick_start/src/Utils.ts [209:229]
public static createIngestionProperties(
databaseName: string,
tableName: string,
dataFormat: DataFormat,
mappingName: string,
ignoreFirstRecordFlag: boolean,
): IngestionProperties {
return new IngestionProperties({
database: databaseName,
table: tableName,
// Learn More: For more information about supported data formats, see: https://docs.microsoft.com/azure/data-explorer/ingestion-supported-formats
format: dataFormat,
ingestionMappingReference: mappingName,
ingestionMappingKind: dataFormatMappingKind(dataFormat),
// TODO (config - optional): Setting the ingestion batching policy takes up to 5 minutes to take effect.
// We therefore set Flush-Immediately for the sake of the sample, but it generally shouldn't be used in practice.
// Comment out the line below after running the sample the first few times.
flushImmediately: true,
ignoreFirstRecord: ignoreFirstRecordFlag,
});
}