-
Notifications
You must be signed in to change notification settings - Fork 347
pgdump with emscripten #824
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
Merged
Merged
Changes from all commits
Commits
Show all changes
118 commits
Select commit
Hold shift + click to select a range
811205d
initial commit
tdrz 3385c69
bug fixes; cleanup; most pglite tests pass
tdrz 8718b1f
Merge branch 'main' into tdrz/cbDataTransport
tdrz d2f112c
update submodule
tdrz 6c8775c
Merge branch 'main' into tdrz/cbDataTransport
tdrz 8db8172
Merge branch 'main' into tdrz/cbDataTransport
tdrz c6c0bb5
Merge branch 'main' into tdrz/cbDataTransport
tdrz 5c41321
cleanup
tdrz f6c512c
style
tdrz 34eff39
change buffer size expansion strategy
tdrz da19cf0
fixes #657
tdrz 30a1397
changeset
tdrz b607f50
update submodule
tdrz dfb571b
Merge branch 'main' into tdrz/pglite-ccoderefactoring
tdrz e258375
update submodule
tdrz 61af32a
update submodule
tdrz b8dba43
remove get_buffer_size and get_buffer_addr"
tdrz e9047f2
update submodule
tdrz 4598daa
update submodule
tdrz 5494735
update submodule
tdrz ef11f15
update submodule
tdrz 1c917ad
update submodule
tdrz 6d9a963
update submodule
tdrz c52ae19
update submodule
tdrz cd69a27
improvements
tdrz 6753533
submodule
tdrz d4f4cbb
add final result messages
tdrz 5563e0e
update submodule
tdrz 7b07596
renaming; prettify
tdrz 28817bc
test update
tdrz 365b236
run sync after getting types from db
tdrz 261c3f8
add results returned by sync
2c57d38
style
9bb972b
cleanup; update submodule
tdrz bda4b68
cleanupof additional syncs; update submodule
tdrz 43ea96c
update submodule
tdrz f95eb51
Revert "update submodule"
tdrz 6bb2061
revert submodule update
tdrz dba962b
update submodule
tdrz c5af87d
stylecheck
tdrz 1b953e4
undo
tdrz 2a463b8
add more PGlite videos to pglite.dev website
tdrz ba68e09
style
tdrz 78214d1
link to bolt.new
tdrz 00cdf84
added intarray contrib extension
tdrz 40aa49d
intarray contrib extension description
tdrz 0d8c255
style
tdrz 210c9cd
query fix in intarray test
tdrz 9b7b9fb
stop if build-with-docker.sh fails
tdrz d2f0e15
update submodule
tdrz dfb5b6a
cleanup; update submodule
tdrz 330ac5d
cleanup
tdrz c7d654b
update submodule
tdrz 25b9bdb
added file_fdw extension with test
tdrz 57fcc34
added dict_xsyn contrib extension
tdrz 93f1529
added dict_int contrib extension
tdrz bf0ee75
added pageinspect contrib extension
tdrz fa1bd50
added pg_buffercache contrib extension
tdrz aaa8173
added pg_freespacemap contrib extension
tdrz 14fb47f
bug fix
tdrz 4bc107c
fix
tdrz 76eae10
added pg_surgery contrib extension
tdrz 3365996
added pg_visibility contrib extension
tdrz 641a165
added pg_walinspect contrib extension
tdrz 3e15b84
added unaccent contrib extension
tdrz 30b4df0
added xml2 contrib extension
tdrz 1631778
Revert "added xml2 contrib extension"
tdrz 06d3a1b
changeset
tdrz d647d8e
style and bug fix
tdrz 0e83b9d
use the pglite_write callback to parse results as they arrive
tdrz 5dead51
changed parsing logic to account for the fact that it is actually run…
tdrz db85580
stylecheck
tdrz ca2f949
readd non-parsing version of frontend receiving of messaes because it…
tdrz df743fe
stream parsing should be reset when pg_dump finishes
tdrz d72896a
bug fix
tdrz 39009b0
pglite-socket server also expects raw protocol messages, so disable s…
tdrz be8e5ee
style
tdrz dce540d
merge main. first impl
647b908
read write callbacks are working
67a8b98
load .data file; bug fix when writing data to socket; change .pgpass …
e9e577e
add pg_dump.data to testing setup
903a254
package pg_dump.data
f7fd34a
update submodule
d89ac1d
submodule
7a64ee9
stylecheck
7c24bef
embedd .pgpass file to avoid having a separate .data file
c4a1444
.pgpass is embedded now, no need for a separate .data file
27caef9
update submodule
8b29d75
pg_dump artifacts
a8093db
new emscripten built pg_dump for CI
ed881e4
added pg_dump exit value and stderr
f6dc742
cleanup
b6d38a4
update submodule
tdrz 0701b5f
merge main
tdrz 2b6083f
style
tdrz 6263f57
GH CI fix
tdrz c5b503a
add pg_dump test with PGlite dataDir
tdrz 13ebc1c
style
tdrz c681923
gh action comment update fix; bundle pg_dump
tdrz fdc42ef
gh ci fix
tdrz fd11aa6
remove verbose in pg_dump tests
tdrz d1b4d5b
bundling pg_dump needs to be done properly
tdrz 11824c9
update submodule
tdrz 9f41b2a
trying to fix CI again
tdrz b0b8a77
still trying to fix CI
tdrz 8cbc404
update submodule
tdrz 15d1f1e
still trying to fix CI - again
tdrz d9c88cf
gh ci
tdrz e62a2dd
submodule
tdrz 074f756
test for quote-all-identifiers in pg_dump
tdrz da39ade
style
tdrz 0bfa353
pg_dump bufferring of messages if needed
tdrz 68e0f8c
dist package for pg_dump
tdrz 8025ee6
update submodule
tdrz bb9b849
changeset
tdrz a7e3dbe
cleanup
tdrz f12f431
cleanup wasi
tdrz 5ed1337
update submodule after submodule PR merge
tdrz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| --- | ||
| '@electric-sql/pglite-tools': patch | ||
| '@electric-sql/pglite': patch | ||
| --- | ||
|
|
||
| Updated pg_dump to use callback data exchange; built pg_dump with emscripten |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| import PgDumpModFactory from '../release/pg_dump' | ||
|
|
||
| type IDBFS = Emscripten.FileSystemType & { | ||
| quit: () => void | ||
| dbs: Record<string, IDBDatabase> | ||
| } | ||
|
|
||
| export type FS = typeof FS & { | ||
| filesystems: { | ||
| MEMFS: Emscripten.FileSystemType | ||
| NODEFS: Emscripten.FileSystemType | ||
| IDBFS: IDBFS | ||
| } | ||
| quit: () => void | ||
| } | ||
|
|
||
| export interface PgDumpMod | ||
| extends Omit<EmscriptenModule, 'preInit' | 'preRun' | 'postRun'> { | ||
| preInit: Array<{ (mod: PgDumpMod): void }> | ||
| preRun: Array<{ (mod: PgDumpMod): void }> | ||
| postRun: Array<{ (mod: PgDumpMod): void }> | ||
| FS: FS | ||
| WASM_PREFIX: string | ||
| INITIAL_MEMORY: number | ||
| _set_read_write_cbs: (read_cb: number, write_cb: number) => void | ||
| addFunction: ( | ||
| cb: (ptr: any, length: number) => void, | ||
| signature: string, | ||
| ) => number | ||
| removeFunction: (f: number) => void | ||
| _main: (args: string[]) => number | ||
| onExit: (status: number) => void | ||
| print: (test: string) => void | ||
| printErr: (text: string) => void | ||
| } | ||
|
|
||
| type PgDumpFactory<T extends PgDumpMod = PgDumpMod> = ( | ||
| moduleOverrides?: Partial<T>, | ||
| ) => Promise<T> | ||
|
|
||
| export default PgDumpModFactory as PgDumpFactory<PgDumpMod> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.