O
Ole
Hi there!
I'm currently looking for a kind of "field-data abstraction layer for
DBI/MySQL". It should solve the issues of table layout and data
access.
Now I try to find out if there is a module availalble of if I need to
breed my own.
some pseudo code to illustrate what I mean:
at the moment I need to do this
- do some SQL query
- @row = handle->fetchrow_array
- access data-field by $data-in-field = $row[4]
here I need to know what the table layout is.
And I can't hardly change the table layout after I introduced a
specific layout into my code
I should be like this:
access sql and fetch data-field in one step:
-$data-in-field = $table-$row{id}-$field{name}
this should solve all my problems, as I don't really care about table
layout and efficiently accessing sql, everything should be done in the
background.
This should make it possible to build tree like data structures into a
sql table
Is there such a solution?
Thanks!
I'm currently looking for a kind of "field-data abstraction layer for
DBI/MySQL". It should solve the issues of table layout and data
access.
Now I try to find out if there is a module availalble of if I need to
breed my own.
some pseudo code to illustrate what I mean:
at the moment I need to do this
- do some SQL query
- @row = handle->fetchrow_array
- access data-field by $data-in-field = $row[4]
here I need to know what the table layout is.
And I can't hardly change the table layout after I introduced a
specific layout into my code
I should be like this:
access sql and fetch data-field in one step:
-$data-in-field = $table-$row{id}-$field{name}
this should solve all my problems, as I don't really care about table
layout and efficiently accessing sql, everything should be done in the
background.
This should make it possible to build tree like data structures into a
sql table
Is there such a solution?
Thanks!