- A lot of work done on bug fixing. Added a new SQLite adapter

This commit is contained in:
mcndave committed 2022-01-28 16:37:35 +00:00
1 parent 667df92e52
commit c14644cdda
28 files changed
+727 -234

No files matched your search

+43
View File
@@ -0,0 +1,43 @@
<?php
namespace Ulmus\Entity\Sqlite;
use Ulmus\EntityCollection;
/**
* @Table('name' => "sqlite_master")
*/
class Schema
{
use \Ulmus\EntityTrait;
/**
* @Id
*/
public ? string $name;
/**
* @Field
*/
public ? string $type;
/**
* @Field('name' => 'tbl_name')
*/
public ? string $tableName;
/**
* @Field
*/
public ? int $rootpage;
/**
* @Field
*/
public ? string $sql;
/**
* @Relation('oneToMany', 'key' => 'tableName', 'foreignKey' => 'tableName', 'entity' => Schema::class)
*/
public EntityCollection $columns;
}