sqlx: updated offline data

This commit is contained in:
antifallobst 2023-10-08 13:27:06 +02:00
parent e4ab36474c
commit dc907bcb07
Signed by: antifallobst
GPG Key ID: 2B4F402172791BAF
8 changed files with 64 additions and 69 deletions

View File

@ -0,0 +1,14 @@
{
"db_name": "PostgreSQL",
"query": "DELETE FROM Projects WHERE id = $1;",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Int8"
]
},
"nullable": []
},
"hash": "13eb19ad4138a1dead857da5943fb715df49132d4eb2f74b1c356ddd9914755a"
}

View File

@ -1,6 +1,6 @@
{ {
"db_name": "PostgreSQL", "db_name": "PostgreSQL",
"query": "SELECT\n id,\n username,\n email,\n salt,\n password,\n joined,\n verified as \"verified!: bool\",\n follows,\n followers,\n flags\n FROM Accounts WHERE email = $1;", "query": "SELECT\n id,\n username,\n email,\n password,\n joined,\n verified as \"verified!: bool\",\n follows,\n followers,\n flags\n FROM Accounts WHERE username = $1;",
"describe": { "describe": {
"columns": [ "columns": [
{ {
@ -20,36 +20,31 @@
}, },
{ {
"ordinal": 3, "ordinal": 3,
"name": "salt",
"type_info": "Varchar"
},
{
"ordinal": 4,
"name": "password", "name": "password",
"type_info": "Varchar" "type_info": "Varchar"
}, },
{ {
"ordinal": 5, "ordinal": 4,
"name": "joined", "name": "joined",
"type_info": "Timestamp" "type_info": "Timestamp"
}, },
{ {
"ordinal": 6, "ordinal": 5,
"name": "verified!: bool", "name": "verified!: bool",
"type_info": "Bool" "type_info": "Bool"
}, },
{ {
"ordinal": 7, "ordinal": 6,
"name": "follows", "name": "follows",
"type_info": "Int8Array" "type_info": "Int8Array"
}, },
{ {
"ordinal": 8, "ordinal": 7,
"name": "followers", "name": "followers",
"type_info": "Int8Array" "type_info": "Int8Array"
}, },
{ {
"ordinal": 9, "ordinal": 8,
"name": "flags", "name": "flags",
"type_info": "Int2" "type_info": "Int2"
} }
@ -66,11 +61,10 @@
false, false,
false, false,
false, false,
false,
true, true,
true, true,
false false
] ]
}, },
"hash": "128da462eb065680f50c9c3fef93d49974ba1e0697d5a996736e3715e335e37d" "hash": "3c610dc7d528ef46408f3317d37168454f8b81625d88e4260f6ba944417f2104"
} }

View File

@ -1,18 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "INSERT INTO Accounts (username, email, salt, password, joined, verified, flags) VALUES ($1, $2, $3, $4, $5, false, 0);",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Varchar",
"Varchar",
"Varchar",
"Varchar",
"Timestamp"
]
},
"nullable": []
},
"hash": "4919f945175894aac7c9a49c948876996b35dc3ffe772856de59443c2a1b9b64"
}

View File

@ -1,12 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "\n CREATE TABLE IF NOT EXISTS Accounts (\n id SERIAL8 NOT NULL,\n\t username VARCHAR(32) NOT NULL,\n email VARCHAR(44) NOT NULL,\n\t salt VARCHAR(22) NOT NULL,\n\t password VARCHAR(128) NOT NULL,\n joined TIMESTAMP NOT NULL,\n verified BOOLEAN NOT NULL,\n follows BIGINT[],\n followers BIGINT[],\n flags INT2 NOT NULL,\n\t PRIMARY KEY(id)\n );\n ",
"describe": {
"columns": [],
"parameters": {
"Left": []
},
"nullable": []
},
"hash": "56757ca46f6c90c12658dcaf2a64aca3d15ae6540bfafac0db23848c1aa32ba4"
}

View File

@ -1,6 +1,6 @@
{ {
"db_name": "PostgreSQL", "db_name": "PostgreSQL",
"query": "SELECT\n id,\n username,\n email,\n salt,\n password,\n joined,\n verified as \"verified!: bool\",\n follows,\n followers,\n flags\n FROM Accounts WHERE username = $1;", "query": "SELECT\n id,\n username,\n email,\n password,\n joined,\n verified as \"verified!: bool\",\n follows,\n followers,\n flags\n FROM Accounts WHERE email = $1;",
"describe": { "describe": {
"columns": [ "columns": [
{ {
@ -20,36 +20,31 @@
}, },
{ {
"ordinal": 3, "ordinal": 3,
"name": "salt",
"type_info": "Varchar"
},
{
"ordinal": 4,
"name": "password", "name": "password",
"type_info": "Varchar" "type_info": "Varchar"
}, },
{ {
"ordinal": 5, "ordinal": 4,
"name": "joined", "name": "joined",
"type_info": "Timestamp" "type_info": "Timestamp"
}, },
{ {
"ordinal": 6, "ordinal": 5,
"name": "verified!: bool", "name": "verified!: bool",
"type_info": "Bool" "type_info": "Bool"
}, },
{ {
"ordinal": 7, "ordinal": 6,
"name": "follows", "name": "follows",
"type_info": "Int8Array" "type_info": "Int8Array"
}, },
{ {
"ordinal": 8, "ordinal": 7,
"name": "followers", "name": "followers",
"type_info": "Int8Array" "type_info": "Int8Array"
}, },
{ {
"ordinal": 9, "ordinal": 8,
"name": "flags", "name": "flags",
"type_info": "Int2" "type_info": "Int2"
} }
@ -66,11 +61,10 @@
false, false,
false, false,
false, false,
false,
true, true,
true, true,
false false
] ]
}, },
"hash": "294103135f5b8550f1de72a04ee9ff7569e89b2e72c2e9628c4b8a493468f99d" "hash": "72758a5560298c96f8430c4196cca37c74a58cbf8978f522c6a55b36514df6cf"
} }

View File

@ -0,0 +1,12 @@
{
"db_name": "PostgreSQL",
"query": "\n CREATE TABLE IF NOT EXISTS Accounts (\n id SERIAL8 NOT NULL,\n\t username VARCHAR(32) NOT NULL,\n email VARCHAR(44) NOT NULL,\n\t password VARCHAR(128) NOT NULL,\n joined TIMESTAMP NOT NULL,\n verified BOOLEAN NOT NULL,\n follows BIGINT[],\n followers BIGINT[],\n flags INT2 NOT NULL,\n\t PRIMARY KEY(id)\n );\n ",
"describe": {
"columns": [],
"parameters": {
"Left": []
},
"nullable": []
},
"hash": "9c987966d97dba26c61c1cdac026a9c1782b641aced318a95e1a9b63542d25c4"
}

View File

@ -1,6 +1,6 @@
{ {
"db_name": "PostgreSQL", "db_name": "PostgreSQL",
"query": "SELECT\n id,\n username,\n email,\n salt,\n password,\n joined,\n verified as \"verified!: bool\",\n follows,\n followers,\n flags\n FROM Accounts WHERE id = $1;", "query": "SELECT\n id,\n username,\n email,\n password,\n joined,\n verified as \"verified!: bool\",\n follows,\n followers,\n flags\n FROM Accounts WHERE id = $1;",
"describe": { "describe": {
"columns": [ "columns": [
{ {
@ -20,36 +20,31 @@
}, },
{ {
"ordinal": 3, "ordinal": 3,
"name": "salt",
"type_info": "Varchar"
},
{
"ordinal": 4,
"name": "password", "name": "password",
"type_info": "Varchar" "type_info": "Varchar"
}, },
{ {
"ordinal": 5, "ordinal": 4,
"name": "joined", "name": "joined",
"type_info": "Timestamp" "type_info": "Timestamp"
}, },
{ {
"ordinal": 6, "ordinal": 5,
"name": "verified!: bool", "name": "verified!: bool",
"type_info": "Bool" "type_info": "Bool"
}, },
{ {
"ordinal": 7, "ordinal": 6,
"name": "follows", "name": "follows",
"type_info": "Int8Array" "type_info": "Int8Array"
}, },
{ {
"ordinal": 8, "ordinal": 7,
"name": "followers", "name": "followers",
"type_info": "Int8Array" "type_info": "Int8Array"
}, },
{ {
"ordinal": 9, "ordinal": 8,
"name": "flags", "name": "flags",
"type_info": "Int2" "type_info": "Int2"
} }
@ -66,11 +61,10 @@
false, false,
false, false,
false, false,
false,
true, true,
true, true,
false false
] ]
}, },
"hash": "0d30b5067f0a9c1c9929882a7c8b7cb5511d4808b6ee0ffd3201ed3772f0b191" "hash": "d58b3e32e1ff241d1e913f508b18f67be3af3d1c2a3a086581ccbf7fdae07df0"
} }

View File

@ -0,0 +1,17 @@
{
"db_name": "PostgreSQL",
"query": "INSERT INTO Accounts (username, email, password, joined, verified, flags) VALUES ($1, $2, $3, $4, false, 0);",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Varchar",
"Varchar",
"Varchar",
"Timestamp"
]
},
"nullable": []
},
"hash": "e5f0ca0ef9f2bb5ecd0135fdf813bea95579e01f97cbf39fa5736420e1bfed45"
}