Page 1 of 4

Re: FWH: MySql/MariaDB: RowSet object

Posted: Tue Oct 01, 2024 5:31 pm
by Taavi
Hello,
have somebody tryed to rewrite tdatabase() class to use RowSet object instead of dbf file?

For sample

METHOD FCount() INLINE ( ::oRc:FCount() ) //where ::oRc is rowset object created for this object

instead of

METHOD FCount() INLINE ( ::nArea )->( FCount() )

Could this approach work?

And am I correct it is not possible to inherit from Mariadb connection RowSet class?

Our database classes inherit from tdatabase() and would be easy first step to replace tdatabase() functionality without changing higher level code...


Taavi.

Re: FWH: MySql/MariaDB: RowSet object

Posted: Tue Oct 01, 2024 5:40 pm
by nageswaragunupudi

Code: Select all | Expand

oRowSet:FCount()
is available and works exactly like TDatabase FCount()

We tried to make RowSet methods compatible with TDataBase and ADO RecordSet.

Please let us know if you want more, we will provide you natively with RowSet object.

Re: FWH: MySql/MariaDB: RowSet object

Posted: Wed Oct 02, 2024 5:51 pm
by Taavi
Hello,
so rewriting tdatabase() class to use to use rowset should work?

Maybe someone have done it already? Seems like logical path for me from dbf to Mariadb for those using tdatabase()...

Rowset object would be helpful, I need an class which has all methods of tdatabase() to replace database object in our classes. This way I could bypass creating my own class for that.

Taavi.

Re: FWH: MySql/MariaDB: RowSet object

Posted: Mon Oct 14, 2024 11:15 am
by Taavi
Hello,
can I have Rowset object, please?

Taavi