Skip to content

intelmq_psql_initdb does not work for SQLite #2202

Open
@sebix

Description

@sebix

The SQL output bot documentation says, the SQLite database can be initialized with the intelmq_psql_initdb's initdb.sql:

intelmq/docs/user/bots.rst

Lines 4089 to 4094 in 79cae29

Create the new database (you can ignore all errors since SQLite doesn't know all SQL features generated for PostgreSQL):
.. code-block:: bash
sqlite3 your-db.db
sqlite> .read /tmp/initdb.sql

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or unintended behaviorcomponent: botsdocumentationIndicates a need for improvements or additions to documentation

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions