SQL Databases Using SQLAlchemy: Using Triggers, Stored Procedures, & Transactions


Overview/Description
Expected Duration
Lesson Objectives
Course Number
Expertise Level



Overview/Description

Triggers are used for asynchronous execution and react to specific conditions in your database. Stored procedures can be used to achieve code reuse and code composition of SQL commands. In ths course, you'll learn about some of these procedural constructs of SQL, including triggers, stored procedures, and transactions.

You'll start by learn how to define triggers to perform specific operations before or after insert, update, or delete operations on specific tables. You'll also define stored procedures and invoke them using raw DBAPI connection objects.

Moving forward, you'll define and invoke stored procedures that take in input arguments. You'll also create, commit, and rollback transactions to enforce all-or-nothing execution of a group of SQL commands.

To finish up, you'll learn how DDL operations, such as create, drop, and alter operations, are not reversed by transaction rollback.

By the end of this course, you'll be able to create and test trigger executions, correctly invoke stored procedures using DBAPI connections, achieve code re-use with parameterized stored procedures, and work with transactions from Python using with blocks and transaction objects.



Expected Duration (hours)
1.3

Lesson Objectives

SQL Databases Using SQLAlchemy: Using Triggers, Stored Procedures, & Transactions

  • discover the key concepts covered in this course
  • automate operations using triggers
  • create complex triggers
  • create and invoke stored procedures
  • customize stored procedures using input arguments
  • query views using the where clause
  • start, commit, and rollback a transaction
  • use Python with blocks for transactions
  • work with transaction aborts
  • summarize the key concepts covered in this course
  • Course Number:
    it_pysdsadj_05_enus

    Expertise Level
    Expert