spyglass icon indicating copy to clipboard operation
spyglass copied to clipboard

`dj_graph` prompt to spawn missing classes

Open CBroz1 opened this issue 9 months ago • 0 comments

Currently, AbstractGraph throws an error when it cannot find a table. It's possible that this table may not be in Spyglass. The error message could suggest users spawn missing classes in these cases.

schema = dj.Schema('that_database')
schema.spawn_missing_classes()

An alternate version would just spawn these classes on their behalf, but this could add unpredictably many classes to the namespace, potentially colliding with existing objects

CBroz1 avatar May 20 '24 21:05 CBroz1