sqlboiler icon indicating copy to clipboard operation
sqlboiler copied to clipboard

feature: set custom table name for insertion

Open c9s opened this issue 2 months ago • 9 comments

c9s avatar Apr 05 '24 10:04 c9s

@stephenafamo please take a look,, thanks!

c9s avatar Apr 06 '24 05:04 c9s

What is the use case for this?

stephenafamo avatar May 14 '24 08:05 stephenafamo

What is the use case for this?

for database sharding, for large datasets we need to move these data in different tables with the same schema

c9s avatar May 14 '24 08:05 c9s

this is the related ticket (discussion) https://github.com/volatiletech/sqlboiler/discussions/1378

c9s avatar May 14 '24 08:05 c9s

for database sharding, for large datasets we need to move these data in different tables with the same schema

Instead of making this change to SQLBoiler, did you consider having extra templates to add an extra method to the models?
https://github.com/volatiletech/sqlboiler?tab=readme-ov-file#templates

stephenafamo avatar May 15 '24 11:05 stephenafamo