Releases: Claviz/bellboy
Releases · Claviz/bellboy
v.8.7.7
v.8.7.4
v.8.7.0
- A new
postLoadQueryoption has been added to theMysqlDestination, allowing you to retrieve query results after a batch load. This is particularly useful when you need to load data and execute a query such asSELECT LAST_INSERT_ID()within single connection:
const destination = new MySqlDestination({
connection,
table: 'test',
batchSize: 1,
postLoadQuery: `SELECT LAST_INSERT_ID()`,
});
job.on('loadedBatch', async (destinationIndex, data, result) => {
const lastInsertId = result[0][0]['LAST_INSERT_ID()'];
});- Add
useSourceColumnsoption toMysqlDestination- this option allows you to configure theMysqlDestinationto only insert columns present in the source data. - Improved
HttpProcessorto include the response body in the error message:
job.onAny(async (event, data) => {
if (event === 'processingError') {
console.error(data.message); // e.g., 'Request failed with status code 500. Response: {"success":false}'
}
});v.8.5.0
v.8.4.0
v.8.3.0
v.8.2.0
Added encoding option for DelimitedProcessor and HttpProcessor (if dataFormat is delimited):
const processor = new DelimitedProcessor({
path: './',
files: [filePath],
rowSeparator: '\n',
encoding: 'windows-1257',
});const processor = new HttpProcessor({
dataFormat: 'delimited',
rowSeparator: '\n',
connection: {
method: 'GET',
url: 'http://localhost:3000/windows-1257-encoded',
},
encoding: 'windows-1257',
});v.8.1.0
v.8.0.0
BREAKING.
msnodesqlv8 is now optional dependancy and needs to be installed separately - npm install msnodesqlv8.
driver option usage for msnodesqlv8 is changed:
BEFORE:
const connection: IMssqlDbConnection = {
user: 'user',
password: 'password',
server: 'server',
database: 'database',
driver: 'msnodesqlv8'
};
const source = new MssqlProcessor({ connection, query: 'select * from orders' });AFTER:
const nativeDriver: ITdsDriver = await import('mssql/msnodesqlV8');
const connection: IMssqlDbConnection = {
user: 'user',
password: 'password',
server: 'server',
database: 'database',
driver: nativeDriver
};
const source = new MssqlProcessor({ connection, query: 'select * from orders' });If you were using default driver and haven't specified tedious in connection options, nothing needs to be changed.
Thanks to @teleological for this change.