We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa41ecb commit ddf36d4Copy full SHA for ddf36d4
stix2/datastore/relational_db/database_backends/sqlite_backend.py
@@ -57,14 +57,11 @@ def determine_sql_type_for_timestamp_property(): # noqa: F811
57
def array_allowed():
58
return False
59
60
- def create_regex_constraint_expression(self, column_name, pattern):
61
- return None
62
-
63
- def create_regex_constraint_and_expression(self, clause1, clause2):
64
+ def create_regex_constraint_clause(self, column_name, pattern):
+ return f"{column_name} REGEXP {pattern}"
65
66
@staticmethod
67
def next_id(data_sink):
68
- # hack, which is nit reliable
+ # hack, which is not reliable, must look for a better solution
69
SQLiteBackend.temp_sequence_count += 1
70
return SQLiteBackend.temp_sequence_count
0 commit comments