Skip to content

Commit 131b3f8

Browse files
fix: update request files and fix Makefile flow
1 parent 4f353c8 commit 131b3f8

15 files changed

Lines changed: 450 additions & 27 deletions

File tree

Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ dotnet-publish-process: dotnet-build-process
3131
sqlc-generate-process: dotnet-publish-process
3232
sqlc -f sqlc.local.yaml generate
3333

34-
test-process-plugin: unit-tests sqlc-generate-process dotnet-build run-end2end-tests
35-
3634
# WASM type plugin
3735
dotnet-publish-wasm: protobuf-generate
3836
dotnet publish WasmRunner -c release --output dist/
@@ -44,4 +42,4 @@ update-wasm-plugin:
4442
sqlc-generate-wasm: dotnet-publish-wasm update-wasm-plugin
4543
SQLCCACHE=./; sqlc -f sqlc.ci.yaml generate
4644

47-
test-wasm-plugin: unit-tests sqlc-generate-wasm update-wasm-plugin dotnet-build run-end2end-tests
45+
test-wasm-plugin: sqlc-generate-process unit-tests sqlc-generate-wasm update-wasm-plugin dotnet-build run-end2end-tests

end2end/EndToEndScaffold/Config.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public enum KnownTestType
2828

2929
// Sqlite
3030
SqliteDataTypes,
31+
SqliteDataTypesOverride,
3132
SqliteCopyFrom,
3233

3334
// Postgres
@@ -36,6 +37,7 @@ public enum KnownTestType
3637
PostgresFloatingPointDataTypes,
3738
PostgresDateTimeDataTypes,
3839
PostgresArrayDataTypes,
40+
PostgresDataTypesOverride,
3941

4042
PostgresStringCopyFrom,
4143
PostgresIntegerCopyFrom,
@@ -54,6 +56,7 @@ public enum KnownTestType
5456
MySqlDateTimeDataTypes,
5557
MySqlBinaryDataTypes,
5658
MySqlEnumDataType,
59+
MySqlDataTypesOverride,
5760
MySqlScopedSchemaEnum,
5861

5962
MySqlStringCopyFrom,

end2end/EndToEndScaffold/Templates/SqliteTests.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,15 @@ private static void AssertSingularEquals(QuerySql.GetSqliteTypesCntRow expected,
8989
}
9090
"""
9191
},
92+
[KnownTestType.SqliteDataTypesOverride] = new TestImpl
93+
{
94+
Impl = $$"""
95+
[Test]
96+
public async Task TestSqliteDataTypesOverride()
97+
{
98+
var actual = await QuerySql.GetSqliteTypes();
99+
}
100+
"""
101+
}
92102
};
93103
}

examples/MySqlConnectorDapperExample/request.json

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"codegen": {
1212
"out": "examples/MySqlConnectorDapperExample",
1313
"plugin": "csharp",
14-
"options": "eyJkZWJ1Z1JlcXVlc3QiOnRydWUsImdlbmVyYXRlQ3Nwcm9qIjp0cnVlLCJuYW1lc3BhY2VOYW1lIjoiTXlTcWxDb25uZWN0b3JEYXBwZXJFeGFtcGxlR2VuIiwidGFyZ2V0RnJhbWV3b3JrIjoibmV0OC4wIiwidXNlRGFwcGVyIjp0cnVlfQ==",
14+
"options": "eyJkZWJ1Z1JlcXVlc3QiOnRydWUsImdlbmVyYXRlQ3Nwcm9qIjp0cnVlLCJuYW1lc3BhY2VOYW1lIjoiTXlTcWxDb25uZWN0b3JEYXBwZXJFeGFtcGxlR2VuIiwib3ZlcnJpZGVzIjpbeyJjb2x1bW4iOiJHZXRNeXNxbEZ1bmN0aW9uczptYXhfaW50IiwiY3NoYXJwX3R5cGUiOnsidHlwZSI6ImludCJ9fSx7ImNvbHVtbiI6IkdldE15c3FsRnVuY3Rpb25zOm1heF92YXJjaGFyIiwiY3NoYXJwX3R5cGUiOnsidHlwZSI6InN0cmluZyJ9fSx7ImNvbHVtbiI6IkdldE15c3FsRnVuY3Rpb25zOm1heF90aW1lc3RhbXAiLCJjc2hhcnBfdHlwZSI6eyJ0eXBlIjoiRGF0ZVRpbWUifX0seyJjb2x1bW4iOiJHZXRNeXNxbEZ1bmN0aW9uczptYXhfYmlnaW50IiwiY3NoYXJwX3R5cGUiOnsidHlwZSI6ImxvbmcifX1dLCJ0YXJnZXRGcmFtZXdvcmsiOiJuZXQ4LjAiLCJ1c2VEYXBwZXIiOnRydWV9",
1515
"process": {
1616
"cmd": "./dist/LocalRunner"
1717
}
@@ -2702,7 +2702,7 @@
27022702
},
27032703
{
27042704
"text": "SELECT COUNT(1) AS cnt, c_bool, c_boolean, c_bit, c_tinyint, c_smallint, c_mediumint, c_int, c_integer, c_bigint, \n c_float, c_numeric, c_decimal, c_dec, c_fixed, c_double, c_double_precision, \n c_char, c_nchar, c_national_char, c_varchar, c_tinytext, c_mediumtext, c_text, c_longtext, c_enum,\n c_year, c_date, c_datetime, c_timestamp, \n c_binary, c_varbinary, c_tinyblob, c_blob, c_mediumblob, c_longblob\nFROM mysql_types\nGROUP BY c_bool, c_boolean, c_bit, c_tinyint, c_smallint, c_mediumint, c_int, c_integer, c_bigint, \n c_float, c_numeric, c_decimal, c_dec, c_fixed, c_double, c_double_precision, \n c_char, c_nchar, c_national_char, c_varchar, c_tinytext, c_mediumtext, c_text, c_longtext, c_enum,\n c_year, c_date, c_datetime, c_timestamp, \n c_binary, c_varbinary, c_tinyblob, c_blob, c_mediumblob, c_longblob\nLIMIT 1",
2705-
"name": "GetMysqlTypesAgg",
2705+
"name": "GetMysqlTypesCnt",
27062706
"cmd": ":one",
27072707
"columns": [
27082708
{
@@ -3102,6 +3102,50 @@
31023102
],
31033103
"filename": "query.sql"
31043104
},
3105+
{
3106+
"text": "SELECT MAX(c_int) AS max_int, MAX(c_varchar) AS max_varchar, MAX(c_timestamp) AS max_timestamp, max(c_bigint) as max_bigint\nFROM mysql_types",
3107+
"name": "GetMysqlFunctions",
3108+
"cmd": ":one",
3109+
"columns": [
3110+
{
3111+
"name": "max_int",
3112+
"notNull": true,
3113+
"length": -1,
3114+
"isFuncCall": true,
3115+
"type": {
3116+
"name": "any"
3117+
}
3118+
},
3119+
{
3120+
"name": "max_varchar",
3121+
"notNull": true,
3122+
"length": -1,
3123+
"isFuncCall": true,
3124+
"type": {
3125+
"name": "any"
3126+
}
3127+
},
3128+
{
3129+
"name": "max_timestamp",
3130+
"notNull": true,
3131+
"length": -1,
3132+
"isFuncCall": true,
3133+
"type": {
3134+
"name": "any"
3135+
}
3136+
},
3137+
{
3138+
"name": "max_bigint",
3139+
"notNull": true,
3140+
"length": -1,
3141+
"isFuncCall": true,
3142+
"type": {
3143+
"name": "any"
3144+
}
3145+
}
3146+
],
3147+
"filename": "query.sql"
3148+
},
31053149
{
31063150
"text": "TRUNCATE TABLE mysql_types",
31073151
"name": "TruncateMysqlTypes",

examples/MySqlConnectorDapperLegacyExample/request.json

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"codegen": {
1212
"out": "examples/MySqlConnectorDapperLegacyExample",
1313
"plugin": "csharp",
14-
"options": "eyJkZWJ1Z1JlcXVlc3QiOnRydWUsImdlbmVyYXRlQ3Nwcm9qIjp0cnVlLCJuYW1lc3BhY2VOYW1lIjoiTXlTcWxDb25uZWN0b3JEYXBwZXJMZWdhY3lFeGFtcGxlR2VuIiwidGFyZ2V0RnJhbWV3b3JrIjoibmV0c3RhbmRhcmQyLjAiLCJ1c2VEYXBwZXIiOnRydWV9",
14+
"options": "eyJkZWJ1Z1JlcXVlc3QiOnRydWUsImdlbmVyYXRlQ3Nwcm9qIjp0cnVlLCJuYW1lc3BhY2VOYW1lIjoiTXlTcWxDb25uZWN0b3JEYXBwZXJMZWdhY3lFeGFtcGxlR2VuIiwib3ZlcnJpZGVzIjpbeyJjb2x1bW4iOiJHZXRNeXNxbEZ1bmN0aW9uczptYXhfaW50IiwiY3NoYXJwX3R5cGUiOnsidHlwZSI6ImludCJ9fSx7ImNvbHVtbiI6IkdldE15c3FsRnVuY3Rpb25zOm1heF92YXJjaGFyIiwiY3NoYXJwX3R5cGUiOnsidHlwZSI6InN0cmluZyJ9fSx7ImNvbHVtbiI6IkdldE15c3FsRnVuY3Rpb25zOm1heF90aW1lc3RhbXAiLCJjc2hhcnBfdHlwZSI6eyJ0eXBlIjoiRGF0ZVRpbWUifX0seyJjb2x1bW4iOiJHZXRNeXNxbEZ1bmN0aW9uczptYXhfYmlnaW50IiwiY3NoYXJwX3R5cGUiOnsidHlwZSI6ImxvbmcifX1dLCJ0YXJnZXRGcmFtZXdvcmsiOiJuZXRzdGFuZGFyZDIuMCIsInVzZURhcHBlciI6dHJ1ZX0=",
1515
"process": {
1616
"cmd": "./dist/LocalRunner"
1717
}
@@ -2702,7 +2702,7 @@
27022702
},
27032703
{
27042704
"text": "SELECT COUNT(1) AS cnt, c_bool, c_boolean, c_bit, c_tinyint, c_smallint, c_mediumint, c_int, c_integer, c_bigint, \n c_float, c_numeric, c_decimal, c_dec, c_fixed, c_double, c_double_precision, \n c_char, c_nchar, c_national_char, c_varchar, c_tinytext, c_mediumtext, c_text, c_longtext, c_enum,\n c_year, c_date, c_datetime, c_timestamp, \n c_binary, c_varbinary, c_tinyblob, c_blob, c_mediumblob, c_longblob\nFROM mysql_types\nGROUP BY c_bool, c_boolean, c_bit, c_tinyint, c_smallint, c_mediumint, c_int, c_integer, c_bigint, \n c_float, c_numeric, c_decimal, c_dec, c_fixed, c_double, c_double_precision, \n c_char, c_nchar, c_national_char, c_varchar, c_tinytext, c_mediumtext, c_text, c_longtext, c_enum,\n c_year, c_date, c_datetime, c_timestamp, \n c_binary, c_varbinary, c_tinyblob, c_blob, c_mediumblob, c_longblob\nLIMIT 1",
2705-
"name": "GetMysqlTypesAgg",
2705+
"name": "GetMysqlTypesCnt",
27062706
"cmd": ":one",
27072707
"columns": [
27082708
{
@@ -3102,6 +3102,50 @@
31023102
],
31033103
"filename": "query.sql"
31043104
},
3105+
{
3106+
"text": "SELECT MAX(c_int) AS max_int, MAX(c_varchar) AS max_varchar, MAX(c_timestamp) AS max_timestamp, max(c_bigint) as max_bigint\nFROM mysql_types",
3107+
"name": "GetMysqlFunctions",
3108+
"cmd": ":one",
3109+
"columns": [
3110+
{
3111+
"name": "max_int",
3112+
"notNull": true,
3113+
"length": -1,
3114+
"isFuncCall": true,
3115+
"type": {
3116+
"name": "any"
3117+
}
3118+
},
3119+
{
3120+
"name": "max_varchar",
3121+
"notNull": true,
3122+
"length": -1,
3123+
"isFuncCall": true,
3124+
"type": {
3125+
"name": "any"
3126+
}
3127+
},
3128+
{
3129+
"name": "max_timestamp",
3130+
"notNull": true,
3131+
"length": -1,
3132+
"isFuncCall": true,
3133+
"type": {
3134+
"name": "any"
3135+
}
3136+
},
3137+
{
3138+
"name": "max_bigint",
3139+
"notNull": true,
3140+
"length": -1,
3141+
"isFuncCall": true,
3142+
"type": {
3143+
"name": "any"
3144+
}
3145+
}
3146+
],
3147+
"filename": "query.sql"
3148+
},
31053149
{
31063150
"text": "TRUNCATE TABLE mysql_types",
31073151
"name": "TruncateMysqlTypes",

examples/MySqlConnectorExample/request.json

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"codegen": {
1212
"out": "examples/MySqlConnectorExample",
1313
"plugin": "csharp",
14-
"options": "eyJkZWJ1Z1JlcXVlc3QiOnRydWUsImdlbmVyYXRlQ3Nwcm9qIjp0cnVlLCJuYW1lc3BhY2VOYW1lIjoiTXlTcWxDb25uZWN0b3JFeGFtcGxlR2VuIiwidGFyZ2V0RnJhbWV3b3JrIjoibmV0OC4wIiwidXNlRGFwcGVyIjpmYWxzZX0=",
14+
"options": "eyJkZWJ1Z1JlcXVlc3QiOnRydWUsImdlbmVyYXRlQ3Nwcm9qIjp0cnVlLCJuYW1lc3BhY2VOYW1lIjoiTXlTcWxDb25uZWN0b3JFeGFtcGxlR2VuIiwib3ZlcnJpZGVzIjpbeyJjb2x1bW4iOiJHZXRNeXNxbEZ1bmN0aW9uczptYXhfaW50IiwiY3NoYXJwX3R5cGUiOnsidHlwZSI6ImludCJ9fSx7ImNvbHVtbiI6IkdldE15c3FsRnVuY3Rpb25zOm1heF92YXJjaGFyIiwiY3NoYXJwX3R5cGUiOnsidHlwZSI6InN0cmluZyJ9fSx7ImNvbHVtbiI6IkdldE15c3FsRnVuY3Rpb25zOm1heF90aW1lc3RhbXAiLCJjc2hhcnBfdHlwZSI6eyJ0eXBlIjoiRGF0ZVRpbWUifX0seyJjb2x1bW4iOiJHZXRNeXNxbEZ1bmN0aW9uczptYXhfYmlnaW50IiwiY3NoYXJwX3R5cGUiOnsidHlwZSI6ImxvbmcifX1dLCJ0YXJnZXRGcmFtZXdvcmsiOiJuZXQ4LjAiLCJ1c2VEYXBwZXIiOmZhbHNlfQ==",
1515
"process": {
1616
"cmd": "./dist/LocalRunner"
1717
}
@@ -2702,7 +2702,7 @@
27022702
},
27032703
{
27042704
"text": "SELECT COUNT(1) AS cnt, c_bool, c_boolean, c_bit, c_tinyint, c_smallint, c_mediumint, c_int, c_integer, c_bigint, \n c_float, c_numeric, c_decimal, c_dec, c_fixed, c_double, c_double_precision, \n c_char, c_nchar, c_national_char, c_varchar, c_tinytext, c_mediumtext, c_text, c_longtext, c_enum,\n c_year, c_date, c_datetime, c_timestamp, \n c_binary, c_varbinary, c_tinyblob, c_blob, c_mediumblob, c_longblob\nFROM mysql_types\nGROUP BY c_bool, c_boolean, c_bit, c_tinyint, c_smallint, c_mediumint, c_int, c_integer, c_bigint, \n c_float, c_numeric, c_decimal, c_dec, c_fixed, c_double, c_double_precision, \n c_char, c_nchar, c_national_char, c_varchar, c_tinytext, c_mediumtext, c_text, c_longtext, c_enum,\n c_year, c_date, c_datetime, c_timestamp, \n c_binary, c_varbinary, c_tinyblob, c_blob, c_mediumblob, c_longblob\nLIMIT 1",
2705-
"name": "GetMysqlTypesAgg",
2705+
"name": "GetMysqlTypesCnt",
27062706
"cmd": ":one",
27072707
"columns": [
27082708
{
@@ -3102,6 +3102,50 @@
31023102
],
31033103
"filename": "query.sql"
31043104
},
3105+
{
3106+
"text": "SELECT MAX(c_int) AS max_int, MAX(c_varchar) AS max_varchar, MAX(c_timestamp) AS max_timestamp, max(c_bigint) as max_bigint\nFROM mysql_types",
3107+
"name": "GetMysqlFunctions",
3108+
"cmd": ":one",
3109+
"columns": [
3110+
{
3111+
"name": "max_int",
3112+
"notNull": true,
3113+
"length": -1,
3114+
"isFuncCall": true,
3115+
"type": {
3116+
"name": "any"
3117+
}
3118+
},
3119+
{
3120+
"name": "max_varchar",
3121+
"notNull": true,
3122+
"length": -1,
3123+
"isFuncCall": true,
3124+
"type": {
3125+
"name": "any"
3126+
}
3127+
},
3128+
{
3129+
"name": "max_timestamp",
3130+
"notNull": true,
3131+
"length": -1,
3132+
"isFuncCall": true,
3133+
"type": {
3134+
"name": "any"
3135+
}
3136+
},
3137+
{
3138+
"name": "max_bigint",
3139+
"notNull": true,
3140+
"length": -1,
3141+
"isFuncCall": true,
3142+
"type": {
3143+
"name": "any"
3144+
}
3145+
}
3146+
],
3147+
"filename": "query.sql"
3148+
},
31053149
{
31063150
"text": "TRUNCATE TABLE mysql_types",
31073151
"name": "TruncateMysqlTypes",

examples/MySqlConnectorLegacyExample/request.json

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"codegen": {
1212
"out": "examples/MySqlConnectorLegacyExample",
1313
"plugin": "csharp",
14-
"options": "eyJkZWJ1Z1JlcXVlc3QiOnRydWUsImdlbmVyYXRlQ3Nwcm9qIjp0cnVlLCJuYW1lc3BhY2VOYW1lIjoiTXlTcWxDb25uZWN0b3JMZWdhY3lFeGFtcGxlR2VuIiwidGFyZ2V0RnJhbWV3b3JrIjoibmV0c3RhbmRhcmQyLjAiLCJ1c2VEYXBwZXIiOmZhbHNlfQ==",
14+
"options": "eyJkZWJ1Z1JlcXVlc3QiOnRydWUsImdlbmVyYXRlQ3Nwcm9qIjp0cnVlLCJuYW1lc3BhY2VOYW1lIjoiTXlTcWxDb25uZWN0b3JMZWdhY3lFeGFtcGxlR2VuIiwib3ZlcnJpZGVzIjpbeyJjb2x1bW4iOiJHZXRNeXNxbEZ1bmN0aW9uczptYXhfaW50IiwiY3NoYXJwX3R5cGUiOnsidHlwZSI6ImludCJ9fSx7ImNvbHVtbiI6IkdldE15c3FsRnVuY3Rpb25zOm1heF92YXJjaGFyIiwiY3NoYXJwX3R5cGUiOnsidHlwZSI6InN0cmluZyJ9fSx7ImNvbHVtbiI6IkdldE15c3FsRnVuY3Rpb25zOm1heF90aW1lc3RhbXAiLCJjc2hhcnBfdHlwZSI6eyJ0eXBlIjoiRGF0ZVRpbWUifX0seyJjb2x1bW4iOiJHZXRNeXNxbEZ1bmN0aW9uczptYXhfYmlnaW50IiwiY3NoYXJwX3R5cGUiOnsidHlwZSI6ImxvbmcifX1dLCJ0YXJnZXRGcmFtZXdvcmsiOiJuZXRzdGFuZGFyZDIuMCIsInVzZURhcHBlciI6ZmFsc2V9",
1515
"process": {
1616
"cmd": "./dist/LocalRunner"
1717
}
@@ -2702,7 +2702,7 @@
27022702
},
27032703
{
27042704
"text": "SELECT COUNT(1) AS cnt, c_bool, c_boolean, c_bit, c_tinyint, c_smallint, c_mediumint, c_int, c_integer, c_bigint, \n c_float, c_numeric, c_decimal, c_dec, c_fixed, c_double, c_double_precision, \n c_char, c_nchar, c_national_char, c_varchar, c_tinytext, c_mediumtext, c_text, c_longtext, c_enum,\n c_year, c_date, c_datetime, c_timestamp, \n c_binary, c_varbinary, c_tinyblob, c_blob, c_mediumblob, c_longblob\nFROM mysql_types\nGROUP BY c_bool, c_boolean, c_bit, c_tinyint, c_smallint, c_mediumint, c_int, c_integer, c_bigint, \n c_float, c_numeric, c_decimal, c_dec, c_fixed, c_double, c_double_precision, \n c_char, c_nchar, c_national_char, c_varchar, c_tinytext, c_mediumtext, c_text, c_longtext, c_enum,\n c_year, c_date, c_datetime, c_timestamp, \n c_binary, c_varbinary, c_tinyblob, c_blob, c_mediumblob, c_longblob\nLIMIT 1",
2705-
"name": "GetMysqlTypesAgg",
2705+
"name": "GetMysqlTypesCnt",
27062706
"cmd": ":one",
27072707
"columns": [
27082708
{
@@ -3102,6 +3102,50 @@
31023102
],
31033103
"filename": "query.sql"
31043104
},
3105+
{
3106+
"text": "SELECT MAX(c_int) AS max_int, MAX(c_varchar) AS max_varchar, MAX(c_timestamp) AS max_timestamp, max(c_bigint) as max_bigint\nFROM mysql_types",
3107+
"name": "GetMysqlFunctions",
3108+
"cmd": ":one",
3109+
"columns": [
3110+
{
3111+
"name": "max_int",
3112+
"notNull": true,
3113+
"length": -1,
3114+
"isFuncCall": true,
3115+
"type": {
3116+
"name": "any"
3117+
}
3118+
},
3119+
{
3120+
"name": "max_varchar",
3121+
"notNull": true,
3122+
"length": -1,
3123+
"isFuncCall": true,
3124+
"type": {
3125+
"name": "any"
3126+
}
3127+
},
3128+
{
3129+
"name": "max_timestamp",
3130+
"notNull": true,
3131+
"length": -1,
3132+
"isFuncCall": true,
3133+
"type": {
3134+
"name": "any"
3135+
}
3136+
},
3137+
{
3138+
"name": "max_bigint",
3139+
"notNull": true,
3140+
"length": -1,
3141+
"isFuncCall": true,
3142+
"type": {
3143+
"name": "any"
3144+
}
3145+
}
3146+
],
3147+
"filename": "query.sql"
3148+
},
31053149
{
31063150
"text": "TRUNCATE TABLE mysql_types",
31073151
"name": "TruncateMysqlTypes",

examples/NpgsqlDapperExample/request.json

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"codegen": {
1212
"out": "examples/NpgsqlDapperExample",
1313
"plugin": "csharp",
14-
"options": "eyJkZWJ1Z1JlcXVlc3QiOnRydWUsImdlbmVyYXRlQ3Nwcm9qIjp0cnVlLCJuYW1lc3BhY2VOYW1lIjoiTnBnc3FsRGFwcGVyRXhhbXBsZUdlbiIsInRhcmdldEZyYW1ld29yayI6Im5ldDguMCIsInVzZURhcHBlciI6dHJ1ZX0=",
14+
"options": "eyJkZWJ1Z1JlcXVlc3QiOnRydWUsImdlbmVyYXRlQ3Nwcm9qIjp0cnVlLCJuYW1lc3BhY2VOYW1lIjoiTnBnc3FsRGFwcGVyRXhhbXBsZUdlbiIsIm92ZXJyaWRlcyI6W3siY29sdW1uIjoiR2V0UG9zdGdyZXNGdW5jdGlvbnM6bWF4X2ludGVnZXIiLCJjc2hhcnBfdHlwZSI6eyJ0eXBlIjoiaW50In19LHsiY29sdW1uIjoiR2V0UG9zdGdyZXNGdW5jdGlvbnM6bWF4X3ZhcmNoYXIiLCJjc2hhcnBfdHlwZSI6eyJ0eXBlIjoic3RyaW5nIn19LHsiY29sdW1uIjoiR2V0UG9zdGdyZXNGdW5jdGlvbnM6bWF4X3RpbWVzdGFtcCIsImNzaGFycF90eXBlIjp7InR5cGUiOiJEYXRlVGltZSJ9fV0sInRhcmdldEZyYW1ld29yayI6Im5ldDguMCIsInVzZURhcHBlciI6dHJ1ZX0=",
1515
"process": {
1616
"cmd": "./dist/LocalRunner"
1717
}
@@ -33894,7 +33894,7 @@
3389433894
},
3389533895
{
3389633896
"text": "SELECT COUNT(1) AS cnt , \n c_smallint, c_boolean, c_integer, c_bigint, c_real, c_numeric, c_decimal, c_double_precision, c_money, \n c_date, c_time, c_timestamp, c_timestamp_with_tz, c_char, c_varchar, c_character_varying, c_text, \n c_bytea\nFROM postgres_types\nGROUP BY c_smallint, c_boolean, c_integer, c_bigint, c_real, c_numeric, c_decimal, c_double_precision, c_money, \n c_date, c_time, c_timestamp, c_timestamp_with_tz, c_char, c_varchar, c_character_varying, c_text, \n c_bytea\nLIMIT 1",
33897-
"name": "GetPostgresTypesAgg",
33897+
"name": "GetPostgresTypesCnt",
3389833898
"cmd": ":one",
3389933899
"columns": [
3390033900
{
@@ -34121,6 +34121,41 @@
3412134121
],
3412234122
"filename": "query.sql"
3412334123
},
34124+
{
34125+
"text": "SELECT MAX(c_integer) AS max_integer, MAX(c_varchar) AS max_varchar, MAX(c_timestamp) AS max_timestamp\nFROM postgres_types",
34126+
"name": "GetPostgresFunctions",
34127+
"cmd": ":one",
34128+
"columns": [
34129+
{
34130+
"name": "max_integer",
34131+
"notNull": true,
34132+
"length": -1,
34133+
"isFuncCall": true,
34134+
"type": {
34135+
"name": "anyarray"
34136+
}
34137+
},
34138+
{
34139+
"name": "max_varchar",
34140+
"notNull": true,
34141+
"length": -1,
34142+
"isFuncCall": true,
34143+
"type": {
34144+
"name": "anyarray"
34145+
}
34146+
},
34147+
{
34148+
"name": "max_timestamp",
34149+
"notNull": true,
34150+
"length": -1,
34151+
"isFuncCall": true,
34152+
"type": {
34153+
"name": "anyarray"
34154+
}
34155+
}
34156+
],
34157+
"filename": "query.sql"
34158+
},
3412434159
{
3412534160
"text": "INSERT INTO postgres_geometric_types (c_point, c_line, c_lseg, c_box, c_path, c_polygon, c_circle)\nVALUES ($1, $2, $3, $4, $5, $6, $7)",
3412634161
"name": "InsertPostgresGeoTypes",

0 commit comments

Comments
 (0)