1. 09 Oct, 2020 1 commit
    • Kipp Cannon's avatar
      dbtables: implement working copy mechanism as context manager · 2f7d9758
      Kipp Cannon authored
      - removes the need to install a hook into the NamedTemporaryFile instance to delete the corresponding -journal file in the event of program termination.  clean-up is the responsibility of the context manager.
      - backwards compatibility wrappers are provided
      - a small change in calling code is, however, required:  in all calling codes, must change connect(tmpname) to connect(str(tmpname)).  this can be done in advance of the python-ligo-lw release.
      - fixes issue #!14
      - include set_temp_store_directory() method in context manager, deprecate module-level equivalent
      2f7d9758
  2. 09 Sep, 2019 1 commit
    • Kipp Cannon's avatar
      table.py: remove ._end_of_rows() hook · 30e6ea09
      Kipp Cannon authored
      - nothing ever used it except the DBTable class, which ran a .commit() on the database.
      - the .commit() is more easily implemented as a .endElement() override in a custom Stream handeler, and I've never figured out if the .commit() is even beneficial at all.
      - this patch removes the hook, leading to a *miniscule* performance improvement loading documents, and a conceptual simplification of the code.
      30e6ea09
  3. 24 Feb, 2019 1 commit
  4. 18 Feb, 2019 1 commit
  5. 17 Feb, 2019 1 commit
  6. 14 Feb, 2019 1 commit
  7. 06 Feb, 2019 1 commit
    • Kipp Cannon's avatar
      change lalburst import · 7bd10a10
      Kipp Cannon authored
      - reduce risk of a cyclic dependency by deferring import until inside the
        code that that requires it
      7bd10a10
  8. 23 Nov, 2018 1 commit
  9. 26 Jul, 2018 1 commit
  10. 14 May, 2018 1 commit
  11. 10 May, 2018 1 commit
  12. 29 Mar, 2018 1 commit
  13. 01 Dec, 2017 1 commit
  14. 26 Nov, 2017 5 commits
  15. 20 Jun, 2017 1 commit
  16. 14 Jun, 2017 1 commit
    • Kipp Cannon's avatar
      encode target tables in column names · 1d00d0ae
      Kipp Cannon authored
      - update LSC table definitions so that columns that contain IDs of rows in other tables identify the target table in the name of the column.
      - update ID remapping algorithm to rely on this information.
      - the corresponding change has already been made in lal (refs #5513).
      1d00d0ae
  17. 21 Apr, 2017 3 commits
    • Kipp Cannon's avatar
      exploratory work for migration to integer IDs · b3184a6c
      Kipp Cannon authored
      - add machinery to the ID reassignment algorithms (both XML and SQL) to track table names separately from the IDs
      - target table is queried and recorded during the initial phase, but the second phase does not have an acceptable mechanism by which to obtain this information
      - currently a hack is in place to continue to retrieve it from the IDs themselves, and comments are left in place to suggest a possible better solution for the future.
      b3184a6c
    • Kipp Cannon's avatar
      dbtables: don't assign to id builtin · 1ce50a81
      Kipp Cannon authored
      1ce50a81
    • Kipp Cannon's avatar
      dbtables.install_signal_trap(): adjust handler chaining · fe19b381
      Kipp Cannon authored
      - the function's logic didn't match the documentation with regard to chaining to previously installed handlers.  this patch makes the function's behaviour match the documentation.  it's possible the documentation should've been adjusted to match the behaviour ... but I don't think so, I think that failing to exit is not desirable.
      fe19b381
  18. 27 Mar, 2017 1 commit
  19. 23 Mar, 2017 1 commit
  20. 27 Jan, 2017 1 commit
  21. 25 Nov, 2016 1 commit
  22. 17 Oct, 2016 2 commits
  23. 09 Oct, 2016 1 commit
  24. 26 Sep, 2016 2 commits
  25. 29 Mar, 2016 1 commit
  26. 22 May, 2015 4 commits
  27. 25 Feb, 2015 1 commit
  28. 03 Nov, 2014 1 commit
  29. 29 Oct, 2014 1 commit