What are the DDL class in magento setup scripts?

  • Open
  • Pankaj Sharma
    Participant
    August 9, 2019 at 4:20 am #2528
    Pankaj Sharma

    DDL classes in Magento and how to use these classes in setup scripts? Do you have any idea of this?

    Thanks

  1. Pankaj Sharma
    Participant
    Posts: 144
    August 14, 2019 at 12:41 pm #2575
    Pankaj Sharma

    Here are few point that I found related to the DDL classes:

    a. They allow setup scripts to be cross-database compatible with any underlying RDBMS.

    b. A developer requires knowledge of the underlying RDBMS support, for example they need to create indexes, foreign key constraints, and are also restricted by the limits on names for schema objects.

    c. A developer who writes raw SQL every day will find it a lot easier to write raw SQL queries compared to using the DDL classes.

    d. The DDL classes have no knowledge about modules, so this option also is not true.

     

    Thanks