@@ 88-95 (lines=8) @@ | ||
85 | * |
|
86 | * @return PromiseInterface |
|
87 | */ |
|
88 | public function insert(array $data) |
|
89 | { |
|
90 | return Coroutine\create(function () use ($data) { |
|
91 | yield $this->connector->query( |
|
92 | $this->interpolate($this->builder->insert($data)->build()) |
|
93 | ); |
|
94 | }); |
|
95 | } |
|
96 | ||
97 | /** |
|
98 | * @param array $data |
|
@@ 102-109 (lines=8) @@ | ||
99 | * |
|
100 | * @return PromiseInterface |
|
101 | */ |
|
102 | public function update(array $data) |
|
103 | { |
|
104 | return Coroutine\create(function () use ($data) { |
|
105 | yield $this->connector->query( |
|
106 | $this->interpolate($this->builder->update($data)->build()) |
|
107 | ); |
|
108 | }); |
|
109 | } |
|
110 | ||
111 | /** |
|
112 | * @return PromiseInterface |