func (r *Record) BulkInsert(stmt bulk.Stmt) error { args, err := json.Marshal(r.Args) if err != nil { return err } _, err = stmt.Exec(r.UUID.String(), r.Domain.UUID.String(), r.Name, string(args), r.Type.ID, r.Date) return err }
func (d Domain) BulkInsert(stmt bulk.Stmt) error { _, err := stmt.Exec(d.UUID.String(), d.Name, d.TLD.ID) return err }