[Gambas-devel] MySQL class ready
Benoit Minisini
gambas at ...1...
Sat Apr 19 19:20:00 CEST 2008
On samedi 19 avril 2008, David Villalobos Cambronero wrote:
> Hi Benoit
>
> I'm trying to make things easier to understand I can make a Class for every
> database object (tables, databases, fields, indexes, etc) following the
> actual Gambas Database manager.
>
> For example: to add a field we have to do DB.MySQL.FieldDefinition(...) now
> we do: DB.MySQL.Field.Add(...) Instead of DB.MySQL.AlterDataBase(...) we
> have: DB.MySQL.DataBase.Modify(...) Instead of DB.MySQL.DropTable(...) we
> have: DB.MySQL.Table.Delete(...), etc, etc.
>
> What do you think?
>
> Regards
>
> David
>
That's OK. But some functions are not really needed (like DB.MySQL.DropTable,
DB.MySQL.Table.Delete...) as they are actually already implemented in the
gb.db component. But you can keep them for coherency reasons.
--
Benoit Minisini
More information about the Devel
mailing list