Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. SQL-Adapter

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    SQL-Adapter

    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      soef last edited by

      Hallo,

      wäre es möglich, im Query zur Ermittlung der History-Einträge auch die Option "ignoreNull" zu berücksichtigen?

      
      exports.getHistory = function (db, options) {
          ...
          if (options.start) ...
      
          if (options.ignoreNull) {
              where += (where ? " AND" : "") + " iobroker." + db + ".val IS NOT NULL";
          }
      
      

      Für eine gezielte Abfrage wäre es zusätzlich hilfreich, wenn per Option ORDER BY und LIMIT

      unabhängig von "start" und "count" angeben werden könnten.

      Ich hoffe es ist nocht zu viel Aufwand.

      Vielen Dank.

      1 Reply Last reply Reply Quote 0
      • First post
        Last post

      Support us

      ioBroker
      Community Adapters
      Donate
      FAQ Cloud / IOT
      HowTo: Node.js-Update
      HowTo: Backup/Restore
      Downloads
      BLOG

      402
      Online

      31.9k
      Users

      80.2k
      Topics

      1.3m
      Posts

      1
      1
      2253
      Loading More Posts
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      Community
      Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
      The ioBroker Community 2014-2023
      logo