chore: import upstream snapshot with attribution
CI / compile_and_lint (push) Failing after 0s
CI / docker_build (linux/amd64, -linux-amd64-duckdb, duckdb) (push) Failing after 0s
CI / docker_build (linux/arm64, -linux-arm64, minimal) (push) Failing after 2s
CI / docker_build (linux/arm64, -linux-arm64-duckdb, duckdb) (push) Failing after 1s
CI / docker_build (linux/amd64, minimal) (push) Failing after 1s
CI / test (, sqlite, sqlite::memory:) (push) Has been skipped
CI / test (mssql, mssql, mssql://root:Password123!@127.0.0.1/sqlpage) (push) Has been skipped
CI / test (mysql, mysql, mysql://root:Password123!@127.0.0.1/sqlpage) (push) Has been skipped
CI / test (oracle, oracle, Driver=Oracle 21 ODBC driver;Dbq=//127.0.0.1:1521/FREEPDB1;Uid=root;Pwd=Password123!) (push) Has been skipped
CI / test (postgres, odbc, Driver=PostgreSQL Unicode;Server=127.0.0.1;Port=5432;Database=sqlpage;UID=root;PWD=Password123!, true) (push) Has been skipped
CI / test (postgres, postgres, postgres://root:Password123!@127.0.0.1/sqlpage) (push) Has been skipped
CI / playwright (push) Has been skipped
CI / docker_build (linux/arm/v7, -linux-arm-v7, minimal) (push) Failing after 0s
CI / hurl_examples (push) Failing after 8s
deploy website / deploy_official_site (push) Failing after 1s
CI / hurl (${{ matrix.example }}) (push) Has been skipped
CI / docker_push (duckdb) (push) Has been cancelled
CI / docker_push (minimal) (push) Has been cancelled
CI / windows_test (push) Has been cancelled
CI / compile_and_lint (push) Failing after 0s
CI / docker_build (linux/amd64, -linux-amd64-duckdb, duckdb) (push) Failing after 0s
CI / docker_build (linux/arm64, -linux-arm64, minimal) (push) Failing after 2s
CI / docker_build (linux/arm64, -linux-arm64-duckdb, duckdb) (push) Failing after 1s
CI / docker_build (linux/amd64, minimal) (push) Failing after 1s
CI / test (, sqlite, sqlite::memory:) (push) Has been skipped
CI / test (mssql, mssql, mssql://root:Password123!@127.0.0.1/sqlpage) (push) Has been skipped
CI / test (mysql, mysql, mysql://root:Password123!@127.0.0.1/sqlpage) (push) Has been skipped
CI / test (oracle, oracle, Driver=Oracle 21 ODBC driver;Dbq=//127.0.0.1:1521/FREEPDB1;Uid=root;Pwd=Password123!) (push) Has been skipped
CI / test (postgres, odbc, Driver=PostgreSQL Unicode;Server=127.0.0.1;Port=5432;Database=sqlpage;UID=root;PWD=Password123!, true) (push) Has been skipped
CI / test (postgres, postgres, postgres://root:Password123!@127.0.0.1/sqlpage) (push) Has been skipped
CI / playwright (push) Has been skipped
CI / docker_build (linux/arm/v7, -linux-arm-v7, minimal) (push) Failing after 0s
CI / hurl_examples (push) Failing after 8s
deploy website / deploy_official_site (push) Failing after 1s
CI / hurl (${{ matrix.example }}) (push) Has been skipped
CI / docker_push (duckdb) (push) Has been cancelled
CI / docker_push (minimal) (push) Has been cancelled
CI / windows_test (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
update partially_filled_users set age = :age
|
||||
where :age is not null and id = $id;
|
||||
|
||||
insert into users (name, email, age)
|
||||
select name, email, age from partially_filled_users where id = $id;
|
||||
|
||||
delete from partially_filled_users where id = $id;
|
||||
|
||||
select
|
||||
'alert' as component,
|
||||
'Welcome, ' || name || '!' as title,
|
||||
'You are user #' || id || '. [Create a new user](index.sql)' as description_md
|
||||
from users where id = last_insert_rowid();
|
||||
|
||||
select 'list' as component, 'Existing users' as title, 'users' as value;
|
||||
select name as title, email as description from users;
|
||||
@@ -0,0 +1,5 @@
|
||||
-- create a new empty partially_filled_users row, returning its id
|
||||
insert into partially_filled_users default values
|
||||
returning
|
||||
'redirect' as component,
|
||||
'step_1.sql?id=' || id as link;
|
||||
@@ -0,0 +1,4 @@
|
||||
select 'form' as component, 'step_2.sql?id=' || $id as action;
|
||||
|
||||
select 'name' as name, true as required, name as value
|
||||
from partially_filled_users where id = $id;
|
||||
@@ -0,0 +1,9 @@
|
||||
update partially_filled_users set name = :name
|
||||
where :name is not null and id = $id;
|
||||
|
||||
select 'form' as component, 'step_3.sql?id=' || $id as action;
|
||||
|
||||
select 'email' as name, 'email' as type, true as required, email as value,
|
||||
'you@example.com' as placeholder,
|
||||
'Hey ' || name || '! what is your email?' as description
|
||||
from partially_filled_users where id = $id;
|
||||
@@ -0,0 +1,8 @@
|
||||
update partially_filled_users set email = :email
|
||||
where :email is not null and id = $id;
|
||||
|
||||
select 'form' as component, 'finish.sql?id=' || $id as action;
|
||||
|
||||
select 'age' as name, 'number' as type, true as required, age as value,
|
||||
'How old are you, ' || name || '?' as description
|
||||
from partially_filled_users where id = $id;
|
||||
Reference in New Issue
Block a user