Futilities/v0.6/clade/Sys/dba/InReq/infmts/DbStuff
Jump to navigation
Jump to search
| ||||||||||||||||||||
About
- PURPOSE: input format that specifies a db connection with optional schema
History
Code
interface iDbStuff extends DataFileIface, SchemaIface {}
trait tDbStuff {
use DataFileTrait;
use SchemaTrait;
}
Removed
2025-11-15
// ++ SETUP: dynamic/INPUT ++ //
// 2025-10-05 I think these are gesproingled. There's working code in the InReq podling-classes... and shouldn't these just be in InReq?
protected function ParseInputString(string $s) : void {
$this->OAUserInput()->SetIt(self::KS_DBC_NAME,$s);
}
protected function ParseInputArgs(array $arArgs) {
if (count($arArgs) > 0) {
$s = $arArgs[0];
#$this->AmHere("ARG 0 PARSED AS [$s]");
$this->OAUserInput()->SetIt(self::KS_SCH_NAME,$s);
}
}
// -- SETUP -- //
2025-05-31
Commented out earlier:
// ++ INFO ++ //
protected function QDbConnSlug() : QStrIface { return $this->OAThisInput()->QDbConnSlug(); }
protected function QSchemaSlug() : QStrIface { return $this->OAThisInput()->QSchemaSlug(); }
// -- INFO -- //
//...
class caDbStuff extends BaseClass implements iDbStuff {
}