@@ -294,7 +294,6 @@ func TestClientURLFlagEquivalence(t *testing.T) {
294
294
anySQL := []string {"sql" }
295
295
sqlShell := []string {"sql" }
296
296
anyNonSQLShell := []string {"node drain" }
297
- anyImportCmd := []string {"import db pgdump" , "import table pgdump" }
298
297
299
298
testData := []struct {
300
299
cmds []string
@@ -312,7 +311,6 @@ func TestClientURLFlagEquivalence(t *testing.T) {
312
311
{anyCmd , []string {"--url=postgresql://:12345" }, []string {"--port=12345" }, "" , "" },
313
312
314
313
{sqlShell , []string {"--url=postgresql:///foo" }, []string {"--database=foo" }, "" , "" },
315
- {anyImportCmd , []string {"--url=postgresql:///foo" }, []string {"--database=foo" }, "" , "" },
316
314
{anyNonSQLShell , []string {"--url=postgresql://foo/bar" }, []string {"--host=foo" /*db ignored*/ }, "" , "" },
317
315
318
316
{anySQL , []string {"--url=postgresql://foo@" }, []string {"--user=foo" }, "" , "" },
@@ -341,7 +339,6 @@ func TestClientURLFlagEquivalence(t *testing.T) {
341
339
{anyCmd , []string {"--port=12345" , "--url=postgresql://foo" }, []string {"--host=foo" , "--port=12345" }, "" , "" },
342
340
{anyCmd , []string {"--port=baz" , "--url=postgresql://foo" }, []string {"--host=foo" , "--port=baz" }, "" , `invalid port ":baz" after host` },
343
341
{sqlShell , []string {"--database=baz" , "--url=postgresql://foo" }, []string {"--host=foo" , "--database=baz" }, "" , "" },
344
- {anyImportCmd , []string {"--database=baz" , "--url=postgresql://" }, []string {"--database=baz" }, "" , "" },
345
342
{anySQL , []string {"--user=baz" , "--url=postgresql://foo" }, []string {"--host=foo" , "--user=baz" }, "" , "" },
346
343
347
344
{anyCmd , []string {"--insecure=false" , "--url=postgresql://foo" }, []string {"--host=foo" , "--insecure=false" }, "" , "" },
@@ -353,7 +350,6 @@ func TestClientURLFlagEquivalence(t *testing.T) {
353
350
{anyCmd , []string {"--port=baz" , "--url=postgresql://foo:12345" }, []string {"--host=foo" , "--port=12345" }, "" , "" },
354
351
{anyCmd , []string {"--port=baz" , "--url=postgresql://foo:bar" }, nil , `invalid port ":bar" after host` , "" },
355
352
{sqlShell , []string {"--database=baz" , "--url=postgresql://foo/bar" }, []string {"--host=foo" , "--database=bar" }, "" , "" },
356
- {anyImportCmd , []string {"--database=baz" , "--url=postgresql:///bar" }, []string {"--database=bar" }, "" , "" },
357
353
{anySQL , []string {"--user=baz" , "--url=postgresql://bar@foo" }, []string {"--host=foo" , "--user=bar" }, "" , "" },
358
354
359
355
{anyNonSQL , []string {"--insecure=false" , "--url=postgresql://foo?sslmode=disable" }, []string {"--host=foo" , "--insecure" }, "" , "" },
@@ -1325,7 +1321,6 @@ Available Commands:
1325
1321
1326
1322
nodelocal upload and delete nodelocal files
1327
1323
userfile upload, list and delete user scoped files
1328
- import import a db or table from a local PGDUMP or MYSQLDUMP file
1329
1324
demo open a demo sql shell
1330
1325
convert-url convert a SQL connection string for use with various client drivers
1331
1326
gen generate auxiliary files
0 commit comments