Recent

Author Topic: Does Zeos support Postgres schemas?  (Read 1718 times)

vfclists

  • Hero Member
  • *****
  • Posts: 1147
    • HowTos Considered Harmful?
Does Zeos support Postgres schemas?
« on: February 17, 2024, 04:45:45 am »
Does  Zeos support Postgres schemas?

It looks like the Catalog property of TZeosConnection is suppposed to be what the Postgres schema is set to but it doesn't seem to work.

The only other place where the schema can be set seems to be in the Properties property.

In case it does is there a syntax for this?
Lazarus 3.0/FPC 3.2.2

paweld

  • Hero Member
  • *****
  • Posts: 1521
Best regards / Pozdrawiam
paweld

vfclists

  • Hero Member
  • *****
  • Posts: 1147
    • HowTos Considered Harmful?
Re: Does Zeos support Postgres schemas?
« Reply #2 on: February 17, 2024, 02:09:10 pm »
I have viewed https://zeoslib.sourceforge.io/viewtopic.php?f=50&t=165327 earlier and it seems no-one is picking it up.

The PQConnection of the SQLDB components supports it via

options='-c search_path=lazlib_01'

in the Params property, so I suspect the URL generated for the Zeos connection does not support the options parameter anywhere in its properties.

Perhaps ZURL needs some updating.

I need to have a talk with the Zeos developers. It doesn't seem to be too difficult an issue

Lazarus 3.0/FPC 3.2.2

Thaddy

  • Hero Member
  • *****
  • Posts: 18516
  • Here stood a man who saw the Elbe and jumped it.
Re: Does Zeos support Postgres schemas?
« Reply #3 on: February 17, 2024, 02:23:53 pm »
I still have no clue why people want to use Zeos? especially with PostgreSQL. I don't get Zeos. Probably because I don't need it.
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.

vfclists

  • Hero Member
  • *****
  • Posts: 1147
    • HowTos Considered Harmful?
Re: Does Zeos support Postgres schemas?
« Reply #4 on: February 17, 2024, 03:40:31 pm »
I still have no clue why people want to use Zeos? especially with PostgreSQL. I don't get Zeos. Probably because I don't need it.

Because you've got a lot of code and libraries that would take too long to convert to other libraries?

Also works on Delphi?
Lazarus 3.0/FPC 3.2.2

Thaddy

  • Hero Member
  • *****
  • Posts: 18516
  • Here stood a man who saw the Elbe and jumped it.
Re: Does Zeos support Postgres schemas?
« Reply #5 on: February 17, 2024, 03:43:57 pm »
Delphi and Freepascal work perfectly fine without Zeos.
I really do not get Zeos.
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.

Hansvb

  • Hero Member
  • *****
  • Posts: 864
Re: Does Zeos support Postgres schemas?
« Reply #6 on: February 17, 2024, 06:20:32 pm »
Quote
I still have no clue why people want to use Zeos?
There is one thing that zeos can do and standard lazarus components can't. That's a select* query on an Oracle spatial table and then show the data in a data grid. With a zeos query component combined with a laz datasource and datagrid it works, with a lazarus query component, datasource and datagrid you get an error. (the geometry column is the problem)  That's for me the only reason to use zeos.

Edit: zeos from trunc. The stable version doesn’t like oracle geometry either.
« Last Edit: February 17, 2024, 07:15:23 pm by Hansvb »

 

TinyPortal © 2005-2018