/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
- operation split_name_bulk:
- for row in rows:
- continue if row.Name is null
- row.FirstName = row.Name.Split()[0]
- row.LastName = row.Name.Split()[1]
- yield row
-
- process UsersToPeopleBulk:
- input "test", Command = "SELECT id, name, email FROM Users"
- split_name_bulk()
- sqlBulkInsert "test", "People", TableLock = true :
- map "id", int
- map "firstname"
- map "lastname"
- map "email"
- map "userid", "id", int