Build the synthetic sandbox
The test scripts rebuild it on every run, so this step is shown for clarity. It creates the folder, writes the marker, and builds the five-row table with two index tags:
lcDir = "C:\BridgeSandbox\Conn\"
IF !DIRECTORY(lcDir)
MKDIR (lcDir)
ENDIF
STRTOFILE("disposable sandbox for connector tests", lcDir + "BRIDGE_SANDBOX.TXT")
CREATE TABLE (lcDir + "cust") FREE (id I, name C(20), email C(30), balance N(10,2), joined D)
INDEX ON id TAG id
INDEX ON UPPER(name) TAG name
INSERT INTO cust VALUES (1, "Ann", "ann@x.com", 10.50, {^2026-01-01})
INSERT INTO cust VALUES (2, "Bob", "bob@x.com", 20.00, {^2026-02-01})
INSERT INTO cust VALUES (3, "Cy", "cy@x.com", 30.00, {^2026-03-01})
INSERT INTO cust VALUES (4, "Di", "di@x.com", 40.00, {^2026-04-01})
INSERT INTO cust VALUES (5, "Ed", "ed@x.com", 50.00, {^2026-05-01})
USE
The import file, import1.csv, has eight rows: one unchanged, two updates, three inserts (one with a quoted comma), one impossible date and one duplicate key. That is where the recording's "3 to insert · 2 to update · 1 unchanged · 2 refused" comes from.
id,name,email,balance,joined
1,Ann,ann@x.com,10.50,2026-01-01
2,Bob Jones,bob@x.com,20.00,2026-02-01
3,Cy,cy@new.com,30.00,2026-03-01
6,Fay,fay@x.com,60.00,2026-06-01
7,Gus,gus@x.com,70.00,2026-07-01
8,Bad,bad@x.com,80.00,2026-13-45
2,Dup,dup@x.com,1.00,2026-01-01
9,"Quote, Inc",q@x.com,9.99,2026-09-09
Session settings the scripts use: SET EXCLUSIVE OFF, SET DELETED OFF, SET DATE TO YMD, SET CENTURY ON, SET FIXED OFF, SET SAFETY OFF, SET TALK OFF.
The five steps you see in the recording
The recording replays these connector verbs, run in a VFP session with SET DEFAULT TO C:\BridgeProbe\connector:
DO bridgeconn WITH "PLAN", "C:\BridgeSandbox\Conn\", "cust.dbf", "C:\BridgeSandbox\Conn\import1.csv", "id"
DO bridgeconn WITH "DRYRUN", "C:\BridgeSandbox\Conn\", "<plan file>"
DO bridgeconn WITH "APPROVE", "C:\BridgeSandbox\Conn\", "<plan file>", "<crc from the plan result>"
DO bridgeconn WITH "APPLY", "C:\BridgeSandbox\Conn\", "<plan file>"
DO bridgeconn WITH "UNDO", "C:\BridgeSandbox\Conn\", "<journal file>"
The worker loop is started the same way: DO bridgeworker WITH "C:\BridgeSandbox\Conn\", "http://127.0.0.1:3101", "hst_vfp_local", "dry" (or "apply"), with "ONCE" to poll a single time. For the "someone else edited a record" scenario, record 3's email was changed to other@x.com in a second VFP process between approval and apply.