sqlx prepare

This commit is contained in:
Maple Nebel 2026-06-16 14:38:17 +02:00
commit 54fec6a766
4 changed files with 89 additions and 0 deletions

View file

@ -0,0 +1,28 @@
{
"db_name": "PostgreSQL",
"query": "select nex_key from nex_accounts where pid = $1",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "nex_key",
"type_info": "Bytea",
"origin": {
"Table": {
"table": "nex_accounts",
"name": "nex_key"
}
}
}
],
"parameters": {
"Left": [
"Int4"
]
},
"nullable": [
false
]
},
"hash": "00d126b7ab1ba81dedb426dfd135b7181ddd53746daf59a71f3390a728cdbf0b"
}

View file

@ -0,0 +1,21 @@
{
"db_name": "PostgreSQL",
"query": "SELECT nextval('pid_seq') as pid",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "pid",
"type_info": "Int8",
"origin": "Expression"
}
],
"parameters": {
"Left": []
},
"nullable": [
null
]
},
"hash": "1c677c35ab2d0b53674ec076f816afdd2d5f09b821aba370fad636b4f7b3eece"
}

View file

@ -0,0 +1,17 @@
{
"db_name": "PostgreSQL",
"query": "insert into nex_accounts (\n pid, principal_name, email, nex_key\n ) values (\n $1, $2, $3, $4\n )",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Int4",
"Varchar",
"Varchar",
"Bytea"
]
},
"nullable": []
},
"hash": "34f1dcfd8c6253ba5594808b8c37b3f4ad3d398edd233221b5983522b37f3579"
}

View file

@ -0,0 +1,23 @@
{
"db_name": "PostgreSQL",
"query": "SELECT EXISTS(select 1 from nex_accounts where pid = $1)",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "exists",
"type_info": "Bool",
"origin": "Expression"
}
],
"parameters": {
"Left": [
"Int4"
]
},
"nullable": [
null
]
},
"hash": "99f7bbe4a5df9b8e78bc201da0ba81fe5b4a4131918e751977bda7ea8291ea3a"
}