Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
126 changes: 126 additions & 0 deletions .miniob.history
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
### 2025-10-12 13:02:19.975
create table good(key1 int);
### 2025-10-12 13:03:27.835
CREATE TABLE test (id int, name varchar(20));
### 2025-10-12 13:03:37.330
drop_table good
### 2025-10-12 13:03:54.145
drop-table good;
### 2025-10-12 13:07:07.742
DROP TABLE good;
### 2025-10-12 13:07:10.347
quit;
### 2025-10-12 13:10:10.017
drop table good
### 2025-10-13 14:01:41.788
select * from unique_table'
### 2025-10-13 14:01:59.743
exit
### 2025-10-13 14:06:47.698
CREATE UNIQUE INDEX index_id on unique_table(id);
### 2025-10-13 14:07:10.180
select *
### 2025-10-13 14:07:32.679
select * from unique_table;
### 2025-10-13 14:09:03.478
CREATE UNIQUE INDEX index_id on unique_table(id);INSERT INTO unique_table VALUES (2,1,1);
### 2025-10-13 14:09:04.417
INSERT INTO unique_table VALUES (3,2,1);INSERT INTO unique_table VALUES (1,2,1);
### 2025-10-13 14:09:29.307
REATE UNIQUE INDEX index_id on unique_table(id);
### 2025-10-13 14:15:23.530
show tables
### 2025-10-13 14:20:22.581
select * from unique_table
### 2025-10-13 14:21:03.787
INSERT INTO unique_table VALUES (2,1,1);
### 2025-10-13 14:26:45.744
drop table unique_table;
### 2025-10-13 14:26:58.971
CREATE UNIQUE INDEX index_id on unique_table(id);INSERT INTO unique_table VALUES (2,1,1);INSERT INTO unique_table VALUES (3,2,1);
### 2025-10-13 14:27:08.223
create table unique_table(id int, col1 int, col2 int);
### 2025-10-13 14:27:12.114
CREATE UNIQUE INDEX index_id on unique_table(id);
### 2025-10-13 14:27:15.814
INSERT INTO unique_table VALUES (1,1,1);
### 2025-10-13 14:27:24.242
INSERT INTO unique_table VALUES (1,2,1);
### 2025-10-13 14:27:37.388
INSERT INTO unique_table VALUES (3,2,1);
### 2025-10-13 14:28:04.660
create table good(key1 int,key2 int);
### 2025-10-13 14:28:18.950
INSERT INTO good(1,2);
### 2025-10-13 14:28:27.173
INSERT INTO VALUES good(1,2);
### 2025-10-13 14:28:46.382
INSERT INTO good VALUES(1,2);
### 2025-10-13 14:28:51.961
DROP TABLE GOOD;
### 2025-10-13 14:28:57.406
DROP TABLE good
### 2025-10-13 14:29:08.349
drop table unique_table
### 2025-10-13 15:01:34.433
CREATE TABLE date_table(id int, u_date date);
### 2025-10-14 12:15:12.228
create table good(id int,k1 int);
### 2025-10-14 12:15:21.524
insert into good values(1,1);
### 2025-10-14 12:15:25.254
insert into good values(2,2);
### 2025-10-14 12:16:10.134
exit;
### 2025-10-14 12:29:16.564
UPDATE good SET k1=2 WHERE id=1;
### 2025-10-14 12:44:55.173
CREATE INDEX index_id on Update_table_1(id);INSERT INTO Update_table_1 VALUES (1, 'N1', 1, 1);INSERT INTO Update_table_1 VALUES (2, 'N2', 2, 2);INSERT INTO Update_table_1 VALUES (3, 'N3', 3, 3);
### 2025-10-14 12:45:05.565
select* from Update_table_1;
### 2025-10-14 12:45:11.176
INSERT INTO Update_table_1 VALUES (2, 'N2', 2, 2);
### 2025-10-14 12:45:12.139
INSERT INTO Update_table_1 VALUES (3, 'N3', 3, 3);
### 2025-10-14 12:45:34.538
UPDATE Update_table_1 SET t_name='N01' WHERE id=1;
### 2025-10-14 12:47:10.241
CREATE INDEX index_id on Update_table_1(id);
### 2025-10-14 12:47:33.960
INSERT INTO Update_table_1 VALUES (100, 'N100', 100, 100);
### 2025-10-14 12:47:40.416
UPDATE Update_table_1 SET t_name='N01' WHERE id=100;
### 2025-10-16 02:02:17.914
CREATE TABLE Update_table_1(id int, t_name char(4), col1 int, col2 int);
### 2025-10-16 02:02:18.829
CREATE INDEX index_id on Update_table_1(id);INSERT INTO Update_table_1 VALUES (1, 'N1', 1, 1);
### 2025-10-16 02:02:30.184
select * from Update_table_1
### 2025-10-16 02:02:36.551
INSERT INTO Update_table_1 VALUES (1, 'N1', 1, 1);
### 2025-10-16 02:02:36.556
INSERT INTO Update_table_1 VALUES (2, 'N2', 2, 2);
### 2025-10-16 02:02:37.291
INSERT INTO Update_table_1 VALUES (3, 'N3', 3, 3);
### 2025-10-16 02:02:42.172
UPDATE Update_table_1 SET col1='N01' WHERE id=1;
### 2025-10-16 02:02:55.932
UPDATE Update_table_1 SET col1='N01' WHERE id=100;
### 2025-10-16 02:03:12.856
drop table Update_table_1;
### 2025-10-16 02:12:22.428
create table text_table(id int, info text);
### 2025-10-16 02:17:58.863
exit;
### 2025-10-16 02:23:37.975
show tables;
### 2025-10-16 02:23:42.373
drop table good;
### 2025-10-16 02:23:50.330
insert into text_table values (1,'this is a very very long string');
### 2025-10-16 02:24:23.722
update text_table set info = 'ddd' where id = 1;
### 2025-10-16 02:24:30.756
select * from text_table;
### 2025-10-16 02:24:39.405
drop table text_table;
5 changes: 3 additions & 2 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
{
"label": "build_debug",
"type": "shell",
"command": "bash build.sh debug",
"command": "bash build.sh debug --make -j24",
"problemMatcher": [],
"group": {
"kind": "build",
Expand All @@ -21,7 +21,8 @@
{
"label": "build_release",
"type": "shell",
"command": "bash build.sh release"
"command": "bash build.sh release --make -j24",
"problemMatcher": []
},
{
"label": "gen_parser",
Expand Down
Binary file added miniob/db/sys/dblwr.db
Binary file not shown.
Binary file added miniob/db/sys/lsm/0.mf
Binary file not shown.
1 change: 1 addition & 0 deletions miniob/db/sys/lsm/CURRENT
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
1 change: 1 addition & 0 deletions miniob/db/sys/sys.db
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
Loading
Loading