Closed vladiscripts closed 2 years ago
db.get_table('table', primary_id='tid', primary_increment=False) raise: TypeError: get_table() got an unexpected keyword argument 'primary_increment'
db.get_table('table', primary_id='tid', primary_increment=False)
TypeError: get_table() got an unexpected keyword argument 'primary_increment'
In the dataset.database.py we see:
the dataset.database.py
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():
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.
get_table()
primary_increment
create_table
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:And here the defination of
create_table()
:As we can see,
get_table()
does not have not theprimary_increment
argument, so it is not "the same ascreate_table
.