Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Iterate over storage plugins #643

Merged
merged 12 commits into from
Sep 21, 2023
Merged

Iterate over storage plugins #643

merged 12 commits into from
Sep 21, 2023

Conversation

jesper-friis
Copy link
Collaborator

@jesper-friis jesper-friis commented Sep 12, 2023

Description

Fixed iteration over storage plugins. One use case is automatic generation of documentation of storage plugins (see issue #642).

Quite many changes, but the most interesting change is this line.

Additional fixes:

  • Got rid of occasional segfaults during shutdown of DLite.
  • Updated tests

Type of change

  • Bug fix & code cleanup
  • New feature
  • Documentation update
  • Test update

Checklist for the reviewer

This checklist should be used as a help for the reviewer.

  • Is the change limited to one issue?
  • Does this PR close the issue?
  • Is the code easy to read and understand?
  • Do all new feature have an accompanying new test?
  • Has the documentation been updated as necessary?

bindings/python/dlite-storage.i Show resolved Hide resolved
bindings/python/tests/test_postgresql1_write.py Outdated Show resolved Hide resolved
@@ -191,7 +191,7 @@ def table_create(self, meta, dims=None):
]
for p in meta["properties"]:
decl = f'"{p.name}" {to_pgtype(p.type)}'
if len(p.dims):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change does not make sense to me. You test for the length of shape, but use dims, as before you tested and used dims

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sell seen. p.dims is an backward-compatible alias for p.shape. We should use p.shape

Copy link
Contributor

@lovfall lovfall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good now

@jesper-friis jesper-friis merged commit a051aef into master Sep 21, 2023
11 checks passed
@jesper-friis jesper-friis deleted the storage-query branch September 21, 2023 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants