Created
October 13, 2019 19:19
-
-
Save cicdw/dae9d21b07c5946506fb3f7bb56760aa to your computer and use it in GitHub Desktop.
Creates a SQLite Table for storing SSH attempts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from prefect.tasks.database.sqlite import SQLiteScript | |
create_script = "CREATE TABLE IF NOT EXISTS SSHATTEMPTS (timestamp TEXT, username TEXT, port INTEGER, city TEXT, country TEXT, latitude REAL, longitude REAL)" | |
create_table = SQLiteScript( | |
db="ssh.db", script=create_script, name="Create Database and Table" | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment