Pervasive 8/9 support

Posts   
 
    
Kowalsky
User
Posts: 3
Joined: 09-Nov-2005
# Posted on: 09-Nov-2005 00:19:43   

Otis,

Some time ago, you mentioned adding support for Pervasive 8. You also mentioned that inner workings are quite similar to SQL Server. Do you have any estimates, if planned at all, for supporting both 8 and 9? If not, than where can I get some guidelines or tips on how to generate templates for those myself?

Thanks in advance

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39863
Joined: 17-Aug-2003
# Posted on: 09-Nov-2005 09:53:21   

It's not just templates: a driver and DQE also has to be created. Pervasive was on our list, but there was one problem with pervasive: it was very hard to get the meta data out of the database. (read: for some things: impossible). I therefore put it on ice.

Frans Bouma | Lead developer LLBLGen Pro
Kowalsky
User
Posts: 3
Joined: 09-Nov-2005
# Posted on: 09-Nov-2005 11:03:47   

I see. Now, would it be possible to create equivalent database in SQL Server, create LLBL stuff, and than do some search and replace to make it use Pervasive database and Pervasive .net provider instead. That way, there'd be no need to dig into the meta data. Of course, assuming that nothing specific to Pervasive is used.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39863
Joined: 17-Aug-2003
# Posted on: 09-Nov-2005 11:59:55   

Kowalsky wrote:

I see. Now, would it be possible to create equivalent database in SQL Server, create LLBL stuff, and than do some search and replace to make it use Pervasive database and Pervasive .net provider instead. That way, there'd be no need to dig into the meta data. Of course, assuming that nothing specific to Pervasive is used.

The DQE for Sqlserver has to be adjusted to work with the pervasive .NET provider as well, creating PervasiveCommand etc. objects, instead of teh SqlClient objects. The SqlServer DQE sourcecode is in the sourcecode folder in the llblgen pro installation folder. It's pretty straightforward.

In the generated code, you have to alter the SqlDbType enum specifications for field persistence info (selfservicing: EntityFieldFactory.cs/vb, Adapter: persistenceinfofactory.cs/vb) to meet the pervasive types.

Frans Bouma | Lead developer LLBLGen Pro
Kowalsky
User
Posts: 3
Joined: 09-Nov-2005
# Posted on: 12-Nov-2005 10:07:47   

Thanks for the instructions - I'll give it a try and let you know if I get lost. :-)

On the other hand, Pervasive had a major release of their ADO.NET provider on October 13, 2005: http://www.pervasive.com/developerzone/access_methods/adonet.asp This provider supports both 8.7 and 9.1 version of their RDBMS. Would you be kind and check whether all those problems you described have been fixed. If I'm lucky, they are, which would allow you to include a full support for it in LLBLGen. I think it's worth a try. Please let me know if you have time to do this and when.

Much appreciated.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39863
Joined: 17-Aug-2003
# Posted on: 13-Nov-2005 19:18:04   

The problems I had was with the metadata availability inside pervasive simple_smile , not with the provider.

Frans Bouma | Lead developer LLBLGen Pro