Add type casting to postgres queries (#1600)

* 538 add support for casting types in postgres

* Add typing to postgres insert nodes and removed unnecessary field from crate db

* Added placeholder and description for types in postgres

* Adding tests to insert and changes suggested by Ben

*  Minor improvement

Co-authored-by: mutdmour <mutdmour@gmail.com>
Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
This commit is contained in:
Omar Ajoue
2021-04-03 16:53:47 +02:00
committed by GitHub
parent 3b00c96643
commit f225bbbb84
5 changed files with 193 additions and 33 deletions

View File

@@ -116,9 +116,9 @@ export class Postgres implements INodeType {
},
},
default: '',
placeholder: 'id,name,description',
placeholder: 'id:int,name:text,description',
description:
'Comma separated list of the properties which should used as columns for the new rows.',
'Comma separated list of the properties which should used as columns for the new rows.<br>You can use type casting with colons (:) like id:int.',
},
{
displayName: 'Return Fields',
@@ -186,9 +186,9 @@ export class Postgres implements INodeType {
},
},
default: '',
placeholder: 'name,description',
placeholder: 'name:text,description',
description:
'Comma separated list of the properties which should used as columns for rows to update.',
'Comma separated list of the properties which should used as columns for rows to update.<br>You can use type casting with colons (:) like id:int.',
},
],
};