Is there an editor/tool to generate code from MySQL

Hi,

I was wondering is there was some tool that could generate php code for
the getters and setters for the properties in a MySQL table.
Couldn't find this yet, but it could be quite useful if there is one.
Please let me know.

Thanks in advance,

Roderik


--
http://www.roderik.net/nieuws/
Roderik [ Fr, 30 März 2007 18:13 ] [ ID #1674161 ]

Re: Is there an editor/tool to generate code from MySQL

Roderik wrote:
> Hi,
>
> I was wondering is there was some tool that could generate php code
> for the getters and setters for the properties in a MySQL table.
> Couldn't find this yet, but it could be quite useful if there is one.
> Please let me know.
>
> Thanks in advance,
>
> Roderik

phpmyadmin
after you run a query there is a link to: Create PHP Code
Paul Lautman [ Fr, 30 März 2007 19:43 ] [ ID #1674162 ]

Re: Is there an editor/tool to generate code from MySQL

Paul Lautman schreef:
> Roderik wrote:
>> Hi,
>>
>> I was wondering is there was some tool that could generate php code
>> for the getters and setters for the properties in a MySQL table.
>> Couldn't find this yet, but it could be quite useful if there is one.
>> Please let me know.
>>
>> Thanks in advance,
>>
>> Roderik
>
> phpmyadmin
> after you run a query there is a link to: Create PHP Code
>
>
That's obvious, but it is the query you executed in a php wrap, not the
functions for getting, setting and updating in a php class named after
the table name.
That's more or less what I was looking for, since typing out every query
might me time consuming and it seems to be a logic and useful thing. So
I thought there might be some tools which have this funtionality.
So if you know one, please share it with me/us.

--
http://www.roderik.net/nieuws/
Roderik [ Di, 03 April 2007 06:10 ] [ ID #1677565 ]

Re: Is there an editor/tool to generate code from MySQL

On 3 Apr, 05:10, Roderik <rode... [at] none.invalid> wrote:
> Paul Lautman schreef:
>
>
>
> > Roderik wrote:
> >> Hi,
>
> >> I was wondering is there was some tool that could generate php code
> >> for the getters and setters for the properties in a MySQL table.
> >> Couldn't find this yet, but it could be quite useful if there is one.
> >> Please let me know.
>
> >> Thanks in advance,
>
> >> Roderik
>
> > phpmyadmin
> > after you run a query there is a link to: Create PHP Code
>
> That's obvious, but it is the query you executed in a php wrap, not the
> functions for getting, setting and updating in a php class named after
> the table name.
> That's more or less what I was looking for, since typing out every query
> might me time consuming and it seems to be a logic and useful thing. So
> I thought there might be some tools which have this funtionality.
> So if you know one, please share it with me/us.
>
> --http://www.roderik.net/nieuws/- Hide quoted text -
>
> - Show quoted text -

have a search over on phpclasses.org
Captain Paralytic [ Di, 03 April 2007 10:38 ] [ ID #1677569 ]

Re: Is there an editor/tool to generate code from MySQL

Captain Paralytic schreef:
> On 3 Apr, 05:10, Roderik <rode... [at] none.invalid> wrote:
>> Paul Lautman schreef:
>>
>>
>>
>>> Roderik wrote:
>>>> Hi,
>>>> I was wondering is there was some tool that could generate php code
>>>> for the getters and setters for the properties in a MySQL table.
>>>> Couldn't find this yet, but it could be quite useful if there is one.
>>>> Please let me know.
>>>> Thanks in advance,
>>>> Roderik
>>> phpmyadmin
>>> after you run a query there is a link to: Create PHP Code
>> That's obvious, but it is the query you executed in a php wrap, not the
>> functions for getting, setting and updating in a php class named after
>> the table name.
>> That's more or less what I was looking for, since typing out every query
>> might me time consuming and it seems to be a logic and useful thing. So
>> I thought there might be some tools which have this funtionality.
>> So if you know one, please share it with me/us.
>>
>> --http://www.roderik.net/nieuws/- Hide quoted text -
>>
>> - Show quoted text -
>
> have a search over on phpclasses.org
>

Found interesting things there, unfortunately I have no php 5 support.
So, didn't found what I was looking for. Nevertheless thanks for the
suggestion.

--
http://www.roderik.net/nieuws/
Roderik [ Mi, 04 April 2007 01:43 ] [ ID #1678708 ]
PHP » alt.php.sql » Is there an editor/tool to generate code from MySQL

Vorheriges Thema: Newbie setting up php/mysql database
Nächstes Thema: mysql_connect and private user function