equal
deleted
inserted
replaced
640 /* explicit locking: only applicable to PostgreSQL within transaction context */ |
640 /* explicit locking: only applicable to PostgreSQL within transaction context */ |
641 // see https://www.postgresql.org/docs/current/sql-lock.html |
641 // see https://www.postgresql.org/docs/current/sql-lock.html |
642 // see https://www.postgresql.org/docs/current/explicit-locking.html |
642 // see https://www.postgresql.org/docs/current/explicit-locking.html |
643 |
643 |
644 override def lock_tables(tables: List[SQL.Table]): PostgreSQL.Source = |
644 override def lock_tables(tables: List[SQL.Table]): PostgreSQL.Source = |
645 "LOCK TABLE " + tables.mkString(", ") + " IN ACCESS EXCLUSIVE MODE" |
645 if_proper(tables, "LOCK TABLE " + tables.mkString(", ") + " IN ACCESS EXCLUSIVE MODE") |
646 |
646 |
647 |
647 |
648 /* notifications: IPC via database server */ |
648 /* notifications: IPC via database server */ |
649 // see https://www.postgresql.org/docs/current/sql-notify.html |
649 // see https://www.postgresql.org/docs/current/sql-notify.html |
650 |
650 |