Skip to content

Commit

Permalink
Update sqlparser to 0.34.0 (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
JanezStupar authored Feb 5, 2024
1 parent 9f0ec5c commit bd7f895
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 12 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@
# Avoid committing pubspec.lock for library packages; see
# https://dart.dev/guides/libraries/private-files#pubspeclock.
pubspec.lock


# Avoid commiting build dir
build/
20 changes: 10 additions & 10 deletions lib/src/timestamped_crdt.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ abstract class TimestampedCrdt extends BaseCrdt {
final action = statement.upsert!.entries.first.action;
if (action is DoUpdate) {
action.set.addAll([
SetComponent(
SingleColumnSetComponent(
column: Reference(columnName: 'hlc'),
expression: NumberedVariable(argCount + 1),
),
SetComponent(
SingleColumnSetComponent(
column: Reference(columnName: 'node_id'),
expression: NumberedVariable(argCount + 2),
),
SetComponent(
SingleColumnSetComponent(
column: Reference(columnName: 'modified'),
expression: NumberedVariable(argCount + 3),
),
Expand All @@ -71,15 +71,15 @@ abstract class TimestampedCrdt extends BaseCrdt {
table: statement.table,
set: [
...statement.set,
SetComponent(
SingleColumnSetComponent(
column: Reference(columnName: 'hlc'),
expression: NumberedVariable(argCount + 1),
),
SetComponent(
SingleColumnSetComponent(
column: Reference(columnName: 'node_id'),
expression: NumberedVariable(argCount + 2),
),
SetComponent(
SingleColumnSetComponent(
column: Reference(columnName: 'modified'),
expression: NumberedVariable(argCount + 3),
),
Expand All @@ -101,19 +101,19 @@ abstract class TimestampedCrdt extends BaseCrdt {
withClause: statement.withClause,
table: statement.table,
set: [
SetComponent(
SingleColumnSetComponent(
column: Reference(columnName: 'is_deleted'),
expression: NumberedVariable(argCount + 1),
),
SetComponent(
SingleColumnSetComponent(
column: Reference(columnName: 'hlc'),
expression: NumberedVariable(argCount + 2),
),
SetComponent(
SingleColumnSetComponent(
column: Reference(columnName: 'node_id'),
expression: NumberedVariable(argCount + 3),
),
SetComponent(
SingleColumnSetComponent(
column: Reference(columnName: 'modified'),
expression: NumberedVariable(argCount + 4),
),
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: sql_crdt
description: Base package for Conflict-free Replicated Data Types (CRDTs) using SQL databases
version: 2.1.5+1
version: 2.1.6+1
homepage: https://github.com/cachapa/sql_crdt
repository: https://github.com/cachapa/sql_crdt
issue_tracker: https://github.com/cachapa/sql_crdt/issues
Expand All @@ -12,7 +12,7 @@ dependencies:
crdt: ^5.1.2
# path: ../crdt
source_span: ^1.10.0
sqlparser: ^0.32.1
sqlparser: ^0.34.0

dev_dependencies:
lints: any
Expand Down

0 comments on commit bd7f895

Please sign in to comment.