forked from arceos-org/arceos
-
Notifications
You must be signed in to change notification settings - Fork 2
/
expect_info_again.out
92 lines (81 loc) · 2.15 KB
/
expect_info_again.out
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
smp = 1
build_mode = release
log_level = info
Primary CPU 0 started,
Found physcial memory regions:
.text (READ | EXECUTE | RESERVED)
.rodata (READ | RESERVED)
.data .tdata .tbss .percpu (READ | WRITE | RESERVED)
.percpu (READ | WRITE | RESERVED)
boot stack (READ | WRITE | RESERVED)
.bss (READ | WRITE | RESERVED)
free memory (READ | WRITE | FREE)
Initialize global memory allocator...
Initialize kernel page table...
Initialize platform devices...
Initialize device drivers...
registered a new Block device at .\+: "virtio-blk"
Initialize filesystems...
use block device 0: "virtio-blk"
Primary CPU 0 init OK.
sqlite version: 3.41.1
sqlite open memory status 0
======== init user table ========
sqlite exec:
create table user(id INTEGER PRIMARY KEY AUTOINCREMENT,username TEXT,password TEXT)
======== insert user 1, 2, 3 into user table ========
sqlite exec:
insert into user (username, password) VALUES ('memory_1', 'password1'), ('memory_2', 'password2'), ('memory_3', 'password3')
======== select all ========
sqlite query:
select \* from user
id = 1
username = memory_1
password = password1
id = 2
username = memory_2
password = password2
id = 3
username = memory_3
password = password3
======== select id = 2 ========
sqlite query:
select \* from user where id = 2
id = 2
username = memory_2
password = password2
sqlite open /file.sqlite status 0
======== init user table ========
sqlite exec:
create table user(id INTEGER PRIMARY KEY AUTOINCREMENT,username TEXT,password TEXT)
======== insert user 1, 2, 3 into user table ========
sqlite exec:
insert into user (username, password) VALUES ('file_1', 'password1'), ('file_2', 'password2'), ('file_3', 'password3')
======== select all ========
sqlite query:
select \* from user
id = 1
username = file_1
password = password1
id = 2
username = file_2
password = password2
id = 3
username = file_3
password = password3
id = 4
username = file_1
password = password1
id = 5
username = file_2
password = password2
id = 6
username = file_3
password = password3
======== select id = 2 ========
sqlite query:
select \* from user where id = 2
id = 2
username = file_2
password = password2
Shutting down...