Coder Social home page Coder Social logo

iobroker / iobroker.sql Goto Github PK

View Code? Open in Web Editor NEW
45.0 14.0 24.0 1.44 MB

Store history data in SQL Database: MySQL, PostgreSQL or SQLite

License: MIT License

JavaScript 100.00%
mssql mysql postgresql sqlite iobroker storage-provider history-adapter history

iobroker.sql's Introduction

Logo

ioBroker.sql

Number of Installations Number of Installations NPM version Downloads Tests

NPM

This adapter saves state history into SQL DB.

Supports PostgreSQL, mysql, Microsoft SQL Server and sqlite. You can leave port 0 if the default port is desired.

This adapter uses Sentry libraries to automatically report exceptions and code errors to the developers. For more details and for information how to disable the error reporting see Sentry-Plugin Documentation! Sentry reporting is used starting with js-controller 3.0.

Settings

Connection Settings

  • DB Type: Type of the SQL DB: MySQL, PostgreSQL, MS-SQL or SQLite3
  • Host: IP address or host name with SQL Server
  • Port: Port of SQL Server (leave blank if not sure)
  • Database name: Database name. Default iobroker
  • User: Username for SQL. Must exist in the DB.
  • Password: Password for SQL.
  • Password confirm: Just repeat password here.
  • Encrypt: Some DBs support encryption.
  • Round real to: Number of digits after the comma.
  • Allow parallel requests: Allow simultaneous SQL requests to DB.
  • Do not create database: Activate this option if a database already created (e.g. by administrator) and the ioBroker-user does not have enough rights to create a DB.

Default Settings

  • Debounce Time - Protection against unstable values to make sure that only stable values are logged when the value did not change in the defined amount of Milliseconds. ATTENTION: If values change more often then this setting effectively no value will be logged (because any value is unstable)
  • Blocktime - Defines for how long after storing the last value no further value is stored. When the given time in Milliseconds is over then the next value that fulfills all other checks is logged.
  • Record changes only - This function makes sure that only changed values are logged if they fulfill other checks (see below). Same values will not be logged.
  • still record the same values (seconds) - When using "Record changes only" you can set a time interval in seconds here after which also unchanged values will be re-logged into the DB. You can detect the values re-logged by the adapter with the "from" field.
  • Minimum difference from last value - When using "Record changes only" you can define the required minimum difference between the new value and the last value. If this is not reached the value is not recorded.
  • ignore 0 or null values (==0) - You can define if 0 or null values should be ignored.
  • ignore values below zero (<0) - You can define if values below zero should be ignored.
  • Disable charting optimized logging of skipped values - By default, the adapter tries to record the values for optimized charting. This can mean that additional values (that e.g. not fulfilled all checks above) are logged automatically. If this is not wanted, you can disable this feature.
  • Alias-ID - You can define an alias for the ID. This is useful if you have changed a device and want to have continuous data logging. Please consider switching to real alias States in teh future!
  • Storage retention - How many values in the past will be stored on disk. Data are deleted when the time is reached as soon as new data should be stored for a datapoint.
  • Maximal number of stored in RAM values - Define how many numbers of values will be held in RAM before persisting them on disk. You can control how much I/O is done.
  • Enable enhanced debug logs for the datapoint - If you want to see more detailed logs for this datapoint, you can enable this option. You still need to enable "debug" loglevel for these additional values to be visible! This helps in debugging issues or understanding why the adapter is logging a value (or not).

Most of these values can be pre-defined in the instance settings and are then pre-filled or used for the datapoint.

Database installation tips

MS-SQL:

Use localhost\instance for the host and check TCP/IP connections enabled. https://msdn.microsoft.com/en-us/library/bb909712(v=vs.90).aspx

SQLite:

is "file"-DB and cannot manage too many events. If you have a big amount of data, use the real DB, like PostgreSQL and co.

SQLite DB must not be installed extra. It is just a file on disk, but to install it you require build tools on your system. For linux, just write:

sudo apt-get install build-essential

For windows:

c:\>npm install --global --production windows-build-tools

and then reinstall the adapter, e.g:

cd /opt/iobroker
iobroker stop sql
npm install iobroker.sql --production
iobroker start sql

MySQL:

You can install mysql on linux systems as following:

apt-get install mysql-server mysql-client

mysql -u root -p

CREATE USER 'iobroker'@'%' IDENTIFIED BY 'iobroker';
GRANT ALL PRIVILEGES ON * . * TO 'iobroker'@'%';
FLUSH PRIVILEGES;

If required, edit /etc/mysql/my.cnf to set bind to IP-Address for remote connecting.

Warning: iobroker user is "admin". If required give limited rights to iobroker user.

On the "windows" it can be easily installed via installer: https://dev.mysql.com/downloads/installer/.

Pay attention to the authentication method. The new encryption algorithm in MySQL 8.0 is not yet supported by node.js and you must select legacy authentication method.

Windows

Structure of the DBs

The default Database name is iobroker, but it can be changed in the configuration.

Sources

This table is a list of adapter's instances, that wrote the entries. (state.from)

DB Name in query
MS-SQL iobroker.dbo.sources
MySQL iobroker.sources
PostgreSQL sources
SQLite sources

Structure:

Field Type Description
id INTEGER NOT NULL PRIMARY KEY IDENTITY(1,1) unique ID
name varchar(255) / TEXT instance of adapter, that wrote the entry

Note: MS-SQL uses varchar(255), and others use TEXT

Data points

This table is a list of data points. (IDs)

DB Name in query
MS-SQL iobroker.dbo.datapoints
MySQL iobroker.datapoints
PostgreSQL datapoints
SQLite datapoints

Structure:

Field Type Description
id INTEGER NOT NULL PRIMARY KEY IDENTITY(1,1) unique ID
name varchar(255) / TEXT ID of variable, e.g. hm-rpc.0.JEQ283747.1.STATE
type INTEGER 0 - number, 1 - string, 2 - boolean

Note: MS-SQL uses varchar(255), and others use TEXT

Numbers

Values for states with type "number". ts means "time series".

DB Name in query
MS-SQL iobroker.dbo.ts_number
MySQL iobroker.ts_number
PostgreSQL ts_number
SQLite ts_number

Structure:

Field Type Description
id INTEGER ID of state from "Data points" table
ts BIGINT / INTEGER Time in ms till epoch. Can be converted to time with "new Date(ts)"
val REAL Value
ack BIT/BOOLEAN Is acknowledged: 0 - not ack, 1 - ack
_from INTEGER ID of source from "Sources" table
q INTEGER Quality as number. You can find description here

Note: MS-SQL uses BIT, and others use BOOLEAN. SQLite uses for ts INTEGER and all others BIGINT.

The user can define additional to type number the functionality of counters. For this purpose, the following table is created:

DB Name in the query
MS-SQL iobroker.dbo.ts_counter
MySQL iobroker.ts_counter
PostgreSQL ts_counter
SQLite ts_counter

Structure:

Field Type Description
id INTEGER ID of state from "Data points" table
ts BIGINT / INTEGER Time in ms till epoch. Can be converted to time with "new Date(ts)"
val REAL Value

This table stores the values when the counter was exchanged and the value does not increase, but failed to zero or lower value.

Strings

Values for states with type string.

DB Name in query
MS-SQL iobroker.dbo.ts_string
MySQL iobroker.ts_string
PostgreSQL ts_string
SQLite ts_string

Structure:

Field Type Description
id INTEGER ID of state from "Data points" table
ts BIGINT Time in ms till epoch. Can be converted to time with "new Date(ts)"
val TEXT Value
ack BIT/BOOLEAN Is acknowledged: 0 - not ack, 1 - ack
_from INTEGER ID of source from "Sources" table
q INTEGER Quality as number. You can find description here

Note: MS-SQL uses BIT, and others use BOOLEAN. SQLite uses for ts INTEGER and all others BIGINT.

Booleans

Values for states with type boolean.

DB Name in query
MS-SQL iobroker.dbo.ts_bool
MySQL iobroker.ts_bool
PostgreSQL ts_bool
SQLite ts_bool

Structure:

Field Type Description
id INTEGER ID of state from "Data points" table
ts BIGINT Time in ms till epoch. Can be converted to time with "new Date(ts)"
val BIT/BOOLEAN Value
ack BIT/BOOLEAN Is acknowledged: 0 - not ack, 1 - ack
_from INTEGER ID of source from "Sources" table
q INTEGER Quality as number. You can find description here

Note: MS-SQL uses BIT, and others use BOOLEAN. SQLite uses for ts INTEGER and all others BIGINT.

Access values from Javascript adapter

The sorted values can be accessed from Javascript adapter.

  • Get 50 last stored events for all IDs
sendTo('sql.0', 'getHistory', {
    id: '*',
    options: {
        end:       Date.now(),
        count:     50,
        aggregate: 'onchange',
        addId: true
    }
}, function (result) {
    for (var i = 0; i < result.result.length; i++) {
        console.log(result.result[i].id + ' ' + new Date(result.result[i].ts).toISOString());
    }
});
  • Get stored values for "system.adapter.admin.0.memRss" in last hour
var end = Date.now();
sendTo('sql.0', 'getHistory', {
    id: 'system.adapter.admin.0.memRss',
    options: {
        start:      end - 3600000,
        end:        end,
        aggregate: 'onchange',
        addId: true
    }
}, function (result) {
    for (var i = 0; i < result.result.length; i++) {
        console.log(result.result[i].id + ' ' + new Date(result.result[i].ts).toISOString());
    }
});

Possible options:

  • start - (optional) time in ms - Date.now()'
  • end - (optional) time in ms - Date.now()', by default is (now + 5000 seconds)
  • step - (optional) used in aggregate (max, min, average, total, ...) step in ms of intervals
  • count - number of values if aggregate is 'onchange' or number of intervals if other aggregate method. Count will be ignored if a step is set, else default is 500 if not set
  • from - if from field should be included in answer
  • ack - if ack field should be included in answer
  • q - if q field should be included in answer
  • addId - if id field should be included in answer
  • limit - do not return more entries than limit
  • round - round result to number of digits after decimal point
  • ignoreNull - if null values should be included (false), replaced by last not null value (true) or replaced with 0 (0)
  • removeBorderValues - By default, additional border values are returned to optimize charting. Set this option to true if this is not wanted (e.g. for script data processing)
  • returnNewestEntries - The returned data are always sorted by timestamp ascending. When using aggregate "none" and also providing "count" or "limit" this means that normally the oldest entries are returned (unless no start data is provided). Set this option to true to get the newest entries instead.
  • aggregate - aggregate method (Default: 'average'):
    • minmax - used special algorithm. Splice the whole time range in small intervals and find for every interval max, min, start and end values.
    • max - Splice the whole time range in small intervals and find for every interval max value and use it for this interval (nulls will be ignored).
    • min - Same as max, but take minimal value.
    • average - Same as max, but take average value.
    • total - Same as max, but calculate total value.
    • count - Same as max, but calculate number of values (nulls will be calculated).
    • percentile - Calculate n-th percentile (n is given in options.percentile or defaults to 50 if not provided).
    • quantile - Calculate n quantile (n is given in options.quantile or defaults to 0.5 if not provided).
    • integral - Calculate integral (additional parameters see below).
    • none - No aggregation at all. Only raw values in a given period.
  • percentile - (optional) when using aggregate method "percentile" defines the percentile level (0..100)(defaults to 50)
  • quantile - (optional) when using aggregate method "quantile" defines the quantile level (0..1)(defaults to 0.5)
  • integralUnit - (optional) when using aggregate method "integral" defines the unit in seconds (default to 60s). e.g. to get integral in hours for Wh or such, set to 3600.
  • integralInterpolation - (optional) when using aggregate method "integral" defines the interpolation method (defaults to "none").
    • linear - linear interpolation
    • none - no/stepwise interpolation

The first and last points will be calculated for aggregations, except aggregation none. If you manually request some aggregation, you should ignore first and last values, because they are calculated from values outside of a period.

Get counter

User can ask the value of some counter (type=number, counter=true) for a specific period.

var now = Date.now();
// get consumption value for last 30 days
sendTo('sql.0', 'getCounter', {
    id: 'system.adapter.admin.0.memRss',
    options: {
        start:      now - 3600000 * 24 * 30,
        end:        now,
    }
}, result => {
    console.log(`In last 30 days the consumption was ${result.result} kWh`);    
});

If the counter-device is replaced, it will be calculated too.

Custom queries

The user can execute custom queries on tables from javascript adapter:

sendTo('sql.0', 'query', 'SELECT * FROM datapoints', function (result) {
    if (result.error) {
        console.error(result.error);
    } else {
        // show result
         console.log('Rows: ' + JSON.stringify(result.result));
    }
});

Or get entries for the last hour for ID=system.adapter.admin.0.memRss

sendTo('sql.0', 'query', 'SELECT id FROM datapoints WHERE name="system.adapter.admin.0.memRss"', function (result) {
    if (result.error) {
        console.error(result.error);
    } else {
        // show result
        console.log('Rows: ' + JSON.stringify(result.result));
        var now = new Date();
        now.setHours(-1);
        sendTo('sql.0', 'query', 'SELECT * FROM ts_number WHERE ts >= ' + now.getTime() + ' AND id=' + result.result[0].id, function (result) {
            console.log('Rows: ' + JSON.stringify(result.result));
        });
    }
});

Note:

Depending on the database, the database name or database name + schema must be inserted before the table name - see boxes above under 'Structure of the DBs'.

Example if your database is called 'iobroker':

DB Name in query
MS-SQL SELECT * FROM iobroker.dbo.datapoints ...
MySQL SELECT * FROM iobroker.datapoints ...

storeState

If you want to write other data into the InfluxDB/SQL you can use the build in system function storeState. This function can also be used to convert data from other History adapters like History or SQL.

A successful response does not mean that the data is really written out to the disk. It just means that they were processed.

The given ids are not checked against the ioBroker database and do not need to be set up or enabled there. If own IDs are used without settings, then the "rules" parameter is not supported and will result in an error. The default "Maximal number of stored in RAM values" is used for such IDs.

The Message can have one of the following three formats:

  • one ID and one state object
sendTo('history.0', 'storeState', [
    id: 'mbus.0.counter.xxx',
    state: {ts: 1589458809352, val: 123, ack: false, from: 'system.adapter.whatever.0', ...}
], result => console.log('added'));
  • one ID and array of state objects
sendTo('history.0', 'storeState', {
    id: 'mbus.0.counter.xxx',
    state: [
      {ts: 1589458809352, val: 123, ack: false, from: 'system.adapter.whatever.0', ...}, 
      {ts: 1589458809353, val: 123, ack: false, from: 'system.adapter.whatever.0', ...}
    ]
}, result => console.log('added'));
  • array of multiple IDs with one state object each
sendTo('history.0', 'storeState', [
    {id: 'mbus.0.counter.xxx', state: {ts: 1589458809352, val: 123, ack: false, from: 'system.adapter.whatever.0', ...}}, 
    {id: 'mbus.0.counter.yyy', state: {ts: 1589458809353, val: 123, ack: false, from: 'system.adapter.whatever.0', ...}}
], result => console.log('added'));

Additionally, you can add attribute rules: true in a message to activate all rules, like counter, changesOnly, de-bounce and so on.

In case of errors, an array with all single error messages is returned and also a successCount to see how many entries were stored successfully.

delete state

If you want to delete entry from the Database, you can use the build in system function delete:

sendTo('sql.0', 'delete', [
    {id: 'mbus.0.counter.xxx', state: {ts: 1589458809352}, 
    {id: 'mbus.0.counter.yyy', state: {ts: 1589458809353}
], result => console.log('deleted'));

To delete ALL history data for some data point, execute:

sendTo('sql.0', 'deleteAll', [
    {id: 'mbus.0.counter.xxx'} 
    {id: 'mbus.0.counter.yyy'}
], result => console.log('deleted'));

To delete history data for some data point and for some range, execute:

sendTo('sql.0', 'deleteRange', [
    {id: 'mbus.0.counter.xxx', start: '2019-01-01T00:00:00.000Z', end: '2019-12-31T23:59:59.999'}, 
    {id: 'mbus.0.counter.yyy', start: 1589458809352, end: 1589458809353}
], result => console.log('deleted'));

Time could be ms since epoch or ans string, that could be converted by javascript Date object.

Values will be deleted including defined limits. ts >= start AND ts <= end

change state

If you want to change entry's value, quality or acknowledge flag in the database, you can use the build in system function update:

sendTo('sql.0', 'update', [
    {id: 'mbus.0.counter.xxx', state: {ts: 1589458809352, val: 15, ack: true, q: 0}, 
    {id: 'mbus.0.counter.yyy', state: {ts: 1589458809353, val: 16, ack: true, q: 0}
], result => console.log('deleted'));

ts is mandatory. At least one other flag must be included in a state object.

Be careful with counters. The counters in DB will not be reset, and you must handle it yourself.

History Logging Management via Javascript

The adapter supports enabling and disabling of history logging via JavaScript and also retrieving the list of enabled data points with their settings.

enable

The message requires having the "id" of the data point. Additionally, optional "options" to define the data point specific settings:

sendTo('sql.0', 'enableHistory', {
    id: 'system.adapter.sql.0.memRss',
    options: {
        changesOnly:  true,
        debounce:     0,
        retention:    31536000,
        maxLength:    3,
        changesMinDelta: 0.5,
        aliasId: ''
    }
}, function (result) {
    if (result.error) {
        console.log(result.error);
    }
    if (result.success) {
        //successful enabled
    }
});

disable

The message requires having the "id" of the data point.

sendTo('sql.0', 'disableHistory', {
    id: 'system.adapter.sql.0.memRss',
}, function (result) {
    if (result.error) {
        console.log(result.error);
    }
    if (result.success) {
        // successful enabled
    }
});

get List

The message has no parameters.

sendTo('sql.0', 'getEnabledDPs', {}, function (result) {
    //result is object like:
    {
        "system.adapter.sql.0.memRss": {
            "changesOnly":true,
            "debounce":0,
            "retention":31536000,
            "maxLength":3,
            "changesMinDelta":0.5,
            "enabled":true,
            "changesRelogInterval":0,
            "aliasId": ""
        }
        ...
    }
});

Changelog

3.0.1 (2024-06-13)

  • (foxriver76) upgraded dependencies

3.0.0 (2023-09-13)

  • IMPORTANT: Node.js 16.x is now needed at a minimum!
  • (bluefox) Allowed setting port 0 as default
  • (bluefox) Checked if a string is written into the number table
  • (bluefox) Added support for count aggregate type on getHistory

2.2.0 (2022-09-19)

  • IMPORTANT: Node.js 14.x is now needed at a minimum!
  • (Apollon77) Fix potential crash cases with upcoming js-controller versions

2.1.8 (2022-08-13)

  • (riversource/Apollon77) Optimize getHistory query by using "UNION ALL"
  • (Apollon77) Fix crash cases reported by Sentry

2.1.7 (2022-06-30)

  • (Apollon77) Fix crash cases reported by Sentry

2.1.6 (2022-06-27)

  • (Apollon77) Allowed removing a configuration value for "round" in config again

2.1.5 (2022-06-27)

  • (Apollon77) When no count is provided for aggregate "none" or "onchange" then the limit (default 2000) is used as count to define the number of data to return.
  • (Apollon77) Fix the initialization of types and IDs for some cases.

2.1.3 (2022-06-12)

  • (Apollon77) Make sure the debug log is active, according to the settings

2.1.2 (2022-06-08)

  • (Apollon77) Huge performance optimizations for GetHistory calls

2.1.1 (2022-05-30)

  • (Apollon77) Fix crash cases reported by Sentry

2.1.0 (2022-05-27)

  • (Apollon77) Fix crash cases reported by Sentry
  • (Apollon77) Fix several places where pooled connections might have not been returned to pool correctly and add logging for it
  • (Apollon77) Work around an issue in used Pooling library that potentially gave out too many connections
  • (Apollon77) Optimize retention check to better spread the first checks over time
  • (Apollon77) Default to not use datapoint buffering as in 1.x when set to 0
  • (Apollon77) Make sure disabling "Log changes only" also really does not log the changes anymore
  • (Apollon77) Allow storeState and GetHistory also to be called for "unknown ids"
  • (Apollon77) Adjust the fallback logic for type detection to use the type of the state value to log as last fallback
  • (Apollon77) Fix storing booleans on MSSQL

2.0.2 (2022-05-11)

  • (Apollon77) BREAKING: Configuration is only working in the new Admin 5 UI!
  • (Apollon77) Did bigger adjustments to the recording logic and added a lot of new Features. Please refer to Changelog and Forum post for details.

2.0.0 (2022-05-11)

  • (Apollon77) Breaking: Configuration is only working in the new Admin 5 UI!
  • (Apollon77) Breaking! Did bigger adjustments to the recording logic. Debounce is refined and blockTime is added to differentiate between the two checks
  • (Apollon77) Breaking! GetHistory requests now need to deliver the ts in milliseconds! Make sure to use up-to-date scripts and Charting UIs
  • (Apollon77) Add RAM buffering and mass inserts for logging
  • (Apollon77) New setting added to disable the "logging of additional values for charting optimization" - then only the expected data are logged
  • (Apollon77) Add flag returnNewestEntries for GetHistory to determine which records to return when more entries as "count" are existing for aggregate "none"
  • (Apollon77) Add support for addId getHistory flag for GetHistory
  • (Apollon77) Add new Debug flag to enable/disable debug logging on datapoint level (default is false) to optimize performance
  • (Apollon77) Add aggregate method "percentile" to calculate the percentile (0..100) of the values (requires options.percentile with the percentile level, defaults to 50 if not provided). Basically same as Quantile just different levels are used
  • (Apollon77) Add aggregate method "quantile" to calculate the quantile (0..1) of the values (requires options.quantile with the quantile level, defaults to 0.5 if not provided). Basically same as Percentile just different levels are used
  • (Apollon77) Add (experimental) method "integral" to calculate the integral of the values. Requires options.integralUnit with the time duration of the integral in seconds, defaults to 60s if not provided. Optionally a linear interpolation can be done by setting options.integralInterpolation to "linear"
  • (Apollon77) When request contains flag removeBorderValues: true, the result then cut the additional pre and post border values out of the results
  • (Apollon77) Enhance the former "Ignore below 0" feature and now allow specifying to ignore below or above specified values. The old setting is converted to the new one
  • (Apollon77) Upgrade MSSQL and MySQL drivers incl. Support for MySQL 8
  • (Apollon77) Make sure that min change delta allows numbers entered with comma (german notation) in all cases
  • (Apollon77) Add support to specify how to round numbers on query per datapoint
  • (Apollon77) Do not log passwords for Postgres connections
  • (Apollon77) Optimize SSL support for database connections including option to allow self signed certificates
  • (Apollon77) Allow to specify custom retention duration in days
  • (winnyschuster) Fix Insert statement for MSSQL ts_counter
  • (winnyschuster) type of ts in user queries corrected

1.16.2 (2022-02-16)

  • (bluefox) Marked interpolated data with i=true

1.16.1 (2021-12-19)

  • (Excodibur) Hide settings not relevant when "log changes only" is not used
  • (Apollon77) Allow all number values for debounce again

1.16.0 (2021-12-14)

  • (bluefox) Support only js-controller >= 3.3.x
  • (bluefox) Used system/custom view for collecting the objects
  • (bluefox) Implemented option to ignore zero- or/and below zero- values

1.15.7 (2021-04-28)

  • (bluefox) fixed the support of Admin5

1.15.6 (2021-04-19)

  • (bluefox) added support of Admin5

1.15.5 (2021-01-22)

  • (Apollon77) make sure message query is a string (Sentry)

1.15.4 (2021-01-17)

  • (Apollon77) Optimize stop handling

1.15.3 (2020-08-29)

  • (bluefox) Added the option "Do not create database". E.g. if DB was created and it does not required to do that, because the user does not have enough rights.

1.15.2 (2020-07-26)

  • (Apollon77) prevent wrong errors that realId is missing

1.15.1 (2020-07-20)

  • (Apollon77) implement a workaround for postgres problem

1.15.0 (2020-07-19)

BREAKING This version only accepts Node.js 10.x+ (because sqlite3 was upgraded)

  • (Apollon77) Prevent crash case (Sentry IOBROKER-SQL-16, IOBROKER-SQL-15, IOBROKER-SQL-1K)

1.14.2 (2020-06-23)

  • (bluefox) Fixed error for data storage

1.14.1 (2020-06-17)

  • (bluefox) Corrected error for objects with mixed type

1.14.0 (2020-05-20)

  • (bluefox) added the range deletion and the delete all operations

1.13.1 (2020-05-20)

  • (bluefox) added changed and delete operations

1.12.6 (2020-05-08)

  • (bluefox) set default history if not yet set

1.12.5 (2020-05-05)

  • (Apollon77) Crash prevented for invalid objects (Sentry IOBROKER-SQL-X)

1.12.4 (2020-05-04)

  • (Apollon77) Potential crash fixed when disabling data points too fast (Sentry IOBROKER-SQL-W)
  • (Apollon77) Always set "encrypt" flag, even if false because else might en in default true (see tediousjs/tedious#931)

1.12.3 (2020-04-30)

  • (Apollon77) Try to create indexes on MSSQL to speed up things. Infos are shown if not possible to be able for the user to do it themself. Timeout is 15s

1.12.2 (2020-04-30)

  • (Apollon77) MSSQL works again

1.12.1 (2020-04-26)

  • (Apollon77) Fix potential crash (Sentry)

1.12.0 (2020-04-23)

  • (Apollon77) Implement max Connections setting and respect it, now allows to control how many concurrent connections to database are used (default 100) and others wait up to 10s for a free connection before failing)
  • (Apollon77) Change dependencies to admin to a global dependency
  • (Apollon77) Update connection status also in between
  • (Apollon77) fix some potential crash cases (Sentry reported)
  • (Omega236) Add id to error message for queries
  • (Apollon77) update pg to stay compatible with nodejs 14
  • (Apollon77) Start clearly ending timeouts on unload ... still some cases left!

1.11.1 (2020-04-19)

  • Requires js-controller >= 2.0.0
  • (Apollon77) removed usage of adapter.objects
  • (Apollon77) check if objects have changed and ignore unchanged
  • (Apollon77) Add Sentry for Error Reporting with js-controller 3.0
  • (Apollon77) Make sure value undefined is ignored

1.10.1 (2020-04-12)

  • (bluefox) Converted to ES6
  • (bluefox) The counter functionality was implemented.

1.9.5 (2019-05-15)

  • (Apollon77) Add support for nodejs 12

1.9.4 (2019-02-24)

  • (Apollon77) Fix several smaller issues and topics
  • (Apollon77) Optimize Texts (for Admin v3 UI)

1.9.0 (2018-06-19)

  • (Apollon77) Add option to log datapoints as other ID (alias) to easier migrate devices and such

1.8.0 (2018-04-29)

  • (Apollon77) Update sqlite3, nodejs 10 compatible
  • (BuZZy1337) Admin fix

1.7.4 (2018-04-15)

  • (Apollon77) Fix getHistory

1.7.3 (2018-03-28)

  • (Apollon77) Respect 'keep forever' setting for retention from data point configuration

1.7.2 (2018-03-24)

  • (Apollon77) Disable to write NULLs for SQLite

1.7.1 (2018-02-10)

  • (Apollon77) Make option to write NULL values on start/stop boundaries configurable

1.6.9 (2018-02-07)

  • (bondrogeen) Admin3 Fixes
  • (Apollon77) optimize relog feature and other things

1.6.7 (2018-01-31)

  • (Bluefox) Admin3 Fixes
  • (Apollon77) Relog and null log fixes

1.6.2 (2018-01-30)

  • (Apollon77) Admin3 Fixes

1.6.0 (2018-01-14)

  • (bluefox) Ready for Admin3

1.5.8 (2017-10-05)

  • (Apollon77) fix relog value feature

1.5.7 (2017-08-10)

  • (bluefox) add "save last value" option

1.5.6 (2017-08-02)

  • (Apollon77) fix behaviour of log interval to always log the current value

1.5.4 (2017-06-12)

  • (Apollon77) fix dependency to other library

1.5.3 (2017-04-07)

  • (Apollon77) fix in datatype conversions

1.5.0 (2017-03-02)

  • (Apollon77) Add option to define storage datatype per datapoint inclusing converting the value if needed

1.4.6 (2017-02-25)

  • (Apollon77) Fix typo with PostgrSQL

1.4.5 (2017-02-18)

  • (Apollon77) Small fix again for older configurations
  • (Apollon77) fix for DBConverter Analyze function

1.4.3 (2017-02-11)

  • (Apollon77) Small fix for older configurations

1.4.2 (2017-01-16)

  • (bluefox) Fix handling of float values in Adapter config and Datapoint config.

1.4.1

  • (Apollon77) Rollback to sql-client 0.7 to get rid of the mmagic dependecy that brings problems on older systems

1.4.0 (2016-12-02)

  • (Apollon77) Add messages enableHistory/disableHistory
  • (Apollon77) add support to log changes only if value differs a minimum value for numbers

1.3.4 (2016-11)

  • (Apollon77) Allow database names with '-' for MySQL

1.3.3 (2016-11)

  • (Apollon77) Update dependecies

1.3.2 (2016-11-21)

  • (bluefox) Fix insert of string with '

1.3.0 (2016-10-29)

  • (Apollon77) add option to re-log unchanged values to make it easier for visualization

1.2.1 (2016-08-30)

  • (bluefox) Fix selector for SQL objects

1.2.0 (2016-08-30)

  • (bluefox) сompatible only with new admin

1.0.10 (2016-08-27)

  • (bluefox) change name of object from "history" to "custom"

1.0.10 (2016-07-31)

  • (bluefox) fix multi requests if sqlite

1.0.9 (2016-06-14)

  • (bluefox) allow settings for parallel requests

1.0.7 (2016-05-31)

  • (bluefox) draw line to the end if ignore null

1.0.6 (2016-05-30)

  • (bluefox) allow setup DB name for mysql and mssql

1.0.5 (2016-05-29)

  • (bluefox) switch max and min with each other

1.0.4 (2016-05-29)

  • (bluefox) check retention of data if set "never"

1.0.3 (2016-05-28)

  • (bluefox) try to calculate old timestamps

1.0.2 (2016-05-24)

  • (bluefox) fix error with io-package

1.0.1 (2016-05-24)

  • (bluefox) fix error with SQLite

1.0.0 (2016-05-20)

  • (bluefox) change default aggregation name

0.3.3 (2016-05-18)

  • (bluefox) fix postgres

0.3.2 (2016-05-13)

  • (bluefox) queue select if IDs and FROMs queries for sqlite

0.3.1 (2016-05-12)

  • (bluefox) queue delete queries too for sqlite

0.3.0 (2016-05-08)

  • (bluefox) support of custom queries
  • (bluefox) only one request simultaneously for sqlite
  • (bluefox) add tests (primitive and only sql)

0.2.0 (2016-04-30)

  • (bluefox) support of milliseconds
  • (bluefox) fix sqlite

0.1.4 (2016-04-25)

  • (bluefox) fix deletion of old entries

0.1.3 (2016-03-08)

  • (bluefox) do not print errors twice

0.1.2 (2015-12-22)

  • (bluefox) fix MS-SQL port settings

0.1.1 (2015-12-19)

  • (bluefox) fix error with double entries

0.1.0 (2015-12-14)

  • (bluefox) support of strings

0.0.3 (2015-12-06)

  • (smiling_Jack) Add demo Data ( todo: faster insert to db )
  • (smiling_Jack) change aggregation (now same as history Adapter)
  • (bluefox) bug fixing

0.0.2 (2015-12-06)

  • (bluefox) allow only 1 client for SQLite

0.0.1 (2015-11-19)

  • (bluefox) initial commit

License

The MIT License (MIT)

Copyright (c) 2015-2024 bluefox [email protected], Apollon77

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

iobroker.sql's People

Contributors

apollon77 avatar artkoz avatar bondrogeen avatar buzzy1337 avatar crunchip77 avatar crycode-de avatar dependabot[bot] avatar dimaindahood avatar foxriver76 avatar frank2604 avatar germanbluefox avatar greenkeeper[bot] avatar hurdurderp avatar iobrokertranslator avatar jey-cee avatar johnnybyzhang avatar ldittmar81 avatar lgtm-migrator avatar mcm1957 avatar medjaiiii avatar omega236 avatar petervoronov avatar plchome avatar pmant avatar silmaril42 avatar smiling-jack avatar unclesamswiss avatar winnyschuster avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

iobroker.sql's Issues

SQL History Fehler beim erstmaligen Anlegen eines Wertes

Installierte Version: 1.9.2

Beim erstmaligen anlegen eines Wertes, der über SQL geloggt werden soll, tritt im Log von IObroker folgende Fehlermeldung auf:
Cannot insert INSERT INTO iobroker.datapoints (name, type) VALUES('hm-rpc.0.OEQ06xxxxx.1.TEMPERATURE', undefined);: Error: ER_BAD_FIELD_ERROR: Unknown column 'undefined' in 'field list'
Wird das logging für diesen Wert deaktiviert und anschliessend wieder aktiviert, tritt die Fehlermeldung nicht mehr auf.
Erst, wenn bei einem anderen Wert, der noch nie geloggt wurde, das logging aktiviert wird, tritt diese Fehlermeldung einmalig auf.

Der SQL Server laeuft auf einer Synology (MariaDB5) und stoert sich wohl an dem undefinierten type, wobei mir da nicht klar ist, was da eigentlich stehen sollte.

Error - database already exists

I am running ioBroker on Freebsd with the sql adapter connecting to a Postgresql database. Initially everything worked fine, but since a reboot the adapter does not connect to the database any more, with the error message "ERROR: database "iobroker" already exists".

The driver stops and starts by itself.

Can you help?

I used various databases. Error everywhere.

host.server 2019-02-03 14:04:36.485 error instance system.adapter.sql.0 terminated with code 6 (uncaught exception)
host.server 2019-02-03 14:04:36.485 error Caught by controller[1]: at Decoder.Emitter.emit (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/component-emitter/index.js:133:20)
host.server 2019-02-03 14:04:36.485 error Caught by controller[1]: at Decoder. (/opt/iobroker/node_modules/component-bind/index.js:21:15)
host.server 2019-02-03 14:04:36.485 error Caught by controller[1]: at Manager.ondecoded (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/manager.js:345:8)
host.server 2019-02-03 14:04:36.485 error Caught by controller[1]: at Manager.Emitter.emit (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/component-emitter/index.js:133:20)
host.server 2019-02-03 14:04:36.484 error Caught by controller[1]: at Manager. (/opt/iobroker/node_modules/component-bind/index.js:21:15)
host.server 2019-02-03 14:04:36.484 error Caught by controller[1]: at Socket.onpacket (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:244:12)
host.server 2019-02-03 14:04:36.484 error Caught by controller[1]: at Socket.onack (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:319:9)
host.server 2019-02-03 14:04:36.483 error Caught by controller[1]: at Socket. (/opt/iobroker/node_modules/iobroker.sql/main.js:1117:17)
host.server 2019-02-03 14:04:36.483 error Caught by controller[1]: at pushHistory (/opt/iobroker/node_modules/iobroker.sql/main.js:1089:13)
host.server 2019-02-03 14:04:36.483 error Caught by controller[1]: at pushHelper (/opt/iobroker/node_modules/iobroker.sql/main.js:1148:63)
host.server 2019-02-03 14:04:36.480 error Caught by controller[1]: TypeError: Cannot read property 'toString' of undefined
sql.0 2019-02-03 14:04:35.491 warn Exception: TypeError: Cannot read property 'toString' of undefined
sql.0 2019-02-03 14:04:35.491 error TypeError: Cannot read property 'toString' of undefined at pushHelper (/opt/iobroker/node_modules/iobroker.sql/main.js:1148:63) at pushHistory (/opt/iobroker/node_modules/iobroker.sql/main.js:
sql.0 2019-02-03 14:04:35.490 error uncaught exception: Cannot read property 'toString' of undefined

Ошибки при использовании удаленного сервера баз данных

При попытке подключения к удаленной базе данных MySQL выводятся следующие ошибки:

sql.0 2017-04-19 11:29:12.061 error Error: ER_ACCESS_DENIED_ERROR: Access denied for user 'badaev_555'@'%' (using password: YES)
sql.0 2017-04-19 11:29:12.059 error CREATE DATABASE badaev_555 DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;

Хочет создать базу, но ему не разрешают. Да и зачем, если она уже есть и ее явно указали в настройках. Понятно, что это удобно для локального сервера MySql, но при удаленном - он не создает таблицы, зацикливается на создании базы.

Решил проблему закоментировав строку:

"CREATE DATABASE " + dbname + " DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;",

в /opt/iobroker/node_modules/iobroker.sql/lib/mysql.js.

Хорошо бы ввести проверку на наличие такой базы (проверил, если нет, то создать, если есть, то продолжить создавать таблицы) или в настройках галку, которая будет отключать создание базы.

Feldtexte bei den Einstellungen korrigieren

Oberfläche ist nicht selbsterklärend bzw. mißverständlich:

  • "Änderungen aufzeichnen" -> "nur Änderungen aufzeichnen"
  • "Nach Intervall aufzeichnen(s)" -> "trotzdem gleiche Werte aufzeichnen (Sekunden)"
    (analog zur verständlichen Beschreibung auf der ioBroker-/sql-Seite)

Aktivierung der Datenspeicherung für Objekt geht verloren

Guten Abend Ingo, mir ist die Tage jetzt schon des öfteren aufgefallen, das bei manchen Datenpunkten die Aktivierung zur Protokollierung mittels sql-Adapter verloren geht. Sprich, die Speicherung stoppt dann auch logischer Weise. Den Auslöser dazu konnte ich bisher leider nicht lokalisieren. Speziell Aufgefallen ist dies bei meinem Thermometer HmIP-STHD und dem Bewegungsmelder HmIP-SMO-A.

Ist dir so ein Verhalten bekannt? Als ich vorhin bei Thermometer Temperatur Obejkt in die SQL-Einstellungen ging, sah ich noch kurz den Haken bei 'aktiviert' - dann wars deaktiviert.

Werde das weiter beobachten ...

SQL - Doppelte Einträge im table

Bei mir werden Einträge doppelt & dreifach gespeichert. Lt. Script soll der Wert einmal um 0 Uhr gespeichert werden (als Beispiel). Trotzdem steht er mehrfach drin.
bildschirmfoto 2019-03-01 um 15 33 18

An in-range update of sqlite3 is breaking the build 🚨

The optionalDependency sqlite3 was updated from 4.0.4 to 4.0.6.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

sqlite3 is a optionalDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/appveyor/branch: Waiting for AppVeyor build to complete (Details).
  • continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Release Notes for v4.0.6

A re-release of the retracted v4.0.5 because of node-pre-gyp being unavailable.

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of gulp is breaking the build 🚨

The devDependency gulp was updated from 4.0.1 to 4.0.2.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

gulp is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/appveyor/branch: Waiting for AppVeyor build to complete (Details).
  • continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Release Notes for v4.0.2

Fix

Docs

  • Add notes about esm support (4091bd3) - Closes #2278
  • Fix the Negative Globs section & examples (3c66d95) - Closes #2297
  • Remove next tag from recipes (1693a11) - Closes #2277
  • Add default task wrappers to Watching Files examples to make runnable (d916276) - Closes #2322
  • Fix syntax error in lastRun API docs (ea52a92) - Closes #2315
  • Fix typo in Explaining Globs (5d81f42) - Closes #2326

Build

  • Add node 12 to Travis & Azure (b4b5a68)
Commits

The new version differs by 9 commits.

  • 069350a Release: 4.0.2
  • b4b5a68 Build: Add node 12 to Travis & Azure
  • 5667666 Fix: Bind src/dest/symlink to the gulp instance to support esm exports (ref standard-things/esm#797)
  • 4091bd3 Docs: Add notes about esm support (closes #2278)
  • 3c66d95 Docs: Fix the Negative Globs section & examples (closes #2297)
  • 1693a11 Docs: Remove next tag from recipes (closes #2277)
  • d916276 Docs: Add default task wrappers to Watching Files examples to make runnable (ref #2322)
  • ea52a92 Docs: Fix syntax error in lastRun API docs (closes #2315)
  • 5d81f42 Docs: Fix typo in Explaining Globs (#2326)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Do not store value "null" for variable because no number (v1.6.0)

Log:
2018-01-27 17:26:30.376 - .[31merror.[39m: host.cubietruck instance system.adapter.sql.0 terminated with code 0 (OK) 2018-01-27 17:26:30.378 - .[32minfo.[39m: host.cubietruck Restart adapter system.adapter.sql.0 because enabled 2018-01-27 17:26:33.312 - .[32minfo.[39m: host.cubietruck instance system.adapter.sql.0 started with pid 2198 2018-01-27 17:26:39.990 - .[32minfo.[39m: sql.0 starting. Version 1.6.0 in /opt/iobroker/node_modules/iobroker.sql, node: v6.12.3 2018-01-27 17:26:40.292 - .[32minfo.[39m: sql.0 enabled logging of owfs.0.wires.DS18B20-addr0101-mainRoomNear-underVTP 2018-01-27 17:26:40.306 - .[32minfo.[39m: sql.0 enabled logging of owfs.0.wires.DS18B20-addr0101-mainRoomFar-underVTP 2018-01-27 17:26:40.381 - .[32minfo.[39m: sql.0 Connected to sqlite 2018-01-27 17:26:40.464 - .[32minfo.[39m: sql.0 Do not store value "null" for owfs.0.wires.DS18B20-addr0101-mainRoomNear-underVTP because no number 2018-01-27 17:26:40.497 - .[32minfo.[39m: sql.0 Do not store value "null" for owfs.0.wires.DS18B20-addr0101-mainRoomFar-underVTP because no number 2018-01-27 17:27:40.462 - .[32minfo.[39m: sql.0 Do not store value "null" for owfs.0.wires.DS18B20-addr0101-mainRoomNear-underVTP because no number 2018-01-27 17:27:40.495 - .[32minfo.[39m: sql.0 Do not store value "null" for owfs.0.wires.DS18B20-addr0101-mainRoomFar-underVTP because no number 2018-01-27 17:28:40.461 - .[32minfo.[39m: sql.0 Do not store value "null" for owfs.0.wires.DS18B20-addr0101-mainRoomNear-underVTP because no number 2018-01-27 17:28:40.495 - .[32minfo.[39m: sql.0 Do not store value "null" for owfs.0.wires.DS18B20-addr0101-mainRoomFar-underVTP because no number
Full log in the attached file:
log.txt

Add manual triggern object

Please add manual trigger object for every monitored object so that manual data transfer to SQL DB can be initiated by script.

An in-range update of sqlite3 is breaking the build 🚨

The optionalDependency sqlite3 was updated from 4.0.6 to 4.0.7.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

sqlite3 is a optionalDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build passed (Details).
  • continuous-integration/appveyor/branch: AppVeyor build failed (Details).

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on all branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.

Since we didn’t receive a CI status on the greenkeeper/initial branch, it’s possible that you don’t have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.

If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/.

Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please delete the greenkeeper/initial branch in this repository, and then remove and re-add this repository to the Greenkeeper App’s white list on Github. You'll find this list on your repo or organization’s settings page, under Installed GitHub Apps.

duplicate primary key error

Found in log:

sql-0   2015-12-15 12:35:21 error   Cannot insert INSERT INTO iobroker.ts_bool (id, ts, val, ack, _from, q) VALUES(23, 1450179321000, false, 1, 4, 0);: Error: ER_DUP_ENTRY: Duplicate entry '23-1450179321000' for key 'PRIMARY'

Think about to fix the issues found by adapter checker

I am an automatic service that looks for possible errors in ioBroker and creates an issue for it. The link below leads directly to the test:

https://adapter-check.iobroker.in/?q=https://raw.githubusercontent.com/ioBroker/ioBroker.sql

  • [E150] No common.connectionType found in io-package.json
  • [E152] No common.dataSource found in io-package.json
  • [E506] Word "Maximum concurrent connections:" is not translated to russian in admin/words.js. You can use https://translator.iobroker.in/ for translations

Thanks,
your automatic adapter checker.

Multiple data storage with same value

Dear all,
i tested now a lot of things but it seems to be that the sql adapter stores the same value even if i click on main menu "store only changes".
Also individually in the datapoints no configuration delivers same value only once written.
Can you please tell me which configuration i must take ?

1.289 | true | tankerkoenig.0 | 2019-02-24 13:00:50.893 |  
1.289 | true | tankerkoenig.0 | 2019-02-24 12:00:50.860 |  
1.229 | true | tankerkoenig.0 | 2019-02-24 11:54:50.796 |  
1.229 | true | tankerkoenig.0 | 2019-02-24 10:00:50.824 |  
1.279 | true | tankerkoenig.0 | 2019-02-24 09:54:50.870 |  
1.279 | true | tankerkoenig.0 | 2019-02-24 09:27:50.782 |  
1.309 | true | tankerkoenig.0 | 2019-02-24 09:18:50.847 |  
1.309 | true | tankerkoenig.0 | 2019-02-24 08:18:50.822 |  
1.339 | true | tankerkoenig.0 | 2019-02-24 08:09:50.833 |  
1.369 | true | tankerkoenig.0 | 2019-02-24 08:00:50.894 |  
1.369 | true | tankerkoenig.0 | 2019-02-24 06:00:50.858

see also attached file
bildschirmfoto 2019-02-24 um 14 38 44
bildschirmfoto 2019-02-24 um 14 38 16

UI: changes for Diff/Type are not persisted correctly

Inzwischen habe ich herausgefunden, dass die Einstellung:
Minimale Differenz zum letzten Wert
nur funktioniert, wenn der Messwert als Nummer abgespeichert wird.

Aber: der Wert ist ein Integer, es funktioniert also nur mit ganzen Zahlen.

Wer immer diesen Adapter erstellt hat: Bitte, bitte die Differenz als float einstellen.

So wie es jetzt ist, habe ich die Wahl zwischen Pest und Colera:
Mein Temperatursensor springt immer um 0,1°C und bekomme so unsinnig viele
Messwerte. Oder ich stelle die Differenz auf 1. Dann ist aber die Genauigkeit
viel zu gering.

An in-range update of pg is breaking the build 🚨

The optionalDependency pg was updated from 7.6.1 to 7.7.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

pg is a optionalDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build passed (Details).
  • continuous-integration/appveyor/branch: AppVeyor build failed (Details).

Commits

The new version differs by 3 commits.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

keine Daten in DB

Ich habe den Adapter installiert, konfiguriert und gestartet - die Tabellen in der Datenbank wurden auch abgelegt, allerdings werden keine Daten geloggt. Habe ich noch etwas übersehen?

PS: SQL History 1.4.5 wurde auf iobroker nach meinen Homematic Adaptern installiert..

2017-02-25 19:36:43.588 - info: host.storage instance system.adapter.sql.0 started with pid 315 2017-02-25 19:36:44.891 - info: sql.0 starting. Version 1.4.5 in /opt/iobroker/node_modules/iobroker.sql, node: v4.7.3 2017-02-25 19:36:45.117 - info: sql.0 Connected to mysql

Adapter SQL (Mysql) Instance Version 1.4.2

Beim Konfigurieren der sql.0 Instanz habe ich alle Felder (Host, Port,Datenbank, User und Passwort) ausgefüllt, dies führt zu folgender Fehlermeldung und vielen Einträgen im LOG:

error getaddrinfo ENOTFOUND localhost:3306 localhost:3306:3306

Nachdem ich den Port gelöscht und leer gelassen habe funktioniert die Instanz einwandfrei.

Prüfung der Eingabefelder oder Zusammenfügen des DSN bei Standartport fehlerhaft ?

Synology DS214play Pakete: Nodejs v4, MariaDB

doc: describe what it does better

I found your tool while looking for a pub/sub wrapper for Postgres notify/listen. I don't think this is what I am looking for, but as it looks like a serious project, thought I'd say that, to an uninitiated person like myself, its hard to say just what it is for from the Readme.

"This adapter saves state history into SQL DB" -- that could be anything... what state history ... for what purpose ... any purpose? Is this for streaming history (logs, ... ??? ...etc) to a database? In any case, a short paragraph describing a/the typical use case would be very helpful at the top of the documentation.

sql ab 1.94 läuft nicht mehr unter Windows 10 x64

Hallo.

Beim Update des Adapters von 1.9.2 auf 1.9.4 erhalte ich folgende Fehlermeldung.

`$ ./iobroker upgrade sql
Update sql from @1.9.2 to @1.9.4
host.HP-ED800 Adapter "system.adapter.sql.0" is stopped.
NPM version: 6.4.1
npm install [email protected] --production --save --prefix "C:/ioBroker" (System call)
npm WARN deprecated [email protected]: The sprintf package is deprecated in favor of sprintf-js.
gyp
ERR! configure error gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:484:19)
gyp ERR! stack at PythonFinder. (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:509:16)
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR!
stack at FSReqWrap.oncomplete (fs.js:154:21)gyp ERR! System Windows_NT 10.0.17763

gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"gyp ERR! cwd C:\ioBroker\node_modules\iobroker.sql\node_modules\mmmagic
gyp ERR! node -v v10.15.1
gyp
ERR! node-gyp -v v3.8.0gyp ERR! not ok

npm
ERR! code ELIFECYCLEnpm ERR! errno 1

npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:npm ERR! C:\WINDOWS\system32\config\systemprofile\AppData\Roaming\npm-cache_logs\2019-03-01T09_17_37_342Z-debug.log

host.HP-ED800 Adapter "system.adapter.sql.0" is started
ERROR: Cannot find io-package.json in null
ERROR: process exited with code 10`

Danach läuft der Adapter nicht mehr.
Ist da was bekannt? Werden mehr Infos benötigt?

Uwe

Datenpunkte und ihre Daten in der Datenbank löschen

Es wäre toll, wenn es eine Möglichkeit gäbe, Datenpunkte auch in der Datenbank zu löschen.
Bei besonders vielen Datenpunkten (und durch mehrfaches Probieren mit ähnlichen Bereichnungen) verliert man schnell den Überblick.
Sicherlich kann man das auch in der Datenbank manuell durchführen, aber praktisch fände ich es, wenn es durch den Adapter dort ein Möglichkeit gäbe. Am besten so, dass man eine Übersicht über alle Datapoints bekommt mit einer Information, wann der letzte Eintrag zu dem jeweiligen Datenpunkt geloggt worden ist.
Dann könnte man sehen, welche Datenpunkte schon länger nicht mehr benutzt worden sind und diese dann ggf. löschen.

An in-range update of pg is breaking the build 🚨

The optionalDependency pg was updated from 7.10.0 to 7.11.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

pg is a optionalDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build passed (Details).
  • continuous-integration/appveyor/branch: AppVeyor build failed (Details).

Commits

The new version differs by 3 commits.

  • 61cc3d2 Bump version
  • 697bdae Update changelog
  • 0993e4b Added the missing connect_timeout and keepalives_idle config parameters (#1847)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Can not run sequence query separated with ';'

I need to run hundreds of queries in one query, separated by a ';'
A simple example:

 var query='UPDATE iobroker.faces SET   prob=43  where  id= 168; UPDATE iobroker.faces SET  prob=42  where  id= 169';
  sendTo('sql.0', 'query',query , function (result) {
        if (result.error) {
            console.error(result.error);
        } 
        else
        {
        }
});

But seems driver does not parse ";".
I get error:

javascript.0 script.js.test.test2: Error: ER_PARSE_ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UPDATE iobroker.faces SET prob=42 where id= 169' at line 2

Error when nothing is logged for a while

I installed and configured the adapter yesterday but didn't set up any datapoint. Starting the adapter worked but after a timeout the MySQL server closed the connection. That caused an unhandled exception in the instance and caused a bunch of logging.
That the connection is closed by the MySQL server is expected behaviour and should not cause an unhandled exception. It can cause a warning log. What I would like best would be an option to "silently reconnect if the server closes the connection".
image

DB in Azure

Hi,

can ioBroker.sql be used for databases in Azure? I got following message, when I start the corresponding instance:
"CREATE TABLE myTableName.dbo.sources (id INTEGER NOT NULL PRIMARY KEY IDENTITY(1,1), name varchar(255));"

The connection test failed too. Maybe a firewall issue? Although the ports should be "unlocked", on Azure and on our side.

I am new in ioBroker etc.

So, does anyone have any hints?

config:
DB Type: MS-SQL
Database name: myDB
Host: ourserver.database.windows.net
Port: 1433
User: ourUser@ourServer
PW: :)
Encrpyt: Yes

When I click on "Reset DB", the following message appears:
"RequestError: Reference to database and/or server name in 'myDB.dbo.ts_number' is not supported in this version of SQL Server."

Best wishes,
Pio

Error on install 1.9.4

I got a lot of Error messages on installation in Admin. (Update)
Is it "normal" ?

`$ ./iobroker upgrade sql
Update sql from @1.9.2 to @1.9.4
host.raspi-3 Adapter "system.adapter.sql.0" is stopped.
NPM version: 6.5.0
npm install [email protected] --unsafe-perm --production --save --prefix "/opt/iobroker" (System call)
../src/binding.cc: In static member function ‘static void Magic::DetectAfter(uv_work_t*)’:../src/binding.cc:314:38: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value*) const’ is deprecated (declared at ../../nan/nan.h:1674) [-Wdeprecated-declarations]
baton->callback->Call(1, argv);
^

../src/binding.cc:362:38: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value*) const’ is deprecated (declared at ../../nan/nan.h:1674) [-Wdeprecated-declarations] baton->callback->Call(2, argv);
^

node-pre-gyp
WARN Using request for node-pre-gyp https download
node-pre-gyp

WARN Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.0.6/node-v48-linux-arm.tar.gz node-pre-gyp WARN Pre-built binaries not found for [email protected] and [email protected] (node-v48 ABI, glibc) (falling back to source compile with node-gyp)

In file included from ../src/database.cc:3:0:../src/database.cc: In member function ‘void node_sqlite3::Database::Process()’:
../src/macros.h:109:60: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value*)’ is deprecated (declared at ../../nan/nan.h:929) [-Wdeprecated-declarations]
Nan::MakeCallback((context), (callback), (argc), (argv))
^
../src/database.cc:49:17: note: in expansion of macro ‘TRY_CATCH_CALL’
TRY_CATCH_CALL(this->handle(), cb, 1, argv);
^

../src/macros.h:109:60: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)’ is deprecated (declared at ../../nan/nan.h:929) [-Wdeprecated-declarations] Nan::MakeCallback((context), (callback), (argc), (argv))
^
../src/macros.h:102:5: note: in expansion of macro ‘TRY_CATCH_CALL’
TRY_CATCH_CALL((obj),
^
../src/database.cc:63:13: note: in expansion of macro ‘EMIT_EVENT’
EMIT_EVENT(handle(), 2, info);
^
../src/database.cc: In member function ‘void node_sqlite3::Database::Schedule(node_sqlite3::Database::Work_Callback, node_sqlite3::Database::Baton
, bool)’:
../src/macros.h:109:60: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)’ is deprecated (declared at ../../nan/nan.h:929) [-Wdeprecated-declarations]
Nan::MakeCallback((context), (callback), (argc), (argv))
^
../src/database.cc:92:13: note: in expansion of macro ‘TRY_CATCH_CALL’
TRY_CATCH_CALL(handle(), cb, 1, argv);
^
../src/macros.h:109:60: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value
)’ is deprecated (declared at ../../nan/nan.h:929) [-Wdeprecated-declarations]
Nan::MakeCallback((context), (callback), (argc), (argv))
^
../src/macros.h:102:5: note: in expansion of macro ‘TRY_CATCH_CALL’
TRY_CATCH_CALL((obj),
^
../src/database.cc:96:13: note: in expansion of macro ‘EMIT_EVENT’
EMIT_EVENT(handle(), 2, argv);
^
../src/database.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE node_sqlite3::Database::New(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/database.cc:133:10: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
Nan::ForceSet(info.This(), Nan::New("filename").ToLocalChecked(), info[0].As(), ReadOnly);
^
../src/database.cc:133:101: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
Nan::ForceSet(info.This(), Nan::New("filename").ToLocalChecked(), info[0].As(), ReadOnly);
^
../src/database.cc:134:10: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
Nan::ForceSet(info.This(), Nan::New("mode").ToLocalChecked(), Nan::New(mode), ReadOnly);
^
../src/database.cc:134:91: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
Nan::ForceSet(info.This(), Nan::New("mode").ToLocalChecked(), Nan::New(mode), ReadOnly);
^
../src/database.cc: In static member function ‘static void node_sqlite3::Database::Work_BeginOpen(node_sqlite3::Database::Baton*)’:
../src/database.cc:144:9: warning: unused variable ‘status’ [-Wunused-variable]
int status = uv_queue_work(uv_default_loop(),
^
In file included from ../src/database.cc:3:0:
../src/database.cc: In static member function ‘static void node_sqlite3::Database::Work_AfterOpen(uv_work_t*)’:
../src/macros.h:109:60: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)’ is deprecated (declared at ../../nan/nan.h:929) [-Wdeprecated-declarations]
Nan::MakeCallback((context), (callback), (argc), (argv))
^
../src/database.cc:190:9: note: in expansion of macro ‘TRY_CATCH_CALL’
TRY_CATCH_CALL(db->handle(), cb, 1, argv);
^
../src/macros.h:109:60: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value
)’ is deprecated (declared at ../../nan/nan.h:929) [-Wdeprecated-declarations]
Nan::MakeCallback((context), (callback), (argc), (argv))
^
../src/macros.h:102:5: note: in expansion of macro ‘TRY_CATCH_CALL’
TRY_CATCH_CALL((obj),
^
../src/database.cc:194:9: note: in expansion of macro ‘EMIT_EVENT’
EMIT_EVENT(db->handle(), 2, info);
^
../src/macros.h:109:60: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)’ is deprecated (declared at ../../nan/nan.h:929) [-Wdeprecated-declarations]
Nan::MakeCallback((context), (callback), (argc), (argv))
^
../src/macros.h:102:5: note: in expansion of macro ‘TRY_CATCH_CALL’
TRY_CATCH_CALL((obj),
^
../src/database.cc:199:9: note: in expansion of macro ‘EMIT_EVENT’
EMIT_EVENT(db->handle(), 1, info);
^
../src/database.cc: In static member function ‘static void node_sqlite3::Database::Work_BeginClose(node_sqlite3::Database::Baton
)’:
../src/database.cc:230:9: warning: unused variable ‘status’ [-Wunused-variable]
int status = uv_queue_work(uv_default_loop(),
^
In file included from ../src/database.cc:3:0:
../src/database.cc: In static member function ‘static void node_sqlite3::Database::Work_AfterClose(uv_work_t*)’:
../src/macros.h:109:60: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)’ is deprecated (declared at ../../nan/nan.h:929) [-Wdeprecated-declarations]
Nan::MakeCallback((context), (callback), (argc), (argv))
^
../src/database.cc:273:9: note: in expansion of macro ‘TRY_CATCH_CALL’
TRY_CATCH_CALL(db->handle(), cb, 1, argv);
^
../src/macros.h:109:60: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value
)’ is deprecated (declared at ../../nan/nan.h:929) [-Wdeprecated-declarations]
Nan::MakeCallback((context), (callback), (argc), (argv))
^
../src/macros.h:102:5: note: in expansion of macro ‘TRY_CATCH_CALL’
TRY_CATCH_CALL((obj),
^
../src/database.cc:277:9: note: in expansion of macro ‘EMIT_EVENT’
EMIT_EVENT(db->handle(), 2, info);
^
../src/macros.h:109:60: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value*)’ is deprecated (declared at ../../nan/nan.h:929) [-Wdeprecated-declarations]
Nan::MakeCallback((context), (callback), (argc), (argv))
^
../src/macros.h:102:5: note: in expansion of macro ‘TRY_CATCH_CALL’
TRY_CATCH_CALL((obj),
^
../src/database.cc:282:9: note: in expansion of macro ‘EMIT_EVENT’
EMIT_EVENT(db->handle(), 1, info);
^

../src/database.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE node_sqlite3::Database::Serialize(Nan::NAN_METHOD_ARGS_TYPE)’:../src/macros.h:109:60: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)’ is deprecated (declared at ../../nan/nan.h:929) [-Wdeprecated-declarations]
Nan::MakeCallback((context), (callback), (argc), (argv))
^
../src/database.cc:297:9: note: in expansion of macro ‘TRY_CATCH_CALL’
TRY_CATCH_CALL(info.This(), callback, 0, NULL);
^
../src/database.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE node_sqlite3::Database::Parallelize(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/macros.h:109:60: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value
)’ is deprecated (declared at ../../nan/nan.h:929) [-Wdeprecated-declarations]
Nan::MakeCallback((context), (callback), (argc), (argv))
^
../src/database.cc:314:9: note: in expansion of macro ‘TRY_CATCH_CALL’
TRY_CATCH_CALL(info.This(), callback, 0, NULL);
^

../src/database.cc: In static member function ‘static void node_sqlite3::Database::TraceCallback(node_sqlite3::Database*, std::string*)’:../src/macros.h:109:60: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value*)’ is deprecated (declared at ../../nan/nan.h:929) [-Wdeprecated-declarations]
Nan::MakeCallback((context), (callback), (argc), (argv))
^
../src/macros.h:102:5: note: in expansion of macro ‘TRY_CATCH_CALL’
TRY_CATCH_CALL((obj),
^
../src/database.cc:418:5: note: in expansion of macro ‘EMIT_EVENT’
EMIT_EVENT(db->handle(), 2, argv);
^

../src/database.cc: In static member function ‘static void node_sqlite3::Database::ProfileCallback(node_sqlite3::Database*, node_sqlite3::Database::ProfileInfo*)’:../src/macros.h:109:60: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value*)’ is deprecated (declared at ../../nan/nan.h:929) [-Wdeprecated-declarations]
Nan::MakeCallback((context), (callback), (argc), (argv))
^
../src/macros.h:102:5: note: in expansion of macro ‘TRY_CATCH_CALL’
TRY_CATCH_CALL((obj),
^
../src/database.cc:459:5: note: in expansion of macro ‘EMIT_EVENT’
EMIT_EVENT(db->handle(), 3, argv);
^

../src/database.cc: In static member function ‘static void node_sqlite3::Database::UpdateCallback(node_sqlite3::Database*, node_sqlite3::Database::UpdateInfo*)’:../src/macros.h:109:60: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value*)’ is deprecated (declared at ../../nan/nan.h:929) [-Wdeprecated-declarations]
Nan::MakeCallback((context), (callback), (argc), (argv))
^
../src/macros.h:102:5: note: in expansion of macro ‘TRY_CATCH_CALL’
TRY_CATCH_CALL((obj),
^
../src/database.cc:504:5: note: in expansion of macro ‘EMIT_EVENT’
EMIT_EVENT(db->handle(), 4, argv);
^

../src/database.cc: In static member function ‘static void node_sqlite3::Database::Work_BeginExec(node_sqlite3::Database::Baton*)’:../src/database.cc:525:9: warning: unused variable ‘status’ [-Wunused-variable]
int status = uv_queue_work(uv_default_loop(),
^

In file included from ../src/database.cc:3:0:../src/database.cc: In static member function ‘static void node_sqlite3::Database::Work_AfterExec(uv_work_t*)’:
../src/macros.h:109:60: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value*)’ is deprecated (declared at ../../nan/nan.h:929) [-Wdeprecated-declarations]
Nan::MakeCallback((context), (callback), (argc), (argv))
^
../src/database.cc:561:13: note: in expansion of macro ‘TRY_CATCH_CALL’
TRY_CATCH_CALL(db->handle(), cb, 1, argv);
^

../src/macros.h:109:60: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)’ is deprecated (declared at ../../nan/nan.h:929) [-Wdeprecated-declarations] Nan::MakeCallback((context), (callback), (argc), (argv))
^
../src/macros.h:102:5: note: in expansion of macro ‘TRY_CATCH_CALL’
TRY_CATCH_CALL((obj),
^
../src/database.cc:565:13: note: in expansion of macro ‘EMIT_EVENT’
EMIT_EVENT(db->handle(), 2, info);
^
../src/macros.h:109:60: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value
)’ is deprecated (declared at ../../nan/nan.h:929) [-Wdeprecated-declarations]
Nan::MakeCallback((context), (callback), (argc), (argv))
^
../src/database.cc:570:9: note: in expansion of macro ‘TRY_CATCH_CALL’
TRY_CATCH_CALL(db->handle(), cb, 1, argv);
^

../src/database.cc: In static member function ‘static void node_sqlite3::Database::Work_Wait(node_sqlite3::Database::Baton*)’:../src/macros.h:109:60: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value*)’ is deprecated (declared at ../../nan/nan.h:929) [-Wdeprecated-declarations]
Nan::MakeCallback((context), (callback), (argc), (argv))
^
../src/database.cc:600:9: note: in expansion of macro ‘TRY_CATCH_CALL’
TRY_CATCH_CALL(baton->db->handle(), cb, 1, argv);
^

../src/database.cc: In static member function ‘static void node_sqlite3::Database::Work_BeginLoadExtension(node_sqlite3::Database::Baton*)’:../src/database.cc:625:9: warning: unused variable ‘status’ [-Wunused-variable]
int status = uv_queue_work(uv_default_loop(),
^

In file included from ../src/database.cc:3:0:../src/database.cc: In static member function ‘static void node_sqlite3::Database::Work_AfterLoadExtension(uv_work_t*)’:
../src/macros.h:109:60: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value*)’ is deprecated (declared at ../../nan/nan.h:929) [-Wdeprecated-declarations]
Nan::MakeCallback((context), (callback), (argc), (argv))
^
../src/database.cc:663:13: note: in expansion of macro ‘TRY_CATCH_CALL’
TRY_CATCH_CALL(db->handle(), cb, 1, argv);
^

../src/macros.h:109:60: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)’ is deprecated (declared at ../../nan/nan.h:929) [-Wdeprecated-declarations] Nan::MakeCallback((context), (callback), (argc), (argv))
^
../src/macros.h:102:5: note: in expansion of macro ‘TRY_CATCH_CALL’
TRY_CATCH_CALL((obj),
^
../src/database.cc:667:13: note: in expansion of macro ‘EMIT_EVENT’
EMIT_EVENT(db->handle(), 2, info);
^
../src/macros.h:109:60: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value
)’ is deprecated (declared at ../../nan/nan.h:929) [-Wdeprecated-declarations]
Nan::MakeCallback((context), (callback), (argc), (argv))
^
../src/database.cc:672:9: note: in expansion of macro ‘TRY_CATCH_CALL’
TRY_CATCH_CALL(db->handle(), cb, 1, argv);
^

In file included from ../src/node_sqlite3.cc:7:0:../src/node_sqlite3.cc: In function ‘void {anonymous}::RegisterModule(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’:
../src/macros.h:59:10: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
Nan::ForceSet(target,
^
../src/node_sqlite3.cc:21:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_OPEN_READONLY, OPEN_READONLY);
^

../src/macros.h:63:5: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations] );
^
../src/node_sqlite3.cc:21:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_OPEN_READONLY, OPEN_READONLY);
^
../src/macros.h:59:10: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
Nan::ForceSet(target,
^
../src/node_sqlite3.cc:22:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_OPEN_READWRITE, OPEN_READWRITE);
^

../src/macros.h:63:5: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations] );
^
../src/node_sqlite3.cc:22:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_OPEN_READWRITE, OPEN_READWRITE);
^
../src/macros.h:59:10: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
Nan::ForceSet(target,
^
../src/node_sqlite3.cc:23:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_OPEN_CREATE, OPEN_CREATE);
^
../src/macros.h:63:5: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
);
^
../src/node_sqlite3.cc:23:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_OPEN_CREATE, OPEN_CREATE);
^
../src/macros.h:59:10: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
Nan::ForceSet(target,
^
../src/node_sqlite3.cc:24:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_OPEN_FULLMUTEX, OPEN_FULLMUTEX);
^
../src/macros.h:63:5: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
);
^
../src/node_sqlite3.cc:24:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_OPEN_FULLMUTEX, OPEN_FULLMUTEX);
^
../src/macros.h:59:10: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
Nan::ForceSet(target,
^
../src/node_sqlite3.cc:25:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_OPEN_URI, OPEN_URI);
^
../src/macros.h:63:5: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
);
^
../src/node_sqlite3.cc:25:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_OPEN_URI, OPEN_URI);
^
../src/macros.h:59:10: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
Nan::ForceSet(target,
^
../src/node_sqlite3.cc:26:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_OPEN_SHAREDCACHE, OPEN_SHAREDCACHE);
^
../src/macros.h:63:5: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
);
^
../src/node_sqlite3.cc:26:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_OPEN_SHAREDCACHE, OPEN_SHAREDCACHE);
^
../src/macros.h:59:10: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
Nan::ForceSet(target,
^
../src/node_sqlite3.cc:27:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_OPEN_PRIVATECACHE, OPEN_PRIVATECACHE);
^
../src/macros.h:63:5: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
);
^
../src/node_sqlite3.cc:27:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_OPEN_PRIVATECACHE, OPEN_PRIVATECACHE);
^
../src/macros.h:66:10: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
Nan::ForceSet(target,
^
../src/node_sqlite3.cc:28:5: note: in expansion of macro ‘DEFINE_CONSTANT_STRING’
DEFINE_CONSTANT_STRING(target, SQLITE_VERSION, VERSION);
^
../src/macros.h:70:5: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
);
^
../src/node_sqlite3.cc:28:5: note: in expansion of macro ‘DEFINE_CONSTANT_STRING’
DEFINE_CONSTANT_STRING(target, SQLITE_VERSION, VERSION);
^
../src/macros.h:66:10: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
Nan::ForceSet(target,
^
../src/node_sqlite3.cc:30:5: note: in expansion of macro ‘DEFINE_CONSTANT_STRING’
DEFINE_CONSTANT_STRING(target, SQLITE_SOURCE_ID, SOURCE_ID);
^

../src/macros.h:70:5: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations] );
^
../src/node_sqlite3.cc:30:5: note: in expansion of macro ‘DEFINE_CONSTANT_STRING’
DEFINE_CONSTANT_STRING(target, SQLITE_SOURCE_ID, SOURCE_ID);
^
../src/macros.h:59:10: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
Nan::ForceSet(target,
^
../src/node_sqlite3.cc:32:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_VERSION_NUMBER, VERSION_NUMBER);
^
../src/macros.h:63:5: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
);
^
../src/node_sqlite3.cc:32:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_VERSION_NUMBER, VERSION_NUMBER);
^
../src/macros.h:59:10: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
Nan::ForceSet(target,
^
../src/node_sqlite3.cc:34:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_OK, OK);
^
../src/macros.h:63:5: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
);
^
../src/node_sqlite3.cc:34:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_OK, OK);
^
../src/macros.h:59:10: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
Nan::ForceSet(target,
^
../src/node_sqlite3.cc:35:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_ERROR, ERROR);
^
../src/macros.h:63:5: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
);
^
../src/node_sqlite3.cc:35:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_ERROR, ERROR);
^
../src/macros.h:59:10: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
Nan::ForceSet(target,
^
../src/node_sqlite3.cc:36:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_INTERNAL, INTERNAL);
^
../src/macros.h:63:5: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
);
^
../src/node_sqlite3.cc:36:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_INTERNAL, INTERNAL);
^
../src/macros.h:59:10: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
Nan::ForceSet(target,
^
../src/node_sqlite3.cc:37:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_PERM, PERM);
^

../src/macros.h:63:5: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations] );
^
../src/node_sqlite3.cc:37:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_PERM, PERM);
^
../src/macros.h:59:10: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
Nan::ForceSet(target,
^
../src/node_sqlite3.cc:38:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_ABORT, ABORT);
^
../src/macros.h:63:5: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
);
^
../src/node_sqlite3.cc:38:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_ABORT, ABORT);
^
../src/macros.h:59:10: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
Nan::ForceSet(target,
^
../src/node_sqlite3.cc:39:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_BUSY, BUSY);
^
../src/macros.h:63:5: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
);
^
../src/node_sqlite3.cc:39:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_BUSY, BUSY);
^
../src/macros.h:59:10: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
Nan::ForceSet(target,
^
../src/node_sqlite3.cc:40:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_LOCKED, LOCKED);
^
../src/macros.h:63:5: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
);
^
../src/node_sqlite3.cc:40:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_LOCKED, LOCKED);
^
../src/macros.h:59:10: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
Nan::ForceSet(target,
^
../src/node_sqlite3.cc:41:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_NOMEM, NOMEM);
^
../src/macros.h:63:5: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
);
^
../src/node_sqlite3.cc:41:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_NOMEM, NOMEM);
^
../src/macros.h:59:10: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
Nan::ForceSet(target,
^
../src/node_sqlite3.cc:42:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_READONLY, READONLY);
^
../src/macros.h:63:5: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
);
^
../src/node_sqlite3.cc:42:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_READONLY, READONLY);
^
../src/macros.h:59:10: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
Nan::ForceSet(target,
^
../src/node_sqlite3.cc:43:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_INTERRUPT, INTERRUPT);
^
../src/macros.h:63:5: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
);
^
../src/node_sqlite3.cc:43:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_INTERRUPT, INTERRUPT);
^
../src/macros.h:59:10: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
Nan::ForceSet(target,
^
../src/node_sqlite3.cc:44:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_IOERR, IOERR);
^
../src/macros.h:63:5: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
);
^
../src/node_sqlite3.cc:44:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_IOERR, IOERR);
^
../src/macros.h:59:10: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
Nan::ForceSet(target,
^
../src/node_sqlite3.cc:45:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_CORRUPT, CORRUPT);
^
../src/macros.h:63:5: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
);
^
../src/node_sqlite3.cc:45:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_CORRUPT, CORRUPT);
^

../src/macros.h:59:10: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations] Nan::ForceSet(target,
^
../src/node_sqlite3.cc:46:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_NOTFOUND, NOTFOUND);
^
../src/macros.h:63:5: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
);
^
../src/node_sqlite3.cc:46:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_NOTFOUND, NOTFOUND);
^
../src/macros.h:59:10: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
Nan::ForceSet(target,
^
../src/node_sqlite3.cc:47:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_FULL, FULL);
^
../src/macros.h:63:5: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
);
^
../src/node_sqlite3.cc:47:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_FULL, FULL);
^
../src/macros.h:59:10: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
Nan::ForceSet(target,
^
../src/node_sqlite3.cc:48:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_CANTOPEN, CANTOPEN);
^

../src/macros.h:63:5: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations] );
^
../src/node_sqlite3.cc:48:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_CANTOPEN, CANTOPEN);
^
../src/macros.h:59:10: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
Nan::ForceSet(target,
^
../src/node_sqlite3.cc:49:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_PROTOCOL, PROTOCOL);
^
../src/macros.h:63:5: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
);
^
../src/node_sqlite3.cc:49:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_PROTOCOL, PROTOCOL);
^
../src/macros.h:59:10: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
Nan::ForceSet(target,
^
../src/node_sqlite3.cc:50:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_EMPTY, EMPTY);
^
../src/macros.h:63:5: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
);
^
../src/node_sqlite3.cc:50:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_EMPTY, EMPTY);
^
../src/macros.h:59:10: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
Nan::ForceSet(target,
^
../src/node_sqlite3.cc:51:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_SCHEMA, SCHEMA);
^

../src/macros.h:63:5: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations] );
^
../src/node_sqlite3.cc:51:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_SCHEMA, SCHEMA);
^
../src/macros.h:59:10: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
Nan::ForceSet(target,
^
../src/node_sqlite3.cc:52:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_TOOBIG, TOOBIG);
^
../src/macros.h:63:5: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
);
^
../src/node_sqlite3.cc:52:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_TOOBIG, TOOBIG);
^
../src/macros.h:59:10: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
Nan::ForceSet(target,
^
../src/node_sqlite3.cc:53:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_CONSTRAINT, CONSTRAINT);
^
../src/macros.h:63:5: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
);
^
../src/node_sqlite3.cc:53:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_CONSTRAINT, CONSTRAINT);
^
../src/macros.h:59:10: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
Nan::ForceSet(target,
^
../src/node_sqlite3.cc:54:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_MISMATCH, MISMATCH);
^

../src/macros.h:63:5: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations] );
^
../src/node_sqlite3.cc:54:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_MISMATCH, MISMATCH);
^
../src/macros.h:59:10: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
Nan::ForceSet(target,
^
../src/node_sqlite3.cc:55:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_MISUSE, MISUSE);
^
../src/macros.h:63:5: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
);
^
../src/node_sqlite3.cc:55:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_MISUSE, MISUSE);
^
../src/macros.h:59:10: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
Nan::ForceSet(target,
^
../src/node_sqlite3.cc:56:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_NOLFS, NOLFS);
^
../src/macros.h:63:5: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
);
^
../src/node_sqlite3.cc:56:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_NOLFS, NOLFS);
^
../src/macros.h:59:10: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
Nan::ForceSet(target,
^
../src/node_sqlite3.cc:57:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_AUTH, AUTH);
^
../src/macros.h:63:5: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
);
^
../src/node_sqlite3.cc:57:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_AUTH, AUTH);
^
../src/macros.h:59:10: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
Nan::ForceSet(target,
^
../src/node_sqlite3.cc:58:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_FORMAT, FORMAT);
^

../src/macros.h:63:5: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations] );
^
../src/node_sqlite3.cc:58:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_FORMAT, FORMAT);
^
../src/macros.h:59:10: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
Nan::ForceSet(target,
^
../src/node_sqlite3.cc:59:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_RANGE, RANGE);
^
../src/macros.h:63:5: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
);
^
../src/node_sqlite3.cc:59:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_RANGE, RANGE);
^
../src/macros.h:59:10: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
Nan::ForceSet(target,
^
../src/node_sqlite3.cc:60:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_NOTADB, NOTADB);
^

../src/macros.h:63:5: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations] );
^
../src/node_sqlite3.cc:60:5: note: in expansion of macro ‘DEFINE_CONSTANT_INTEGER’
DEFINE_CONSTANT_INTEGER(target, SQLITE_NOTADB, NOTADB);
^

../src/statement.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE node_sqlite3::Statement::New(Nan::NAN_METHOD_ARGS_TYPE)’:../src/statement.cc:103:10: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations]
Nan::ForceSet(info.This(),Nan::New("sql").ToLocalChecked(), sql, ReadOnly);
^

../src/statement.cc:103:78: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated (declared at ../../nan/nan_maybe_43_inl.h:130) [-Wdeprecated-declarations] Nan::ForceSet(info.This(),Nan::New("sql").ToLocalChecked(), sql, ReadOnly);
^

../src/statement.cc: In static member function ‘static void node_sqlite3::Statement::Work_BeginPrepare(node_sqlite3::Database::Baton*)’:../src/statement.cc:118:9: warning: unused variable ‘status’ [-Wunused-variable]
int status = uv_queue_work(uv_default_loop(),
^

In file included from ../src/statement.cc:6:0:../src/statement.cc: In static member function ‘static void node_sqlite3::Statement::Work_AfterPrepare(uv_work_t*)’:
../src/macros.h:109:60: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value*)’ is deprecated (declared at ../../nan/nan.h:929) [-Wdeprecated-declarations]
Nan::MakeCallback((context), (callback), (argc), (argv))
^
../src/statement.cc:161:13: note: in expansion of macro ‘TRY_CATCH_CALL’
TRY_CATCH_CALL(stmt->handle(), cb, 1, argv);
^

../src/statement.cc: In static member function ‘static void node_sqlite3::Statement::Work_BeginBind(node_sqlite3::Statement::Baton*)’:../src/macros.h:125:9: warning: unused variable ‘status’ [-Wunused-variable]
int status = uv_queue_work(uv_default_loop(),
^
../src/statement.cc:322:5: note: in expansion of macro ‘STATEMENT_BEGIN’
STATEMENT_BEGIN(Bind);
^

../src/statement.cc: In static member function ‘static void node_sqlite3::Statement::Work_AfterBind(uv_work_t*)’:../src/macros.h:109:60: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value*)’ is deprecated (declared at ../../nan/nan.h:929) [-Wdeprecated-declarations]
Nan::MakeCallback((context), (callback), (argc), (argv))
^
../src/statement.cc:347:13: note: in expansion of macro ‘TRY_CATCH_CALL’
TRY_CATCH_CALL(stmt->handle(), cb, 1, argv);
^

../src/statement.cc: In static member function ‘static void node_sqlite3::Statement::Work_BeginGet(node_sqlite3::Statement::Baton*)’:../src/macros.h:125:9: warning: unused variable ‘status’ [-Wunused-variable]
int status = uv_queue_work(uv_default_loop(),
^
../src/statement.cc:370:5: note: in expansion of macro ‘STATEMENT_BEGIN’
STATEMENT_BEGIN(Get);
^

../src/statement.cc: In static member function ‘static void node_sqlite3::Statement::Work_AfterGet(uv_work_t*)’:../src/macros.h:109:60: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value*)’ is deprecated (declared at ../../nan/nan.h:929) [-Wdeprecated-declarations]
Nan::MakeCallback((context), (callback), (argc), (argv))
^
../src/statement.cc:412:17: note: in expansion of macro ‘TRY_CATCH_CALL’
TRY_CATCH_CALL(stmt->handle(), cb, 2, argv);
^

../src/macros.h:109:60: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)’ is deprecated (declared at ../../nan/nan.h:929) [-Wdeprecated-declarations] Nan::MakeCallback((context), (callback), (argc), (argv))
^
../src/statement.cc:416:17: note: in expansion of macro ‘TRY_CATCH_CALL’
TRY_CATCH_CALL(stmt->handle(), cb, 1, argv);
^
../src/statement.cc: In static member function ‘static void node_sqlite3::Statement::Work_BeginRun(node_sqlite3::Statement::Baton
)’:
../src/macros.h:125:9: warning: unused variable ‘status’ [-Wunused-variable]
int status = uv_queue_work(uv_default_loop(),
^
../src/statement.cc:438:5: note: in expansion of macro ‘STATEMENT_BEGIN’
STATEMENT_BEGIN(Run);
^

../src/statement.cc: In static member function ‘static void node_sqlite3::Statement::Work_AfterRun(uv_work_t*)’:../src/macros.h:109:60: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value*)’ is deprecated (declared at ../../nan/nan.h:929) [-Wdeprecated-declarations]
Nan::MakeCallback((context), (callback), (argc), (argv))
^
../src/statement.cc:483:13: note: in expansion of macro ‘TRY_CATCH_CALL’
TRY_CATCH_CALL(stmt->handle(), cb, 1, argv);
^

../src/statement.cc: In static member function ‘static void node_sqlite3::Statement::Work_BeginAll(node_sqlite3::Statement::Baton*)’:../src/macros.h:125:9: warning: unused variable ‘status’ [-Wunused-variable]
int status = uv_queue_work(uv_default_loop(),
^
../src/statement.cc:504:5: note: in expansion of macro ‘STATEMENT_BEGIN’
STATEMENT_BEGIN(All);
^

../src/statement.cc: In static member function ‘static void node_sqlite3::Statement::Work_AfterAll(uv_work_t*)’:../src/macros.h:109:60: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value*)’ is deprecated (declared at ../../nan/nan.h:929) [-Wdeprecated-declarations]
Nan::MakeCallback((context), (callback), (argc), (argv))
^
../src/statement.cc:556:17: note: in expansion of macro ‘TRY_CATCH_CALL’
TRY_CATCH_CALL(stmt->handle(), cb, 2, argv);
^

../src/macros.h:109:60: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value*)’ is deprecated (declared at ../../nan/nan.h:929) [-Wdeprecated-declarations] Nan::MakeCallback((context), (callback), (argc), (argv))
^
../src/statement.cc:564:17: note: in expansion of macro ‘TRY_CATCH_CALL’
TRY_CATCH_CALL(stmt->handle(), cb, 2, argv);
^

../src/statement.cc: In static member function ‘static void node_sqlite3::Statement::Work_BeginEach(node_sqlite3::Statement::Baton*)’:../src/macros.h:125:9: warning: unused variable ‘status’ [-Wunused-variable]
int status = uv_queue_work(uv_default_loop(),
^
../src/statement.cc:601:5: note: in expansion of macro ‘STATEMENT_BEGIN’
STATEMENT_BEGIN(Each);
^

../src/statement.cc: In static member function ‘static void node_sqlite3::Statement::AsyncEach(uv_async_t*, int)’:../src/macros.h:109:60: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value*)’ is deprecated (declared at ../../nan/nan.h:929) [-Wdeprecated-declarations]
Nan::MakeCallback((context), (callback), (argc), (argv))
^
../src/statement.cc:680:17: note: in expansion of macro ‘TRY_CATCH_CALL’
TRY_CATCH_CALL(async->stmt->handle(), cb, 2, argv);
^

../src/macros.h:109:60: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value*)’ is deprecated (declared at ../../nan/nan.h:929) [-Wdeprecated-declarations] Nan::MakeCallback((context), (callback), (argc), (argv))
^
../src/statement.cc:694:13: note: in expansion of macro ‘TRY_CATCH_CALL’
TRY_CATCH_CALL(async->stmt->handle(), cb, 2, argv);
^

../src/statement.cc: In static member function ‘static void node_sqlite3::Statement::Work_BeginReset(node_sqlite3::Statement::Baton*)’:../src/macros.h:125:9: warning: unused variable ‘status’ [-Wunused-variable]
int status = uv_queue_work(uv_default_loop(),
^
../src/statement.cc:724:5: note: in expansion of macro ‘STATEMENT_BEGIN’
STATEMENT_BEGIN(Reset);
^

../src/statement.cc: In static member function ‘static void node_sqlite3::Statement::Work_AfterReset(uv_work_t*)’:../src/macros.h:109:60: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value*)’ is deprecated (declared at ../../nan/nan.h:929) [-Wdeprecated-declarations]
Nan::MakeCallback((context), (callback), (argc), (argv))
^
../src/statement.cc:743:9: note: in expansion of macro ‘TRY_CATCH_CALL’
TRY_CATCH_CALL(stmt->handle(), cb, 1, argv);
^

../src/statement.cc: In static member function ‘static void node_sqlite3::Statement::Finalize(node_sqlite3::Statement::Baton*)’:../src/macros.h:109:60: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value*)’ is deprecated (declared at ../../nan/nan.h:929) [-Wdeprecated-declarations]
Nan::MakeCallback((context), (callback), (argc), (argv))
^
../src/statement.cc:837:9: note: in expansion of macro ‘TRY_CATCH_CALL’
TRY_CATCH_CALL(baton->stmt->handle(), cb, 0, NULL);
^

../src/statement.cc: In member function ‘void node_sqlite3::Statement::CleanQueue()’:../src/macros.h:109:60: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value*)’ is deprecated (declared at ../../nan/nan.h:929) [-Wdeprecated-declarations]
Nan::MakeCallback((context), (callback), (argc), (argv))
^
../src/statement.cc:873:17: note: in expansion of macro ‘TRY_CATCH_CALL’
TRY_CATCH_CALL(handle(), cb, 1, argv);
^

../src/macros.h:109:60: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value*)’ is deprecated (declared at ../../nan/nan.h:929) [-Wdeprecated-declarations] Nan::MakeCallback((context), (callback), (argc), (argv))
^
../src/macros.h:102:5: note: in expansion of macro ‘TRY_CATCH_CALL’
TRY_CATCH_CALL((obj),
^
../src/statement.cc:887:13: note: in expansion of macro ‘EMIT_EVENT’
EMIT_EVENT(handle(), 2, info);
^

../src/statement.cc: In instantiation of ‘static void node_sqlite3::Statement::Error(T*) [with T = node_sqlite3::Statement::PrepareBaton]’:../src/statement.cc:153:20: required from here
../src/macros.h:109:60: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value*)’ is deprecated (declared at ../../nan/nan.h:929) [-Wdeprecated-declarations]
Nan::MakeCallback((context), (callback), (argc), (argv))
^
../src/statement.cc:74:9: note: in expansion of macro ‘TRY_CATCH_CALL’
TRY_CATCH_CALL(stmt->handle(), cb, 1, argv);
^

../src/macros.h:109:60: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value*)’ is deprecated (declared at ../../nan/nan.h:929) [-Wdeprecated-declarations] Nan::MakeCallback((context), (callback), (argc), (argv))
^
../src/macros.h:102:5: note: in expansion of macro ‘TRY_CATCH_CALL’
TRY_CATCH_CALL((obj),
^
../src/statement.cc:78:9: note: in expansion of macro ‘EMIT_EVENT’
EMIT_EVENT(stmt->handle(), 2, argv);
^

../src/statement.cc: In instantiation of ‘static void node_sqlite3::Statement::Error(T*) [with T = node_sqlite3::Statement::Baton]’:../src/statement.cc:340:20: required from here
../src/macros.h:109:60: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value*)’ is deprecated (declared at ../../nan/nan.h:929) [-Wdeprecated-declarations]
Nan::MakeCallback((context), (callback), (argc), (argv))
^
../src/statement.cc:74:9: note: in expansion of macro ‘TRY_CATCH_CALL’
TRY_CATCH_CALL(stmt->handle(), cb, 1, argv);
^

../src/macros.h:109:60: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value*)’ is deprecated (declared at ../../nan/nan.h:929) [-Wdeprecated-declarations] Nan::MakeCallback((context), (callback), (argc), (argv))
^
../src/macros.h:102:5: note: in expansion of macro ‘TRY_CATCH_CALL’
TRY_CATCH_CALL((obj),
^
../src/statement.cc:78:9: note: in expansion of macro ‘EMIT_EVENT’
EMIT_EVENT(stmt->handle(), 2, argv);
^

../src/statement.cc: In instantiation of ‘static void node_sqlite3::Statement::Error(T*) [with T = node_sqlite3::Statement::RowBaton]’:../src/statement.cc:403:20: required from here
../src/macros.h:109:60: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value*)’ is deprecated (declared at ../../nan/nan.h:929) [-Wdeprecated-declarations]
Nan::MakeCallback((context), (callback), (argc), (argv))
^
../src/statement.cc:74:9: note: in expansion of macro ‘TRY_CATCH_CALL’
TRY_CATCH_CALL(stmt->handle(), cb, 1, argv);
^

../src/macros.h:109:60: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value*)’ is deprecated (declared at ../../nan/nan.h:929) [-Wdeprecated-declarations] Nan::MakeCallback((context), (callback), (argc), (argv))
^
../src/macros.h:102:5: note: in expansion of macro ‘TRY_CATCH_CALL’
TRY_CATCH_CALL((obj),
^
../src/statement.cc:78:9: note: in expansion of macro ‘EMIT_EVENT’
EMIT_EVENT(stmt->handle(), 2, argv);
^

../src/statement.cc: In instantiation of ‘static void node_sqlite3::Statement::Error(T*) [with T = node_sqlite3::Statement::RunBaton]’:../src/statement.cc:473:20: required from here
../src/macros.h:109:60: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value*)’ is deprecated (declared at ../../nan/nan.h:929) [-Wdeprecated-declarations]
Nan::MakeCallback((context), (callback), (argc), (argv))
^
../src/statement.cc:74:9: note: in expansion of macro ‘TRY_CATCH_CALL’
TRY_CATCH_CALL(stmt->handle(), cb, 1, argv);
^

../src/macros.h:109:60: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value*)’ is deprecated (declared at ../../nan/nan.h:929) [-Wdeprecated-declarations] Nan::MakeCallback((context), (callback), (argc), (argv))
^
../src/macros.h:102:5: note: in expansion of macro ‘TRY_CATCH_CALL’
TRY_CATCH_CALL((obj),
^
../src/statement.cc:78:9: note: in expansion of macro ‘EMIT_EVENT’
EMIT_EVENT(stmt->handle(), 2, argv);
^

../src/statement.cc: In instantiation of ‘static void node_sqlite3::Statement::Error(T*) [with T = node_sqlite3::Statement::RowsBaton]’:../src/statement.cc:539:20: required from here
../src/macros.h:109:60: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value*)’ is deprecated (declared at ../../nan/nan.h:929) [-Wdeprecated-declarations]
Nan::MakeCallback((context), (callback), (argc), (argv))
^
../src/statement.cc:74:9: note: in expansion of macro ‘TRY_CATCH_CALL’
TRY_CATCH_CALL(stmt->handle(), cb, 1, argv);
^

../src/macros.h:109:60: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value*)’ is deprecated (declared at ../../nan/nan.h:929) [-Wdeprecated-declarations] Nan::MakeCallback((context), (callback), (argc), (argv))
^
../src/macros.h:102:5: note: in expansion of macro ‘TRY_CATCH_CALL’
TRY_CATCH_CALL((obj),
^
../src/statement.cc:78:9: note: in expansion of macro ‘EMIT_EVENT’
EMIT_EVENT(stmt->handle(), 2, argv);
^

../src/statement.cc: In instantiation of ‘static void node_sqlite3::Statement::Error(T*) [with T = node_sqlite3::Statement::EachBaton]’:../src/statement.cc:706:20: required from here
../src/macros.h:109:60: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value*)’ is deprecated (declared at ../../nan/nan.h:929) [-Wdeprecated-declarations]
Nan::MakeCallback((context), (callback), (argc), (argv))
^
../src/statement.cc:74:9: note: in expansion of macro ‘TRY_CATCH_CALL’
TRY_CATCH_CALL(stmt->handle(), cb, 1, argv);
^

../src/macros.h:109:60: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value*)’ is deprecated (declared at ../../nan/nan.h:929) [-Wdeprecated-declarations] Nan::MakeCallback((context), (callback), (argc), (argv))
^
../src/macros.h:102:5: note: in expansion of macro ‘TRY_CATCH_CALL’
TRY_CATCH_CALL((obj),
^
../src/statement.cc:78:9: note: in expansion of macro ‘EMIT_EVENT’
EMIT_EVENT(stmt->handle(), 2, argv);
^

host.raspi-3 Adapter "system.adapter.sql.0" is started
npm install --production (System call) in "/opt/iobroker/node_modules/iobroker.sql"
npm
WARN deprecated [email protected]: The sprintf package is deprecated in favor of sprintf-js.
../src/binding.cc: In static member function ‘static void Magic::DetectAfter(uv_work_t*)’:../src/binding.cc:314:38: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value*) const’ is deprecated (declared at ../node_modules/nan/nan.h:1674) [-Wdeprecated-declarations]
baton->callback->Call(1, argv);
^

../src/binding.cc:362:38: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value*) const’ is deprecated (declared at ../node_modules/nan/nan.h:1674) [-Wdeprecated-declarations] baton->callback->Call(2, argv);
^

npm notice created a lockfile as package-lock.json. You should commit this file.
got /opt/iobroker/node_modules/iobroker.sql/admin
upload [5] sql.admin /opt/iobroker/node_modules/iobroker.sql/admin/words.js words.js application/javascript
upload [4] sql.admin /opt/iobroker/node_modules/iobroker.sql/admin/sql.png sql.png image/png
Update "system.adapter.sql.0"
upload [3] sql.admin /opt/iobroker/node_modules/iobroker.sql/admin/index_m.html index_m.html text/html
upload [2] sql.admin /opt/iobroker/node_modules/iobroker.sql/admin/index.html index.html text/html
upload [1] sql.admin /opt/iobroker/node_modules/iobroker.sql/admin/custom_m.html custom_m.html text/html
upload [0] sql.admin /opt/iobroker/node_modules/iobroker.sql/admin/custom.html custom.html text/html
Adapter "sql" updated
process exited with code 0`

Datenbankname mit "-" führt zu Problemen

Hallo,

ich habe ein ähnliches Problem wie hier: http://forum.iobroker.net/viewtopic.php?t=2979
In meinem Fall hat die DB einen festen Namen den ich nicht ändern kann:

db1075266-ccu

Alles vor "ccu" ist vorgegeben, also auch der Bindestrich.

Ich konnte leider keine Lösung finden und bekommen immer den folgenden Fehler:

sql.0 2016-11-25 21:55:57.278 error Error: ER_PARSE_ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-ccu DEFAULT CHARACTER SET utf8 DEFAULT C sql.0 2016-11-25 21:55:57.278 error CREATE DATABASE db1075266-ccu DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;

Gibts dazu einen Workaround?

Gruß,
ThoSt

An in-range update of mocha is breaking the build 🚨

The devDependency mocha was updated from 6.0.1 to 6.0.2.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

mocha is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/appveyor/branch: Waiting for AppVeyor build to complete (Details).
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Release Notes for v6.0.2

6.0.2 / 2019-02-25

🐛 Fixes

Two more regressions fixed:

  • #3768: Test file paths no longer dropped from mocha.opts (@boneskull)
  • #3767: --require does not break on module names that look like certain node flags (@boneskull)
Commits

The new version differs by 6 commits.

  • 00a895f Release v6.0.2
  • 1edce76 update CHANGELOG for v6.0.2 [ci skip]
  • 347e9db fix broken positional arguments in config; ensure positional args are unique; closes #3763
  • 9e31e9d fix handling of bareword args matching node flags; closes #3761
  • 6535965 Update "karma-browserify" to eliminate Karma middleware warning (#3762)
  • 37febb6 improve issue template. (#3411)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on all branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.

Since we didn’t receive a CI status on the greenkeeper/initial branch, it’s possible that you don’t have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.

If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/.

Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please delete the greenkeeper/initial branch in this repository, and then remove and re-add this repository to the Greenkeeper App’s white list on Github. You'll find this list on your repo or organization’s settings page, under Installed GitHub Apps.

Wunsch: Datenbankname individuell einstellbar machen

Ein mySQL Server kann derzeit nciht für zwei ioBroker Installationen genutzt werden, da jeweils auf die selbe Datenbank zugegriffen wird (Datenbankname).

Wunsch:

Den Namen der ioBroker Datenbank konfigurierbar machen, gerne mit iobroker am Anfang als feste Einstellung.

Active Checkbox not rendering

Using actual Versions of Safari, Firefox or Chrome on MacOS, parts of the SQL Configuration Panel do not render correctly. Currently it is not possible to Activate/Deactivate SQL Logging on the Datapoint via GUI.
IOBroker on current Versions as to date.

sqlpanel

Getting Error: Request failed to complete in 15000ms

I'm continously getting the following error:

sql.0 RequestError: Timeout: Request failed to complete in 15000ms

Database writes failing a many times. Does it mean sql adapter is not able to transmit to db in time and datapoints are missing?

SQL logging based on changes activated for:

EDIT: Objekte: 6710, Zustände: 5695

Request history data from external webpage

Hi,

don't know how to directly send an email.

Is there a way to get the data from Jacascript on an external webpage?
Here's only a description how to access from Javascript adapter.

sql-client 1.2.0

Hello Apollon77,
there is a npm sql-client 1.2.0
But in the driver used 0.7.0. Can you test it with 1.2.0?

Thanks,
Bluefox

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.