[Dbix-class] DBIx Class - Creating on the fly tables

Peter Rabbitson rabbit+dbic at rabbit.us
Fri Dec 16 11:37:54 GMT 2011


Rohan M wrote:
> Hi All,
> 
>    I came up against a situation where I need to create table based on 
> user input file (lets say csv).   How can I create on the fly tables 
> using DBIx::Class considering the column numbers are varying with each 
> user file?
> 
> This is something very similar of having mysql temporary table and 
> loading a file into the table using load command.
> 
> Could anybody give me directions/points on how to go about ?
> 

What is it exactly you are trying to do? You already described how
would you normally do it, there is no reason to shoehorn this into
DBIC just for the sake of it (DBIC being a tool, not a framework).

Clarify your objective for more specific help :)

Cheers



More information about the DBIx-Class mailing list