This commit is contained in:
Sunli 2020-10-28 09:39:19 +08:00
parent 8d2c8f9bcc
commit 5dc4223d5c

View File

@ -327,8 +327,8 @@ where
}
/// Returns SDL(Schema Definition Language) of this schema.
pub fn sdl() -> String {
Self::create_registry().export_sdl(false)
pub fn sdl(&self) -> String {
self.0.env.registry.export_sdl(false)
}
/// Get all names in this schema