Skip to content

Commit 0e6c823

Browse files
authored
Update ExtraFluent.php
1 parent 4e33f4d commit 0e6c823

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

src/Drago/Database/ExtraFluent.php

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,45 @@ public function delete(...$cond): self
114114
}
115115

116116

117+
/**
118+
* Insert values into the table.
119+
*
120+
* @param mixed ...$cond Values or SQL fragments to insert.
121+
* @return $this Fluent instance.
122+
*/
123+
public function insert(...$cond): self
124+
{
125+
parent::insert(...$cond);
126+
return $this;
127+
}
128+
129+
130+
/**
131+
* Update records in the table.
132+
*
133+
* @param mixed ...$cond Values or SQL fragments to update.
134+
* @return $this Fluent instance.
135+
*/
136+
public function update(...$cond): self
137+
{
138+
parent::update(...$cond);
139+
return $this;
140+
}
141+
142+
143+
/**
144+
* Set the table for the INSERT query.
145+
*
146+
* @param mixed ...$cond Table name or SQL fragments.
147+
* @return $this Fluent instance.
148+
*/
149+
public function into(...$cond): self
150+
{
151+
parent::into(...$cond);
152+
return $this;
153+
}
154+
155+
117156
/**
118157
* Execute the query and return a single record.
119158
*

0 commit comments

Comments
 (0)