Implement a function of bulk-insert