Pregunta sobre webinar

Pregunta sobre webinar

Postby leandro » Sun Sep 15, 2024 5:30 pm

Antonio buenas tardes como estas?

Revisando uno de los videos del webinar, en donde el Maestro Nages, nos explico un poco sobre la migración de las dbf a mysql, en una parte de la conferencia se mostro, en una de las diapositivas la conexión de fw_mariadb que contenía una conexión de ADO, no se si entendí mal, (ya que mi ingles es bastante malo), pero estaba la instrucción:
Code: Select all  Expand view

oCn := maria_connect(oAdoCn)
 

Eso quiere decir que podemos contener una conexión de ADO dentro de una conexión con la clase FW_mariadb, y si es así que beneficios nos puede traer dicho uso.

Gracias de antemano

Image
Saludos
LEANDRO AREVALO
Bogotá (Colombia)
https://hymlyma.com
https://hymplus.com/
leandroalfonso111@gmail.com
leandroalfonso111@hotmail.com

[ Embarcadero C++ 7.60 for Win32 ] [ FiveWin 23.07 ] [ xHarbour 1.3.0 Intl. (SimpLex) (Build 20230914) ]
User avatar
leandro
 
Posts: 1669
Joined: Wed Oct 26, 2005 2:49 pm
Location: Colombia

Re: Pregunta sobre webinar

Postby Antonio Linares » Sun Sep 15, 2024 5:46 pm

Se lo pregunto a Rao a ver que me dice :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42079
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Pregunta sobre webinar

Postby leandro » Wed Sep 18, 2024 3:57 pm

up :oops:
Saludos
LEANDRO AREVALO
Bogotá (Colombia)
https://hymlyma.com
https://hymplus.com/
leandroalfonso111@gmail.com
leandroalfonso111@hotmail.com

[ Embarcadero C++ 7.60 for Win32 ] [ FiveWin 23.07 ] [ xHarbour 1.3.0 Intl. (SimpLex) (Build 20230914) ]
User avatar
leandro
 
Posts: 1669
Joined: Wed Oct 26, 2005 2:49 pm
Location: Colombia

Re: Pregunta sobre webinar

Postby Antonio Linares » Wed Sep 18, 2024 4:22 pm

mensaje enviado a Rao nuevamente
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42079
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Pregunta sobre webinar

Postby nageswaragunupudi » Thu Sep 19, 2024 6:35 am

Normally we use
Code: Select all  Expand view
oCn := maria_Connect( "server,db,user,pw", .t. )

for connecting to server.

In case the application is already connected to the server via ADO/TDolphin/TMySql and the programmer wants to use FWMaria lib for some functions/ modules, he needs to use maria_Connect(…) to obtain the connection for use in those functions/modules.
One way is to call maria_Connect() using all the credentials. Another easier way is to use the connection already existing

Code: Select all  Expand view
oFWCon := maria_Connect( oAdoCn/oDolphinServer/oTMySqlServer,.t.)


In this case, the maria_Connect() reads the credentials from that connection object and uses them to open fwmaria connection.

This is provided to facilitate easier migration of existing applications using ado/dolphin/tmysql to fwmariadb
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10623
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 47 guests