transaction.py 712 B

1234567891011121314151617181920212223
  1. # Copyright Materialize, Inc. and contributors. All rights reserved.
  2. #
  3. # Use of this software is governed by the Business Source License
  4. # included in the LICENSE file at the root of this repository.
  5. #
  6. # As of the Change Date specified in that file, in accordance with
  7. # the Business Source License, use of this software will be governed
  8. # by the Apache License, Version 2.0.
  9. from materialize.data_ingest.rowlist import RowList
  10. class Transaction:
  11. row_lists: list[RowList]
  12. def __init__(self, row_lists: list[RowList]):
  13. self.row_lists = row_lists
  14. def __repr__(self) -> str:
  15. return (
  16. f"Transaction({','.join([str(row_list) for row_list in self.row_lists])})"
  17. )