Querydb

From Data Islands
Revision as of 11:30, 21 October 2022 by WikiSysopdi (talk | contribs) (Created page with "'''Syntax''' : For SQL/MySQL/PostgreSQL: querydb "<SQL QUERY>" <ENTER> For CSV: querydb "<CSV FILE NAME>" <ENTER> For Xero: querydb <ENTITY> <FILTER> <ENTER> For Files: querydb<PATTERN> <ENTER> Eg: For SQL/ MySQL / PostgreSQL: eg.querydb "select top 10 comp_name from company" For CSV: eg.querydb "test.csv" For Xero: eg.querydb contacts firstname = 'CRM' AND UpdatedDateUTC > DateTime(2022, 03, 24) FILES For Files: eg.querydb "*.csv" Description : Executes the gi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Syntax :

For SQL/MySQL/PostgreSQL: querydb "<SQL QUERY>" <ENTER>

For CSV: querydb "<CSV FILE NAME>" <ENTER>

For Xero: querydb <ENTITY> <FILTER> <ENTER>

For Files: querydb<PATTERN> <ENTER>

Eg:

For SQL/ MySQL / PostgreSQL: eg.querydb "select top 10 comp_name from company"

For CSV: eg.querydb "test.csv"

For Xero: eg.querydb contacts firstname = 'CRM' AND UpdatedDateUTC > DateTime(2022, 03, 24) FILES

For Files: eg.querydb "*.csv"

Description : Executes the given query on the currently connected local Server (marked with a *) and gets the response in tabular form.  For files provider, user can get the file list using a pattern. For xero provider with Invoices entity, user can give last parameter as FILES as optional which means user wants to get PDF resource instead of tabular data and later user can upload those PDF resources to S3 with using push command.