intelmq icon indicating copy to clipboard operation
intelmq copied to clipboard

intelmq_psql_initdb does not work for SQLite

Open sebix opened this issue 3 years ago • 3 comments

The SQL output bot documentation says, the SQLite database can be initialized with the intelmq_psql_initdb's initdb.sql: https://github.com/certtools/intelmq/blob/79cae294a74ab77f09b1f371a19f04ad65abab12/docs/user/bots.rst#L4089-L4094

However, that does not work:

sqlite> .read /tmp/initdb.sql
Parse error near line 86: near "USING": syntax error
   "idx_events_classification.identifier" ON events USING btree ("classification
                                      error here ---^
[etc... for all indices]

sebix avatar Jul 04 '22 10:07 sebix

okay, so would it need an intelmq_sqlite_initdb then?

aaronkaplan avatar Jul 13 '22 12:07 aaronkaplan

Or a generic command, and a parameter to switch between databases, e.g. intelmq.bots.outputs.sql.output --generate-initdb --sqlite.

sebix avatar Jul 13 '22 13:07 sebix

Also fine. Whatever works.

On 13.07.2022, at 15:58, Sebastian @.***> wrote:

Or a generic command, and a parameter to switch between databases, e.g. intelmq.bots.outputs.sql.output --generate-initdb --sqlite.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.

aaronkaplan avatar Oct 11 '22 07:10 aaronkaplan