NF11 Export SQL Insert Scripts

From iDempiere en
Revision as of 01:38, 12 March 2023 by Hengsin (talk | contribs) (Created page with "'''Goal:''' UX/Functional '''Developer:''' Hengsin '''Feature''' '''Ticket:''' [https://idempiere.atlassian.net/browse/IDEMPIERE-5624 IDEMPIERE-5624] __TOC__ ===Descriptio...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Goal: UX/Functional

Developer: Hengsin

Feature Ticket: IDEMPIERE-5624

Description

Add "zip - SQL Insert scripts zip archive" option to the Export dialog. The new export type will export data as SQL insert scripts and create a zip file that includes Oracle and PostgreSQL (oracle/*.sql and postgresql/*.sql) scripts. ID value is exported as integer value for official ID and as nextfunc (for primary key) or toRecordId(for foreign key) for non official ID.

Illustration with Screen Shot

SQL Insert Scripts Export Types

New option added to export dialog open from the Export toolbar button.

Export Current Row to SQL Insert Scripts

Dialog for the "zip - SQL Insert scripts zip archive" export type. With Export current row only turn on, user can choose to select the immediate child tabs as part of the exported zip archive.

Export All Rows to SQL Insert Scripts

When Export current row only is turn off (i.e all rows), only current header tab will be exported to the zip archive.

Samples

Samples attached to https://idempiere.atlassian.net/browse/IDEMPIERE-5624:

  • Orders.zip - With "Export current row only" off.
  • OrderAndLines.zip - With "Export current row only" on and Order Lines selected.

Limitations

The exporter doesn't handle binary type (image, blob, etc).

Cookies help us deliver our services. By using our services, you agree to our use of cookies.