Skip to content

Commit 115a781

Browse files
authored
Merge pull request #10 from snaplet/main
Merge snaplet/postgres-wasm changes into main
2 parents 5084627 + 2963b42 commit 115a781

File tree

155 files changed

+20766
-241
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

155 files changed

+20766
-241
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<h1 align="center">Postgres WASM</h1>
33
<p align="center">A PostgresQL server instance running in a virtual machine running in the browser<br />
44
<i>by Supabase &amp; Snaplet</i></p>
5-
<img align="center" src="https://user-images.githubusercontent.com/44849/192262287-29d1ecb2-8ff7-40cb-bd1f-68d707493a86.png" alt="Snaplet, Supabase and friends" width="480">
5+
<img align="center" src="https://user-images.githubusercontent.com/90199159/192729860-730e89a9-2489-4a95-a814-25eaaebebb7d.png" alt="Snaplet, Supabase and friends" width="480">
66
<br /><br />
77
<a href="https://postgres-wasm.netlify.com">Demo</a>
88
<span>&nbsp;&nbsp;&nbsp;&nbsp;</span>

packages/buildroot/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM rastasheep/ubuntu-sshd:18.04
22

33
# Buildroot version to use
4-
ARG BUILD_ROOT_RELEASE=2022.08-rc1
4+
ARG BUILD_ROOT_RELEASE=2022.08
55

66
# Root password for SSH
77
ARG ROOT_PASSWORD=browser-vm

packages/buildroot/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The goal of this build process is to produce a `filesystem` folder containing a
2525
# Launch menuconfig
2626
make menuconfig
2727
# Save the changes back to the host
28-
cp .config /pg-browser/.config
28+
cp .config /config/.config
2929

3030
# Linux kernel config
3131
# IMPORTANT: If it's the first time you run this command,
@@ -35,7 +35,7 @@ The goal of this build process is to produce a `filesystem` folder containing a
3535
# Launch menuconfig
3636
make linux-menuconfig
3737
# Save the changes back to the host
38-
cp output/build/linux-5.17.15/.config /pg-browser/board/pg-browser/linux.conf
38+
cp output/build/linux-5.17.15/.config /config/board/pg-browser/linux.conf
3939
```
4040

4141
2. Build the `filesystem` folder:

packages/buildroot/build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ docker run \
44
--rm \
55
-v $PWD/tools:/tools \
66
-v $PWD/build:/build \
7-
-v $PWD/config/config \
7+
-v $PWD/config:/config \
88
-ti \
99
--platform linux/amd64 \
1010
buildroot

packages/buildroot/config/.config

+19-30
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#
22
# Automatically generated file; DO NOT EDIT.
3-
# Buildroot 2022.08-rc1 Configuration
3+
# Buildroot 2022.08 Configuration
44
#
55
BR2_HAVE_DOT_CONFIG=y
66
BR2_HOST_GCC_AT_LEAST_4_9=y
@@ -684,7 +684,6 @@ BR2_PACKAGE_GOOGLE_BREAKPAD_ARCH_SUPPORTS=y
684684
#
685685
# google-breakpad requires a glibc or uClibc toolchain w/ wchar, thread, C++, gcc >= 4.8
686686
#
687-
# BR2_PACKAGE_HYPERFINE is not set
688687
# BR2_PACKAGE_IOZONE is not set
689688
# BR2_PACKAGE_KEXEC is not set
690689
BR2_PACKAGE_KVM_UNIT_TESTS_ARCH_SUPPORTS=y
@@ -811,7 +810,6 @@ BR2_PACKAGE_PROVIDES_HOST_GETTEXT="host-gettext-tiny"
811810
# BR2_PACKAGE_MAKE is not set
812811
# BR2_PACKAGE_MAWK is not set
813812
# BR2_PACKAGE_PKGCONF is not set
814-
# BR2_PACKAGE_RIPGREP is not set
815813
# BR2_PACKAGE_SUBVERSION is not set
816814
# BR2_PACKAGE_TREE is not set
817815
# BR2_PACKAGE_YASM is not set
@@ -835,7 +833,6 @@ BR2_PACKAGE_PROVIDES_HOST_GETTEXT="host-gettext-tiny"
835833
# davfs2 needs a glibc or uClibc toolchain
836834
#
837835
# BR2_PACKAGE_DOSFSTOOLS is not set
838-
# BR2_PACKAGE_DUST is not set
839836
# BR2_PACKAGE_E2FSPROGS is not set
840837
# BR2_PACKAGE_E2TOOLS is not set
841838
# BR2_PACKAGE_ECRYPTFS_UTILS is not set
@@ -1137,7 +1134,7 @@ BR2_PACKAGE_QT6_ARCH_SUPPORTS=y
11371134
# BR2_PACKAGE_BRLTTY is not set
11381135

11391136
#
1140-
# cc-tool needs a toolchain w/ C++, threads, wchar, gcc >= 4.9
1137+
# cc-tool needs a toolchain w/ C++, threads, wchar, gcc >= 4.9
11411138
#
11421139
# BR2_PACKAGE_CDRKIT is not set
11431140
# BR2_PACKAGE_CRUCIBLE is not set
@@ -1319,7 +1316,7 @@ BR2_PACKAGE_SEDUTIL_ARCH_SUPPORTS=y
13191316
# BR2_PACKAGE_USB_MODESWITCH_DATA is not set
13201317

13211318
#
1322-
# usbguard needs a toolchain w/ C++, threads, dynamic library, gcc >= 7
1319+
# usbguard needs a toolchain w/ C++, threads, dynamic library, gcc >= 8
13231320
#
13241321

13251322
#
@@ -1829,10 +1826,6 @@ BR2_PACKAGE_ROCKSDB_ARCH_SUPPORTS=y
18291826
#
18301827
# libraw needs a toolchain w/ C++
18311828
#
1832-
1833-
#
1834-
# librsvg needs a toolchain w/ wchar, threads, C++, gcc >= 4.9
1835-
#
18361829
# BR2_PACKAGE_LIBSVG is not set
18371830
# BR2_PACKAGE_LIBSVG_CAIRO is not set
18381831
# BR2_PACKAGE_LIBSVGTINY is not set
@@ -2164,11 +2157,11 @@ BR2_PACKAGE_MRAA_ARCH_SUPPORTS=y
21642157
BR2_PACKAGE_LIBCAMERA_ARCH_SUPPORTS=y
21652158

21662159
#
2167-
# libcamera needs a toolchain w/ C++, threads, wchar, dynamic library, gcc >= 7
2160+
# libcamera needs a toolchain w/ C++, threads, wchar, dynamic library, gcc >= 8
21682161
#
21692162

21702163
#
2171-
# libcamera-apps needs a toolchain w/ C++, threads, wchar, dynamic library, gcc >= 7
2164+
# libcamera-apps needs a toolchain w/ C++, threads, wchar, dynamic library, gcc >= 8
21722165
#
21732166
# BR2_PACKAGE_LIBDCADEC is not set
21742167
# BR2_PACKAGE_LIBDVBCSA is not set
@@ -2546,12 +2539,12 @@ BR2_PACKAGE_LIBOPENH264_ARCH_SUPPORTS=y
25462539
#
25472540

25482541
#
2549-
# clang needs a toolchain w/ wchar, threads, C++, gcc >= 5, dynamic library
2542+
# clang needs a toolchain w/ wchar, threads, C++, gcc >= 5, dynamic library, host gcc >= 5
25502543
#
25512544
# BR2_PACKAGE_CMOCKA is not set
25522545

25532546
#
2554-
# compiler-rt requires llvm to be enabled and a glibc toolchain
2547+
# compiler-rt requires llvm to be enabled, a glibc toolchain, host gcc >= 5
25552548
#
25562549

25572550
#
@@ -2755,7 +2748,7 @@ BR2_PACKAGE_LLVM_ARCH_SUPPORTS=y
27552748
BR2_PACKAGE_LLVM_TARGET_ARCH="X86"
27562749

27572750
#
2758-
# llvm needs a toolchain w/ wchar, threads, C++, gcc >= 5, dynamic library
2751+
# llvm needs a toolchain w/ wchar, threads, C++, gcc >= 5, dynamic library, host gcc >= 5
27592752
#
27602753
# BR2_PACKAGE_LTTNG_LIBUST is not set
27612754
# BR2_PACKAGE_MATIO is not set
@@ -2874,7 +2867,8 @@ BR2_PACKAGE_NCURSES_ADDITIONAL_TERMINFO=""
28742867
#
28752868
# re2 needs a toolchain w/ C++, threads, gcc >= 4.8
28762869
#
2877-
# BR2_PACKAGE_READLINE is not set
2870+
BR2_PACKAGE_READLINE=y
2871+
BR2_PACKAGE_READLINE_BRACKETED_PASTE=y
28782872
# BR2_PACKAGE_SLANG is not set
28792873

28802874
#
@@ -3293,7 +3287,6 @@ BR2_PACKAGE_IFUPDOWN_SCRIPTS=y
32933287
# BR2_PACKAGE_SSLH is not set
32943288
# BR2_PACKAGE_STRONGSWAN is not set
32953289
# BR2_PACKAGE_STUNNEL is not set
3296-
# BR2_PACKAGE_SURICATA is not set
32973290
# BR2_PACKAGE_TCPDUMP is not set
32983291
# BR2_PACKAGE_TCPING is not set
32993292
# BR2_PACKAGE_TCPREPLAY is not set
@@ -3344,7 +3337,7 @@ BR2_PACKAGE_IFUPDOWN_SCRIPTS=y
33443337
#
33453338

33463339
#
3347-
# zeek needs a toolchain w/ C++, wchar, threads, dynamic library
3340+
# zeek needs a toolchain w/ C++, wchar, threads, dynamic library, gcc >= 7, host gcc >= 7
33483341
#
33493342

33503343
#
@@ -3360,35 +3353,35 @@ BR2_PACKAGE_IFUPDOWN_SCRIPTS=y
33603353
#
33613354

33623355
#
3363-
# Please note:
3356+
# Please note:
33643357
#
33653358

33663359
#
3367-
# - Buildroot does *not* generate binary packages,
3360+
# - Buildroot does *not* generate binary packages,
33683361
#
33693362

33703363
#
3371-
# - Buildroot does *not* install any package database.
3364+
# - Buildroot does *not* install any package database.
33723365
#
33733366

33743367
#
3375-
# *
3368+
# *
33763369
#
33773370

33783371
#
3379-
# It is up to you to provide those by yourself if you
3372+
# It is up to you to provide those by yourself if you
33803373
#
33813374

33823375
#
3383-
# want to use any of those package managers.
3376+
# want to use any of those package managers.
33843377
#
33853378

33863379
#
3387-
# *
3380+
# *
33883381
#
33893382

33903383
#
3391-
# See the manual:
3384+
# See the manual:
33923385
#
33933386

33943387
#
@@ -3507,7 +3500,6 @@ BR2_PACKAGE_AUDIT_ARCH_SUPPORTS=y
35073500
# ddrescue needs a toolchain w/ C++
35083501
#
35093502
# BR2_PACKAGE_DOCKER_CLI is not set
3510-
# BR2_PACKAGE_DOCKER_COMPOSE is not set
35113503
# BR2_PACKAGE_DOCKER_ENGINE is not set
35123504
# BR2_PACKAGE_DOCKER_PROXY is not set
35133505
# BR2_PACKAGE_EARLYOOM is not set
@@ -3599,7 +3591,6 @@ BR2_PACKAGE_OPENVMTOOLS_ARCH_SUPPORTS=y
35993591
# BR2_PACKAGE_SWUPDATE is not set
36003592
BR2_PACKAGE_SYSTEMD_ARCH_SUPPORTS=y
36013593
BR2_PACKAGE_SYSTEMD_BOOTCHART_ARCH_SUPPORTS=y
3602-
# BR2_PACKAGE_TEALDEER is not set
36033594

36043595
#
36053596
# thermald needs a toolchain w/ C++, wchar, threads
@@ -3698,7 +3689,6 @@ BR2_PACKAGE_UTIL_LINUX_LIBUUID=y
36983689
#
36993690
# Text editors and viewers
37003691
#
3701-
# BR2_PACKAGE_BAT is not set
37023692
# BR2_PACKAGE_ED is not set
37033693
# BR2_PACKAGE_JOE is not set
37043694
# BR2_PACKAGE_MC is not set
@@ -3865,7 +3855,6 @@ BR2_PACKAGE_HOST_QEMU_USER_ARCH_SUPPORTS=y
38653855
# BR2_PACKAGE_HOST_RUNC is not set
38663856
BR2_PACKAGE_HOST_RUSTC_ARCH_SUPPORTS=y
38673857
BR2_PACKAGE_HOST_RUSTC_TARGET_TIER2_PLATFORMS=y
3868-
BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS=y
38693858
BR2_PACKAGE_HOST_RUSTC_ARCH="i686"
38703859
# BR2_PACKAGE_HOST_RUSTC is not set
38713860
BR2_PACKAGE_PROVIDES_HOST_RUSTC="host-rust-bin"

0 commit comments

Comments
 (0)