组装并运行预定义的查询。

1.0.0 2024-01-27 08:31 UTC

This package is auto-updated.

Last update: 2024-09-27 13:35:26 UTC


README

关于 Rest-full ORM

Rest-full ORM 是 Rest-Full 框架的一个小部分。

您可以在以下位置找到应用程序: rest-full/app,您还可以在以下位置查看框架骨架: rest-full/rest-full

安装

  • 下载 Composer 或更新 composer self-update
  • 运行 php composer.phar require rest-full/orm 或全局安装的 composer compser require rest-full/orm 或 composer.json "rest-full/orm": "1.0.0" 并安装或更新。

用法

此 ORM

<?php

require_once __DIR__ . '/../vendor/autoload.php';
require_once __DIR__ . '/../config/pathServer.php';

use App\AppModel;
use Restfull\Core\Aplication;

$app = new Aplication();
$app->bootstrapDatabase(
        'default',
        [
                'drive' => 'mysql',
                'username' => 'sws',
                'password' => 'SWS25!!89',
                'host' => 'localhost',
                'dbname' => 'miguelcoutoonl'
        ]
);
$table = new AppModel();
$exeute = $table->tableRegistry(
        ['main' => [['table' => 'usuarios']], 'join' => [['usuarios' => [['table' => []]]]]]
)->dataQuery(['fields' => ['usuarios']])->find('first')->getIterator()->itens();
print_r($exeute);

许可协议

rest-full 框架是开源软件,许可协议为 MIT 许可协议