find

Get or retrieve array of datas.

Usage:

$db->{table}->find();
$db->{table}->find($where);

Example:

$news = $db->news->find();
echo json_encode($news);

Return:

[
    {
        "id": "1",
        "name": "Test News",
        "status": "ACTIVE",
        "created_at": "2024-11-03 21:07:37",
        "updated_at": null,
        "deleted_at": null
    },
    ...
]

You can also pass options in the function:

Using Primary ID

Using other columns for retrieval

Looking for the other parameters?

Parameters

Last updated