-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Bruno Morais
authored and
Bruno Morais
committed
Nov 26, 2023
1 parent
b519500
commit 3764641
Showing
3 changed files
with
54 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
use BMorais\Database\Crud; | ||
use BMorais\Database\CrudBuilder; | ||
|
||
class ExampleDao extends CrudBuilder { | ||
|
||
|
||
public function __construct() | ||
{ | ||
$this->setTable("EXAMPLE"); | ||
$this->setClassModel("exampleModel"); | ||
} | ||
|
||
public function findName(): array { | ||
$this->selectBuilder() | ||
->where("NOME=?",["Joao"]) | ||
->orderBy("NOME") | ||
->executeQuery() | ||
->fetchArrayAssoc(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters