/Rhino.Etl.Tests/Dsl/UsersToPeopleBulk.boo

http://github.com/ayende/rhino-etl · Boo · 16 lines · 15 code · 1 blank · 0 comment · 2 complexity · 65c7e8456af471d4c17de62ef9e4c28e MD5 · raw file

  1. operation split_name_bulk:
  2. for row in rows:
  3. continue if row.Name is null
  4. row.FirstName = row.Name.Split()[0]
  5. row.LastName = row.Name.Split()[1]
  6. yield row
  7. process UsersToPeopleBulk:
  8. input "test", Command = "SELECT id, name, email FROM Users"
  9. split_name_bulk()
  10. sqlBulkInsert "test", "People", TableLock = true :
  11. map "id", int
  12. map "firstname"
  13. map "lastname"
  14. map "email"
  15. map "userid", "id", int