Skip to content

Commit

Permalink
add REGEXP constraint to sqlite
Browse files Browse the repository at this point in the history
  • Loading branch information
rpiazza committed Dec 14, 2024
1 parent aa41ecb commit ddf36d4
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,11 @@ def determine_sql_type_for_timestamp_property(): # noqa: F811
def array_allowed():
return False

def create_regex_constraint_expression(self, column_name, pattern):
return None

def create_regex_constraint_and_expression(self, clause1, clause2):
return None
def create_regex_constraint_clause(self, column_name, pattern):
return f"{column_name} REGEXP {pattern}"

@staticmethod
def next_id(data_sink):
# hack, which is nit reliable
# hack, which is not reliable, must look for a better solution
SQLiteBackend.temp_sequence_count += 1
return SQLiteBackend.temp_sequence_count

0 comments on commit ddf36d4

Please sign in to comment.