-
-
Notifications
You must be signed in to change notification settings - Fork 29
How to create a new SQL command
MasterDuke17 edited this page Sep 7, 2019
·
2 revisions
Using drop table as example:
- create a new
Red::AST::DropTable - create a
.^drop-tablemethod onMetamodelX::Red::Model(like the.^create-tablemethod) - add a
multi method translate(Red::AST::DropTable $_, $context)onRed::Driver::CommonSQL - if is there any supported database where the SQL for drop a table is different from the
CommonSQLone, add amulti method translate(Red::AST::DropTable $_, $context)on that driver