Compare commits
No commits in common. "db-push-v-1" and "main" have entirely different histories.
db-push-v-
...
main
@ -1 +1 @@
|
|||||||
# Block for DB operations like lookup, insert, update etc.
|
**Hello world!!!**
|
||||||
|
|||||||
12
config.json
12
config.json
@ -1,14 +1,6 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"namespace": "staging",
|
"namespace": "",
|
||||||
"connectionId": "56be80f8-7139-466f-b883-e4a695812d52"
|
"connectionId": ""
|
||||||
},
|
|
||||||
{
|
|
||||||
"namespace": "production",
|
|
||||||
"connectionId": "cf2344a8-28d3-4b38-9456-ba9e5c347bf5"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"namespace": "production-beta",
|
|
||||||
"connectionId": "cf2344a8-28d3-4b38-9456-ba9e5c347bf5"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
30
main.sql
30
main.sql
@ -1,29 +1 @@
|
|||||||
INSERT INTO public.applications (
|
Select * from dummy_table limit 10;
|
||||||
application_key,
|
|
||||||
application_timestamp,
|
|
||||||
application_ssn,
|
|
||||||
application_email_address,
|
|
||||||
application_bank_account_number,
|
|
||||||
application_is_rejected,
|
|
||||||
application_date_of_birth,
|
|
||||||
application_customer_type
|
|
||||||
)
|
|
||||||
VALUES (
|
|
||||||
$application_key,
|
|
||||||
$application_timestamp,
|
|
||||||
$application_ssn,
|
|
||||||
$application_email_address,
|
|
||||||
$application_bank_account_number,
|
|
||||||
$application_is_rejected,
|
|
||||||
$application_date_of_birth,
|
|
||||||
$application_customer_type
|
|
||||||
)
|
|
||||||
ON CONFLICT (application_key)
|
|
||||||
DO UPDATE
|
|
||||||
SET application_timestamp = EXCLUDED.application_timestamp,
|
|
||||||
application_ssn = EXCLUDED.application_ssn,
|
|
||||||
application_email_address = EXCLUDED.application_email_address,
|
|
||||||
application_bank_account_number = EXCLUDED.application_bank_account_number,
|
|
||||||
application_is_rejected = EXCLUDED.application_is_rejected,
|
|
||||||
application_date_of_birth = EXCLUDED.application_date_of_birth,
|
|
||||||
application_customer_type = EXCLUDED.application_customer_type;
|
|
||||||
@ -1,38 +1 @@
|
|||||||
{
|
{}
|
||||||
"$schema": "http://json-schema.org/draft-07/schema",
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"application_key": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"application_timestamp": {
|
|
||||||
"type": "string",
|
|
||||||
"format": "date-time"
|
|
||||||
},
|
|
||||||
"application_ssn": {
|
|
||||||
"type": ["string", "null"]
|
|
||||||
},
|
|
||||||
"application_email_address": {
|
|
||||||
"type": ["string", "null"],
|
|
||||||
"format": "email"
|
|
||||||
},
|
|
||||||
"application_bank_account_number": {
|
|
||||||
"type": ["string", "null"]
|
|
||||||
},
|
|
||||||
"application_is_rejected": {
|
|
||||||
"type": ["boolean", "null"],
|
|
||||||
"default": false
|
|
||||||
},
|
|
||||||
"application_date_of_birth": {
|
|
||||||
"type": ["string", "null"],
|
|
||||||
"format": "date"
|
|
||||||
},
|
|
||||||
"application_customer_type": {
|
|
||||||
"type": ["string", "null"]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": [
|
|
||||||
"application_key",
|
|
||||||
"application_timestamp"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@ -1,13 +1 @@
|
|||||||
{
|
{}
|
||||||
"$schema": "http://json-schema.org/draft-07/schema",
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"result": {
|
|
||||||
"type": ["string", "null"]
|
|
||||||
},
|
|
||||||
"error": {
|
|
||||||
"type": ["string", "null"]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": []
|
|
||||||
}
|
|
||||||
Loading…
x
Reference in New Issue
Block a user