Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ SQL » Sql object
Re: Sql object [message #56202 is a reply to message #56198] Mon, 08 February 2021 06:42 Go to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1791
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

Hi mubeta,

Years ago, I've been trying something similar. I've come with a solution, where the sql code was compiled as dynamic library, so the final program didn't even require mysql libraries to run, unless it was configured to use mysql. You can find the code on my github, if you're intrested: https://github.com/dolik-rce/thewatchdog/tree/master/src/Dyn amicSql

Note however few important things:
  1. The code is pretty old, ~7 years, it might not work with current U++.
  2. I do not use the code anymore, and don't maintain it, so I cannot guarantee or support it in anyway.
  3. It also needed little patch of U++ sources: https://github.com/dolik-rce/thewatchdog/blob/master/patch/M ySql.patch
  4. Only MySql and SQLite are implemented, but adding more options should be easy
  5. Actually the worst part was not to allow dynamic selection of engine, but to write queries in a way that is compatible with both sqlite and mysql. In theory there is ANSI SQL, which should be a common subset of all SQL languages, but reality is much different Smile

Anyway, I hope this helps, or at least inspires you (or someone else in future) Smile


Best regards,
Honza

 
Read Message
Read Message
Previous Topic: MySqlSession Close and Reconnect crashes Application
Next Topic: with MariaDB (MySql) to capture error with Skylark
Goto Forum:
  


Current Time: Sun Apr 27 14:51:40 CEST 2025

Total time taken to generate the page: 0.00615 seconds