Skip to content

Commit e9e9c87

Browse files
authored
Merge pull request #51 from codecrafters-io/update-zig-bash-script
Updated zig bash script to include build files
2 parents 01c7511 + 962418d commit e9e9c87

File tree

9 files changed

+29
-4
lines changed

9 files changed

+29
-4
lines changed

compiled_starters/javascript/app/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if (command === ".dbinfo") {
99
const { buffer } = await databaseFileHandler.read({
1010
length: 100,
1111
position: 0,
12-
buffer: Buffer.alloc(100),
12+
buffer: Buffer.alloc(100)
1313
});
1414

1515
// You can use print statements as follows for debugging, they'll be visible when running tests.

compiled_starters/zig/your_sqlite3.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@
66
#
77
# DON'T EDIT THIS!
88
set -e
9+
zig build-exe ./app/main.zig
910
./main "$@"
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
author_details:
2+
name: Paul Kuruvilla
3+
profile_url: https://github.com/rohitpaulk
4+
avatar_url: https://github.com/rohitpaulk.png
5+
headline: CTO, CodeCrafters
6+
#reviewers_details:
7+
#- name: Marcos Lilljedahl
8+
# profile_url: https://www.docker.com/captains/marcos-lilljedahl/
9+
# avatar_url: https://github.com/marcosnils.png
10+
# headline: Docker Contributor
11+
#pull_request_url: "https://github.com/codecrafters-io/build-your-own-<course>/pull/<number>"

solutions/javascript/01-init/code/app/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if (command === ".dbinfo") {
99
const { buffer } = await databaseFileHandler.read({
1010
length: 100,
1111
position: 0,
12-
buffer: Buffer.alloc(100),
12+
buffer: Buffer.alloc(100)
1313
});
1414

1515
const pageSize = buffer.readUInt16BE(16); // page size is 2 bytes starting at offset 16

solutions/javascript/01-init/diff/app/main.js.diff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
const { buffer } = await databaseFileHandler.read({
1111
length: 100,
1212
position: 0,
13-
buffer: Buffer.alloc(100),
13+
buffer: Buffer.alloc(100)
1414
});
1515

1616
- // You can use print statements as follows for debugging, they'll be visible when running tests.

solutions/zig/01-init/code/your_sqlite3.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@
66
#
77
# DON'T EDIT THIS!
88
set -e
9+
zig build-exe ./app/main.zig
910
./main "$@"
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
author_details:
2+
name: Paul Kuruvilla
3+
profile_url: https://github.com/rohitpaulk
4+
avatar_url: https://github.com/rohitpaulk.png
5+
headline: CTO, CodeCrafters
6+
#reviewers_details:
7+
#- name: Marcos Lilljedahl
8+
# profile_url: https://www.docker.com/captains/marcos-lilljedahl/
9+
# avatar_url: https://github.com/marcosnils.png
10+
# headline: Docker Contributor
11+
#pull_request_url: "https://github.com/codecrafters-io/build-your-own-<course>/pull/<number>"

starter_templates/javascript/app/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if (command === ".dbinfo") {
99
const { buffer } = await databaseFileHandler.read({
1010
length: 100,
1111
position: 0,
12-
buffer: Buffer.alloc(100),
12+
buffer: Buffer.alloc(100)
1313
});
1414

1515
// You can use print statements as follows for debugging, they'll be visible when running tests.

starter_templates/zig/your_sqlite3.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@
66
#
77
# DON'T EDIT THIS!
88
set -e
9+
zig build-exe ./app/main.zig
910
./main "$@"

0 commit comments

Comments
 (0)