Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support txn insert #189

Closed
wants to merge 1 commit into from
Closed

Conversation

lsy3993
Copy link
Collaborator

@lsy3993 lsy3993 commented Oct 3, 2024

Txn insert is the SQL which starts with 'BEGIN' and ends with 'COMMIT/ROLLBACK'. The general SQL may be like this :

begin;

// insert stmt
insert into table1 select xxx;
insert into table1 values();

// update stmt
update table1 SET xx where yy;
update table2 SET xx where yy;

// delete stmt
delete table3 where yy;

commit;

There are some tips should be mentioned:

  1. you can only insert into one same table
  2. the insert table must be different with the delete table

And this PR support insert stmt only, means SQL like:

begin;
insert into table1 select xxx;
insert into table1 values();
commit;

The delete and update stmt may support later.

@lsy3993 lsy3993 marked this pull request as draft October 11, 2024 14:18
@lsy3993 lsy3993 marked this pull request as draft October 11, 2024 14:18
@lsy3993
Copy link
Collaborator Author

lsy3993 commented Nov 14, 2024

new PR is : #234

@lsy3993 lsy3993 closed this Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant