[Lazarus] Lazarus and MySQL 5.7

Lars noreply at z505.com
Tue Nov 22 14:53:33 CET 2016


On Mon, November 21, 2016 2:33 am, Graeme Geldenhuys via Lazarus wrote:
> On 2016-11-21 00:30, Giuliano Colla via Lazarus wrote:
>
>> Lazarus 1.6 includes the package SQLDBLaz which provides support for
>> MySQL from
>> versions 4.0 to 5.6.
>
> Yes, and that "Lazarus Packages" is simply a IDE wrapper around the
> components included by FPC's fcl-db code. You don't need Lazarus to use any
> components or classes introduced by FPC.
>
>
>> Looking into the sources, version 5.7 is already there, but the package
>> doesn't support it
>
> It is pretty straight forward to create a new "registered component"
> line in the Lazarus packages [SqlDBLaz], which in turn will register a
> icon/component in Lazarus's component palette.
>
> Too many developers don't seem to understand the underlying workings of
> components or classes. If they don't see it in the component palette they
> don't know how to use it. It is just sad how "RAD development" has dumbed
> down so many developers.
>

But this is one issue with components is once you create your own rolled
component, it becomes a non standard component available in only your IDE
and no one elses...

Every time I think about inheriting a component and creating my own, I
stop myself and try to just use the built in component palette ones
wherever possible.... As sort of a "I know the standard components will
always be there" but my own rolled components may not.. if I do a fresh
install of an IDE on another system, etc. Then it requires using non
standard components.

But as for mysql, obviously once someone ports the component it will
become standard and be shipped with the ide. I'm speaking of other cases.
Like say inheriting a button and creating my own... then I'm using a non
standard component and it makes me scared.

Just what I've found anyway, that the biggest scariest thing about
creating your own components, is they are now non standard not shipped
with the IDE.

I first realized this when I needed a button that had new behavior in
Delphi.. so I created my own. Then I realized that any time I install the
IDE on a system, I now have the headache of having to install a non
standard component in order to use it.

As powerful as creating your own components is, it also comes with some
drawbacks.


More information about the Lazarus mailing list