File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33. wasm-build/extension.sh
44
55pushd $PG_EXTRA
6- if [ -d pg_uuiv7 ]
6+ if [ -d pg_uuidv7 ]
77 then
8- echo using local pg_uuiv7
8+ echo using local pg_uuidv7
99 else
1010 wget https://github.com/fboulnois/pg_uuidv7/archive/refs/tags/v1.6.0.tar.gz -O-| tar xfz -
11- mv pg_uuidv7-* .* .* pg_uuiv7
11+ mv pg_uuidv7-1 .* .* pg_uuidv7
1212 if $WASI
1313 then
1414 echo " no patching"
@@ -19,8 +19,8 @@ pushd $PG_EXTRA
1919 fi
2020popd
2121
22- pushd $PG_EXTRA /pg_uuiv7
22+ pushd $PG_EXTRA /pg_uuidv7
2323 PG_CONFIG=${PGROOT} /bin/pg_config emmake make OPTFLAGS=" " install || exit 25
2424popd
2525
26-
26+ read
Original file line number Diff line number Diff line change 334334`
335335 break
336336
337+ case 3 :
338+ data = `
339+ CREATE EXTENSION IF NOT EXISTS pg_uuidv7;
340+ `
341+ break
342+
343+
337344/* pg_ivm
338345 case 3:
339346 data = `
466473
467474 async function delayed_init ( ) {
468475 await Module . load_package ( "vector" , "vector.tar.gz" )
469- await Module . load_package ( "uuid-ossp" , "uuid-ossp.tar.gz" )
476+ //await Module.load_package("uuid-ossp", "uuid-ossp.tar.gz")
477+ await Module . load_package ( "uuid-ossp" , "pg_uuidv7.tar.gz" )
470478// await Module.load_package("pg_ivm", "pg_ivm.tar.gz")
471479
472480 await Module . load_package ( "pg_stat_statements" , "pg_stat_statements.tar.gz" )
763771 return
764772
765773 case "cat" :
774+ console . warn ( `cat "${ arg } "` )
766775 for ( const line of os . codec . decode ( vm . FS . readFile ( arg ) ) . split ( "\n" ) ) {
767776 vm . vt . xterm . write ( line + "\r\n" )
768777 }
You can’t perform that action at this time.
0 commit comments