[Gambas-devel] New component for Gambas

Benoit Minisini gambas at ...1...
Mon Mar 31 16:30:38 CEST 2008


On lundi 31 mars 2008, David Villalobos Cambronero wrote:
> Hi all,
>
>     I want to create a new component for Gambas, it is MySQL oriented. What
> I want to do is make things easier for users who use gb.db.mysql. I'm
> creating a Class called MySQL to do all the things the user needs.
>
>     For example, this class will have something like this to create a
> DataBase Public Procedure CreateDataBase(DataBaseName As String, Optional
> CharSet As String)
>
>     This class will manage all the specific MySQL (or SQL) things, like
> data types, indexes and more.
>
>     I'm not re-inventing the wheel, it is just a class to make the things
> easier. In back ground what the class will do is use Connection.Ecex() to
> execute MySQL statements.
>
>     Now, I got a problem, make it as a component or as a Class file inside
> the Gambas IDE?

Why do you want to put a database class inside the IDE ????

First, you can make a completely independant component. 

Or you can extend the gb.db classes with MYSQL specific stuff. 

But if you want to do the later, the name 'gb.db.mysql' cannot be used as it 
is already the name of the mysql database driver. 

But maybe adding a Gambas part to gb.db.mysql and making gb.db.mysql checkable 
in the IDE component list would work.

That can be decided later, when your component is finished.

So, if you really want your component to be put in the gambas sources, please 
be careful with the names of your public symbols (classes, methods, 
properties, arguments), and the syntax of your properties and methods.

Regards,

-- 
Benoit Minisini




More information about the Devel mailing list