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

Change table access to optionally not create tables if they do not exist #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dcat52
Copy link

@dcat52 dcat52 commented Feb 28, 2022

I would like to propose the following implementation changes to BuzzTableOpen and BuzzTableOpenNested.

  • Addition of an optional parameter make_if_not_exist to specify whether the table should be created if it does not already exist and have it default to true for backwards compatibility.
  • Change return type from void to bool to notify the user if the table open was successful.

Example Usage:

bool success;

success = BuzzTableOpen(t_vm, "tbl", false);
if(!success)
    return;
success = BuzzTableOpenNested(t_vm, "A", false);
if(!success)
    return;

  Fixes table Get operations previously created tables and sub tables without option to not
@dcat52 dcat52 force-pushed the dcat52/modify_BuzzTableOpen branch from b01b2f1 to 2104cf1 Compare March 8, 2022 18:09
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.

1 participant