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

"primary_increment" arg in database.get_table() #391

Closed
vladiscripts opened this issue Jan 5, 2022 · 0 comments
Closed

"primary_increment" arg in database.get_table() #391

vladiscripts opened this issue Jan 5, 2022 · 0 comments

Comments

@vladiscripts
Copy link

db.get_table('table', primary_id='tid', primary_increment=False)
raise:
TypeError: get_table() got an unexpected keyword argument 'primary_increment'

In the dataset.database.py we see:

    def get_table(self, table_name, primary_id=None, primary_type=None):
        """Load or create a table.

        This is now the same as ``create_table``.

And here the defination of create_table():

    def create_table(
        self, table_name, primary_id=None, primary_type=None, primary_increment=None
    )

As we can see, get_table() does not have not the primary_increment argument, so it is not "the same as create_table.

@pudo pudo closed this as completed in 7e92150 Jan 7, 2022
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

No branches or pull requests

1 participant