Changes between Version 21 and Version 22 of Docs/Prog/Manual/ApplicationLibraries/lib825db


Ignore:
Timestamp:
10/23/25 09:04:57 (3 weeks ago)
Author:
Don Wilson
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Docs/Prog/Manual/ApplicationLibraries/lib825db

    v21 v22  
    6565int ct;
    6666string sql = "SELECT COUNT(*) FROM [Trucks];";
    67 db.execute(sql, ct);
     67db.Execute(sql, ct);
    6868}}}
    6969
     
    123123}}}
    124124
     125There may be cases where an app needs to format the SQL string differently for SQLite or MySQL. This can be accomplished by checking dynamic cast such as:
     126{{{#!c++
     127string sql
     128if(dynamic_cast<CDBMySQL*>(appDB)) {
     129  // Format SQL for MySQL
     130} else {
     131  // Format SQL for SQLite
     132}
     133}
    125134
     135