Skip to content

Instantly share code, notes, and snippets.

@mikeminutillo
Created March 21, 2012 06:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikeminutillo/2145090 to your computer and use it in GitHub Desktop.
Save mikeminutillo/2145090 to your computer and use it in GitHub Desktop.
Simple DSL for defining Document structures from Relational Data
<?xml version="1.0" encoding="UTF-8"?>
<Extract>
<Orders>
<Order DateCreated="2012-03-21" CustomerNumber="1234">
<OrderLine Qty="2" UnitPrice="15.00" ProductCode="TAC123" />
<OrderLine Qty="45" UnitPrice="0.15" ProductCode="TAC321" />
</Order>
<Order DateCreated="2012-03-21" CustomerNumber="5678">
<OrderLine Qty="9" UnitPrice="27.00" ProductCode="TAC987" />
</Order>
</Orders>
</Extract>
local: server=.\sqlexpress; database=Sample; Integrated Security=SSPI;
uat: server=MY_SERVER; database=Sample; Integrated Security=SSPI;
[MapPoints]
MapPoint
>Address
@State Name
[Orders]
Order
@Customer CustomerNumber
<OrderLine
@Product ProductCode
C:\fl.exe pull uat extract.xml orders -planFile sample.plan
Extracting orders from UAT environment and storing in extract.xml
C:\fl.exe push local extract.xml orders -planFile sample.plan
Reading extract.xml and pushing orders into LOCAL environment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment