Ferreteria/v0.6/fx/DoExport: Difference between revisions
< Ferreteria | v0.6 | fx
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{page/fx}} | {{page/fx}} | ||
==About== | ==About== | ||
* '''Mirror''': <code>{{l/same|DoImport}}()</code> | * '''Mirror''': <code>{{l/same|DoImport}}()</code> | ||
* '''Definitions''': | |||
** '''A''': <code>public function DoExport({{l/ver/clade|Sys\FileSys\Node|Fi|FileIface}} $ofData) : {{l/ver/clade|Sys\Data\Engine\aux\msgs\Maria|ItWent|ActionIface}}</code> | |||
*** Implemented by {{l/ver/clade|Sys\Data\Engine|Schema}} classes | |||
** '''B''': <code>public function DoExport(string $sSchema, {{l/ver/clade|IO\Aspect\Connx\Buffer\File|Writer|RecvBuffClass}} $oInBuff) : {{l/ver/clade|Sys\Data\Engine\aux\msgs\Maria|ItWent|CommOpIface}}</code> | |||
*** Implemented by DB {{l/ver/clade|Sys\Data\Engine|Oper}} classes, which currently get a list of all available Schemas and then dispatch to each Schema object's DoExport() (form A). (Future: should also be able to export a single Schema by name.) | |||
==Usage== | ==Usage== | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
! clade || use || notes | ! clade || form || use || notes | ||
{{!-!}} {{l/ver/clade/full | {{!-!}} A || <code>{{l/ver/clade/full|Sys\Data\Engine|Schema}}</code> || require | ||
{{!-!}} {{l/ver/clade/full| | {{!-!}} B || <code>{{l/ver/clade/full|Sys\Data\Engine\Oper|MyMar}}</code> || {{l/ver/clade/fx|Sys\Data\Engine\Oper|MyMar|DoExport|implement}} | ||
{{!-!}} {{l/ver/clade/full | {{!-!}} A || <code>{{l/ver/clade/full|Sys\Data\Engine\schema\Ops|MyMar}}</code> || {{l/ver/clade/fx|Sys\Data\Engine\schema\Ops|MyMar|DoExport|implement}}, call | ||
| <code>$oAct = {{l/sub/fx|DbOper|$oOper}}->DoExport($sSchema,{{l/ver/clade|IO\Aspect\Connx\Buffer\File|Writer|$oExecBuff}});</code> | |||
{{!-!}} B || <code>{{l/ver/clade/full|Sys\Data\Engine\aux\ActionRq\Admin\schema|EngScExport}}</code> || call | |||
| <code>$this->{{l/ver/fx|QOSchema}}()->{{l/ver/fx|GetIt}}()->{{l/ver/fx|DoExport}}($this->{{l/ver/fx|DataFileNode}}(),$this->{{l/ver/fx|OkToReplace}}())</code> | |||
|} | |} | ||
See also {{l/ver/fx/proj|Futilities}}. | See also {{l/ver/fx/proj|Futilities}}. | ||
Latest revision as of 01:33, 3 December 2025
About
- Mirror:
DoImport() - Definitions:
- A:
public function DoExport(FileIface $ofData) : ActionIface- Implemented by Schema classes
- B:
public function DoExport(string $sSchema, RecvBuffClass $oInBuff) : CommOpIface- Implemented by DB Oper classes, which currently get a list of all available Schemas and then dispatch to each Schema object's DoExport() (form A). (Future: should also be able to export a single Schema by name.)
- A:
Usage
| clade | form | use | notes |
|---|---|---|---|
| A | Sys\Data\Engine\Schema |
require | |
| B | Sys\Data\Engine\Oper\MyMar |
implement | |
| A | Sys\Data\Engine\schema\Ops\MyMar |
implement, call | $oAct = $oOper->DoExport($sSchema,$oExecBuff);
|
| B | Sys\Data\Engine\aux\ActionRq\Admin\schema\EngScExport |
call | $this->QOSchema()->GetIt()->DoExport($this->DataFileNode(),$this->OkToReplace())
|
See also Futilities.