Recent

Author Topic: Library for connecting different database engines  (Read 2379 times)

Mike.Cornflake

  • Hero Member
  • *****
  • Posts: 1260
Library for connecting different database engines
« on: January 03, 2017, 03:40:29 am »
G'day,

Cumbersome title - this area is new to me, so not sure of required keywords.

I have a whole slew of data stored in CSV files.  I need to integrate this with data stored in Oracle.  I only need to display the results, not update any underlying databases.

At the moment I've created a bufdataset with appropriate fields and am manually cycling along the CSV Dataset, firing off "locates" into a dataset populated from Oracle and populating BufDataset as required.  But the code is hideously specific (if Field.Name=ONE Then...).  Further down the track I'm interested in integrating data from multiple sources (well, MS SQL, MySQL, Oracle and CSV).  This all feels to me like I'm reinventing the wheel.

Searches on here makes me think this is what JanSQL was intended to be designed for.  Using SQL to integrate two in memory datasets.  Unfortunately looks like development stalled at CSV datasets only.

Does anyone know if any library exists that can help me in it's current state?
Alternatively, does anyone know if JanSQL development has been continued anywhere, or if the implementation in ZMSQL is the latest version?

Many thanks

Mike
Lazarus Trunk/FPC Trunk on Windows [7, 10]
  Have you tried searching this forum or the wiki?:   http://wiki.lazarus.freepascal.org/Alternative_Main_Page
  BOOKS! (Free and otherwise): http://wiki.lazarus.freepascal.org/Pascal_and_Lazarus_Books_and_Magazines

turrican

  • Full Member
  • ***
  • Posts: 133
  • Pascal is my life.
    • Homepage
Re: Library for connecting different database engines
« Reply #1 on: January 12, 2017, 09:18:12 pm »
I suggest you to use mORMot Framework engine to manage databases.

https://synopse.info/fossil/wiki/Synopse+OpenSource

It's the best framework to make restful servers and manage databases from code I seen. I am using it everyday for all my database projects. 

 

TinyPortal © 2005-2018