2026/03/12

From Woozle Writes Code
< 2026 | 03
Jump to navigation Jump to search
Thursday, March 12, 2026 (#71)
Wednesday Thursday Friday posts:prev <this> next

References

09:09

Actions:

  • 🟢 finished moving DataFiles and DataFolder
  • 🟡 finish revisions for ImportSchema
    • Current issue: nothing in Canals to process (same as before).
    • See 2026/03/09 for notes on what needs doing.
    • 2026/03/11: "there should be at least one: the SQL data file, as an input stream."
    • Tentative action-list for this, in Schema:
      • 🟢 Renamed ImportFile() to ImportFromFile(), for consistency.
      • 🟡 In ImportFromFile(), create Stream for $ofData (the data file-node) and call ImportFromStream()
      • 🟡 Write ImportFromStream().

12:02

Current problem: before we even get around to assigning Stream objects to $oCmd in ImportFromStream(), DoImport() calls EnsureSchema() which then calls one of ReplaceSchema() or CreateSchema() in the Client object, which in turn call DoCommand() (without any Streams set up).

  • Q1: Should these be in Schema? They're Schema-functionality, and they need to set up the Stream objects... (Or we could set those up first, and maybe these calls could happen in ImportFromStream()?)

17:32

I decided part of the solution, at least, is to spin off the SQL-building code into a separate clade, Sys\Data\Engine\aux\Syntax. That way I can leave those calls where they are and actually execute them later, after setting things up properly.