Compare commits
5 Commits
demo-postg
...
main
Author | SHA1 | Date | |
---|---|---|---|
|
097d5ade67 | ||
|
cfbf1d92ba | ||
|
bbe49c7bd9 | ||
604b655ddf | |||
367c94e7b4 |
@ -1,6 +1,6 @@
|
||||
# Sheetjs to PostgreSQL Creating a Table Demo
|
||||
# Sheetjs to PostgreSQL
|
||||
|
||||
A Node.js utility that intelligently converts Sheetjs `worksheet` to PostgreSQL tables while preserving appropriate data types.
|
||||
Convert Excel sheets to PostgreSQL tables with correct data types.
|
||||
|
||||
> This demo project serves as a refernce implementation for SheetJS + PostgreSQL integration. For more details, vist the [SheetJS Documentation](https://docs.sheetjs.com/docs/demos/data/postgresql/#creating-a-table).
|
||||
|
||||
|
Binary file not shown.
Binary file not shown.
@ -17,7 +17,7 @@ def generate_number_formats_test():
|
||||
]
|
||||
})
|
||||
|
||||
writer = pd.ExcelWriter('number_formats.xlsx', engine='xlsxwriter')
|
||||
writer = pd.ExcelWriter('test_files/number_formats.xlsx', engine='xlsxwriter')
|
||||
df.to_excel(writer, index=False, sheet_name='Sheet1')
|
||||
|
||||
# Get workbook and worksheet objects
|
||||
@ -49,7 +49,7 @@ def generate_date_formats_test():
|
||||
]
|
||||
})
|
||||
|
||||
writer = pd.ExcelWriter('date_formats.xlsx', engine='xlsxwriter')
|
||||
writer = pd.ExcelWriter('test_files/date_formats.xlsx', engine='xlsxwriter')
|
||||
df.to_excel(writer, index=False, sheet_name='Sheet1')
|
||||
|
||||
workbook = writer.book
|
||||
@ -92,7 +92,7 @@ def generate_special_values_test():
|
||||
]
|
||||
})
|
||||
|
||||
writer = pd.ExcelWriter('special_values.xlsx', engine='xlsxwriter')
|
||||
writer = pd.ExcelWriter('test_files/special_values.xlsx', engine='xlsxwriter')
|
||||
df.to_excel(writer, index=False, sheet_name='Sheet1')
|
||||
writer.close()
|
||||
|
||||
@ -111,7 +111,7 @@ def generate_precision_test():
|
||||
]
|
||||
})
|
||||
|
||||
writer = pd.ExcelWriter('precision.xlsx', engine='xlsxwriter')
|
||||
writer = pd.ExcelWriter('test_files/precision.xlsx', engine='xlsxwriter')
|
||||
df.to_excel(writer, index=False, sheet_name='Sheet1')
|
||||
|
||||
workbook = writer.book
|
||||
@ -150,7 +150,7 @@ def generate_string_formats_test():
|
||||
]
|
||||
})
|
||||
|
||||
writer = pd.ExcelWriter('string_formats.xlsx', engine='xlsxwriter')
|
||||
writer = pd.ExcelWriter('test_files/string_formats.xlsx', engine='xlsxwriter')
|
||||
df.to_excel(writer, index=False, sheet_name='Sheet1')
|
||||
|
||||
workbook = writer.book
|
||||
@ -173,7 +173,7 @@ def generate_boolean_formats_test():
|
||||
]
|
||||
})
|
||||
|
||||
writer = pd.ExcelWriter('boolean_formats.xlsx', engine='xlsxwriter')
|
||||
writer = pd.ExcelWriter('test_files/boolean_formats.xlsx', engine='xlsxwriter')
|
||||
df.to_excel(writer, index=False, sheet_name='Sheet1')
|
||||
|
||||
workbook = writer.book
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user