diff --git a/.sqlx/query-2ad9bedeb45f3d474709aaea4415b5fe4d229c693b46f5db725ce14191a4a149.json b/.sqlx/query-2ad9bedeb45f3d474709aaea4415b5fe4d229c693b46f5db725ce14191a4a149.json new file mode 100644 index 0000000..dd85239 --- /dev/null +++ b/.sqlx/query-2ad9bedeb45f3d474709aaea4415b5fe4d229c693b46f5db725ce14191a4a149.json @@ -0,0 +1,114 @@ +{ + "db_name": "MySQL", + "query": "\n SELECT\n s.id as id,\n s.begin as begin,\n s.end as end,\n ss.instance_id as instance_id,\n ss.instance_name as instance_name,\n f.id as flavor,\n f.name as flavor_name,\n ss.status as status,\n u.id as user,\n u.name as username\n FROM\n accounting_state as s,\n accounting_serverstate as ss,\n resources_flavor as f,\n user_user as u\n WHERE\n ss.flavor_id = f.id AND\n ss.user_id = u.id AND\n ss.state_ptr_id = s.id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": { + "type": "Long", + "flags": "NOT_NULL | PRIMARY_KEY | AUTO_INCREMENT", + "max_size": 11 + } + }, + { + "ordinal": 1, + "name": "begin", + "type_info": { + "type": "Datetime", + "flags": "NOT_NULL | BINARY | NO_DEFAULT_VALUE", + "max_size": 26 + } + }, + { + "ordinal": 2, + "name": "end", + "type_info": { + "type": "Datetime", + "flags": "BINARY", + "max_size": 26 + } + }, + { + "ordinal": 3, + "name": "instance_id", + "type_info": { + "type": "VarString", + "flags": "NOT_NULL | NO_DEFAULT_VALUE", + "max_size": 144 + } + }, + { + "ordinal": 4, + "name": "instance_name", + "type_info": { + "type": "VarString", + "flags": "NOT_NULL | NO_DEFAULT_VALUE", + "max_size": 1020 + } + }, + { + "ordinal": 5, + "name": "flavor", + "type_info": { + "type": "LongLong", + "flags": "NOT_NULL | PRIMARY_KEY | AUTO_INCREMENT", + "max_size": 20 + } + }, + { + "ordinal": 6, + "name": "flavor_name", + "type_info": { + "type": "VarString", + "flags": "NOT_NULL | UNIQUE_KEY | NO_DEFAULT_VALUE", + "max_size": 256 + } + }, + { + "ordinal": 7, + "name": "status", + "type_info": { + "type": "VarString", + "flags": "NOT_NULL | NO_DEFAULT_VALUE", + "max_size": 72 + } + }, + { + "ordinal": 8, + "name": "user", + "type_info": { + "type": "Long", + "flags": "NOT_NULL | PRIMARY_KEY | AUTO_INCREMENT", + "max_size": 11 + } + }, + { + "ordinal": 9, + "name": "username", + "type_info": { + "type": "VarString", + "flags": "NOT_NULL | UNIQUE_KEY | NO_DEFAULT_VALUE", + "max_size": 1020 + } + } + ], + "parameters": { + "Right": 0 + }, + "nullable": [ + false, + false, + true, + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "2ad9bedeb45f3d474709aaea4415b5fe4d229c693b46f5db725ce14191a4a149" +} diff --git a/.sqlx/query-3f2444f46ef7f465daf461fbfd77076ebc23be6df2c7ecddcd41aac201f732ce.json b/.sqlx/query-3f2444f46ef7f465daf461fbfd77076ebc23be6df2c7ecddcd41aac201f732ce.json new file mode 100644 index 0000000..9458a1e --- /dev/null +++ b/.sqlx/query-3f2444f46ef7f465daf461fbfd77076ebc23be6df2c7ecddcd41aac201f732ce.json @@ -0,0 +1,114 @@ +{ + "db_name": "MySQL", + "query": "\n SELECT\n s.id as id,\n s.begin as begin,\n s.end as end,\n ss.instance_id as instance_id,\n ss.instance_name as instance_name,\n f.id as flavor,\n f.name as flavor_name,\n ss.status as status,\n u.id as user,\n u.name as username\n FROM\n accounting_state as s,\n accounting_serverstate as ss,\n resources_flavor as f,\n user_user as u\n WHERE\n ss.flavor_id = f.id AND\n ss.user_id = u.id AND\n ss.state_ptr_id = s.id AND\n ss.instance_id = ?\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": { + "type": "Long", + "flags": "NOT_NULL | PRIMARY_KEY | AUTO_INCREMENT", + "max_size": 11 + } + }, + { + "ordinal": 1, + "name": "begin", + "type_info": { + "type": "Datetime", + "flags": "NOT_NULL | BINARY | NO_DEFAULT_VALUE", + "max_size": 26 + } + }, + { + "ordinal": 2, + "name": "end", + "type_info": { + "type": "Datetime", + "flags": "BINARY", + "max_size": 26 + } + }, + { + "ordinal": 3, + "name": "instance_id", + "type_info": { + "type": "VarString", + "flags": "NOT_NULL | NO_DEFAULT_VALUE", + "max_size": 144 + } + }, + { + "ordinal": 4, + "name": "instance_name", + "type_info": { + "type": "VarString", + "flags": "NOT_NULL | NO_DEFAULT_VALUE", + "max_size": 1020 + } + }, + { + "ordinal": 5, + "name": "flavor", + "type_info": { + "type": "LongLong", + "flags": "NOT_NULL | PRIMARY_KEY | AUTO_INCREMENT", + "max_size": 20 + } + }, + { + "ordinal": 6, + "name": "flavor_name", + "type_info": { + "type": "VarString", + "flags": "NOT_NULL | UNIQUE_KEY | NO_DEFAULT_VALUE", + "max_size": 256 + } + }, + { + "ordinal": 7, + "name": "status", + "type_info": { + "type": "VarString", + "flags": "NOT_NULL | NO_DEFAULT_VALUE", + "max_size": 72 + } + }, + { + "ordinal": 8, + "name": "user", + "type_info": { + "type": "Long", + "flags": "NOT_NULL | PRIMARY_KEY | AUTO_INCREMENT", + "max_size": 11 + } + }, + { + "ordinal": 9, + "name": "username", + "type_info": { + "type": "VarString", + "flags": "NOT_NULL | UNIQUE_KEY | NO_DEFAULT_VALUE", + "max_size": 1020 + } + } + ], + "parameters": { + "Right": 1 + }, + "nullable": [ + false, + false, + true, + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "3f2444f46ef7f465daf461fbfd77076ebc23be6df2c7ecddcd41aac201f732ce" +} diff --git a/.sqlx/query-4dcd65beccfae44697aeb056f1746ff5c743d79fe7295a3cc9e2893e102e4fa1.json b/.sqlx/query-4dcd65beccfae44697aeb056f1746ff5c743d79fe7295a3cc9e2893e102e4fa1.json new file mode 100644 index 0000000..4024864 --- /dev/null +++ b/.sqlx/query-4dcd65beccfae44697aeb056f1746ff5c743d79fe7295a3cc9e2893e102e4fa1.json @@ -0,0 +1,114 @@ +{ + "db_name": "MySQL", + "query": "\n SELECT\n s.id as id,\n s.begin as begin,\n s.end as end,\n ss.instance_id as instance_id,\n ss.instance_name as instance_name,\n f.id as flavor,\n f.name as flavor_name,\n ss.status as status,\n u.id as user,\n u.name as username\n FROM\n accounting_state as s,\n accounting_serverstate as ss,\n resources_flavor as f,\n user_user as u\n WHERE\n ss.flavor_id = f.id AND\n ss.user_id = u.id AND\n ss.state_ptr_id = s.id AND\n u.id = ?\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": { + "type": "Long", + "flags": "NOT_NULL | PRIMARY_KEY | AUTO_INCREMENT", + "max_size": 11 + } + }, + { + "ordinal": 1, + "name": "begin", + "type_info": { + "type": "Datetime", + "flags": "NOT_NULL | BINARY | NO_DEFAULT_VALUE", + "max_size": 26 + } + }, + { + "ordinal": 2, + "name": "end", + "type_info": { + "type": "Datetime", + "flags": "BINARY", + "max_size": 26 + } + }, + { + "ordinal": 3, + "name": "instance_id", + "type_info": { + "type": "VarString", + "flags": "NOT_NULL | NO_DEFAULT_VALUE", + "max_size": 144 + } + }, + { + "ordinal": 4, + "name": "instance_name", + "type_info": { + "type": "VarString", + "flags": "NOT_NULL | NO_DEFAULT_VALUE", + "max_size": 1020 + } + }, + { + "ordinal": 5, + "name": "flavor", + "type_info": { + "type": "LongLong", + "flags": "NOT_NULL | PRIMARY_KEY | AUTO_INCREMENT", + "max_size": 20 + } + }, + { + "ordinal": 6, + "name": "flavor_name", + "type_info": { + "type": "VarString", + "flags": "NOT_NULL | UNIQUE_KEY | NO_DEFAULT_VALUE", + "max_size": 256 + } + }, + { + "ordinal": 7, + "name": "status", + "type_info": { + "type": "VarString", + "flags": "NOT_NULL | NO_DEFAULT_VALUE", + "max_size": 72 + } + }, + { + "ordinal": 8, + "name": "user", + "type_info": { + "type": "Long", + "flags": "NOT_NULL | PRIMARY_KEY | AUTO_INCREMENT", + "max_size": 11 + } + }, + { + "ordinal": 9, + "name": "username", + "type_info": { + "type": "VarString", + "flags": "NOT_NULL | UNIQUE_KEY | NO_DEFAULT_VALUE", + "max_size": 1020 + } + } + ], + "parameters": { + "Right": 1 + }, + "nullable": [ + false, + false, + true, + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "4dcd65beccfae44697aeb056f1746ff5c743d79fe7295a3cc9e2893e102e4fa1" +} diff --git a/.sqlx/query-bec56baf5986aaf65eb6412f51757c015c9e54e10bba81b7f2a999016cefe0ec.json b/.sqlx/query-bec56baf5986aaf65eb6412f51757c015c9e54e10bba81b7f2a999016cefe0ec.json new file mode 100644 index 0000000..7225a06 --- /dev/null +++ b/.sqlx/query-bec56baf5986aaf65eb6412f51757c015c9e54e10bba81b7f2a999016cefe0ec.json @@ -0,0 +1,114 @@ +{ + "db_name": "MySQL", + "query": "\n SELECT\n s.id as id,\n s.begin as begin,\n s.end as end,\n ss.instance_id as instance_id,\n ss.instance_name as instance_name,\n f.id as flavor,\n f.name as flavor_name,\n ss.status as status,\n u.id as user,\n u.name as username\n FROM\n accounting_state as s,\n accounting_serverstate as ss,\n resources_flavor as f,\n user_user as u\n WHERE\n ss.flavor_id = f.id AND\n ss.user_id = u.id AND\n ss.state_ptr_id = s.id AND\n u.project_id = ?\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": { + "type": "Long", + "flags": "NOT_NULL | PRIMARY_KEY | AUTO_INCREMENT", + "max_size": 11 + } + }, + { + "ordinal": 1, + "name": "begin", + "type_info": { + "type": "Datetime", + "flags": "NOT_NULL | BINARY | NO_DEFAULT_VALUE", + "max_size": 26 + } + }, + { + "ordinal": 2, + "name": "end", + "type_info": { + "type": "Datetime", + "flags": "BINARY", + "max_size": 26 + } + }, + { + "ordinal": 3, + "name": "instance_id", + "type_info": { + "type": "VarString", + "flags": "NOT_NULL | NO_DEFAULT_VALUE", + "max_size": 144 + } + }, + { + "ordinal": 4, + "name": "instance_name", + "type_info": { + "type": "VarString", + "flags": "NOT_NULL | NO_DEFAULT_VALUE", + "max_size": 1020 + } + }, + { + "ordinal": 5, + "name": "flavor", + "type_info": { + "type": "LongLong", + "flags": "NOT_NULL | PRIMARY_KEY | AUTO_INCREMENT", + "max_size": 20 + } + }, + { + "ordinal": 6, + "name": "flavor_name", + "type_info": { + "type": "VarString", + "flags": "NOT_NULL | UNIQUE_KEY | NO_DEFAULT_VALUE", + "max_size": 256 + } + }, + { + "ordinal": 7, + "name": "status", + "type_info": { + "type": "VarString", + "flags": "NOT_NULL | NO_DEFAULT_VALUE", + "max_size": 72 + } + }, + { + "ordinal": 8, + "name": "user", + "type_info": { + "type": "Long", + "flags": "NOT_NULL | PRIMARY_KEY | AUTO_INCREMENT", + "max_size": 11 + } + }, + { + "ordinal": 9, + "name": "username", + "type_info": { + "type": "VarString", + "flags": "NOT_NULL | UNIQUE_KEY | NO_DEFAULT_VALUE", + "max_size": 1020 + } + } + ], + "parameters": { + "Right": 1 + }, + "nullable": [ + false, + false, + true, + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "bec56baf5986aaf65eb6412f51757c015c9e54e10bba81b7f2a999016cefe0ec" +}