You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, there is no way to specify the schema when calling pandas.io.sql.get_schema, the schema is a helpful parameter when working with certain databases such as MSSQL.
this adds an extra step to have to parse the file in order to add the schema, otherwise when I execute the script later, the table is created in user default schema (dbo in most cases). This issue can be easily addressed by adding schema parameter to _create_sql_schema since SQLTable already supports schema
importpandas.io.sql# future statetable_name='my_new_table'schema='pypi'sql_create_statement=pandas.io.sql.get_schema(df, table_name, schema=schema)
# create statement will look like this for MSSQL if con parameter is passed"""CREATE TABLE pypi.[my_new_table] ( [Column1], ....)"""
The text was updated successfully, but these errors were encountered:
Currently, there is no way to specify the schema when calling pandas.io.sql.get_schema, the schema is a helpful parameter when working with certain databases such as MSSQL.
this adds an extra step to have to parse the file in order to add the schema, otherwise when I execute the script later, the table is created in user default schema (dbo in most cases). This issue can be easily addressed by adding
schema
parameter to_create_sql_schema
sinceSQLTable
already supportsschema
The text was updated successfully, but these errors were encountered: