@@ -10,6 +10,7 @@ import type { Server } from '../server';
10
10
export interface Adapter {
11
11
key : string ;
12
12
name : string ;
13
+ protocol : string ;
13
14
adapter : typeof AbstractAdapter ;
14
15
defaultPort ?: number ;
15
16
defaultDatabase ?: string ;
@@ -22,20 +23,23 @@ export interface Adapter {
22
23
export const ADAPTERS : Adapter [ ] = [
23
24
{
24
25
key : 'mysql' ,
26
+ protocol : 'mysql' ,
25
27
name : 'MySQL' ,
26
28
adapter : MysqlAdapter ,
27
29
defaultPort : 3306 ,
28
30
disabledFeatures : [ 'server:schema' , 'server:domain' ] ,
29
31
} ,
30
32
{
31
33
key : 'mariadb' ,
34
+ protocol : 'mariadb' ,
32
35
name : 'MariaDB' ,
33
36
adapter : MysqlAdapter ,
34
37
defaultPort : 3306 ,
35
38
disabledFeatures : [ 'server:schema' , 'server:domain' ] ,
36
39
} ,
37
40
{
38
41
key : 'postgresql' ,
42
+ protocol : 'postgres' ,
39
43
name : 'PostgreSQL' ,
40
44
adapter : PostgresqlAdapter ,
41
45
defaultDatabase : 'postgres' ,
@@ -44,6 +48,7 @@ export const ADAPTERS: Adapter[] = [
44
48
} ,
45
49
{
46
50
key : 'redshift' ,
51
+ protocol : 'redshift' ,
47
52
name : 'Redshift' ,
48
53
adapter : PostgresqlAdapter ,
49
54
defaultDatabase : 'postgres' ,
@@ -52,13 +57,15 @@ export const ADAPTERS: Adapter[] = [
52
57
} ,
53
58
{
54
59
key : 'sqlserver' ,
60
+ protocol : 'mssql' ,
55
61
name : 'Microsoft SQL Server' ,
56
62
adapter : SqlServerAdapter ,
57
63
defaultPort : 1433 ,
58
64
disabledFeatures : [ ] ,
59
65
} ,
60
66
{
61
67
key : 'sqlite' ,
68
+ protocol : 'file' ,
62
69
name : 'SQLite' ,
63
70
adapter : SqliteAdapter ,
64
71
defaultDatabase : ':memory:' ,
@@ -77,6 +84,7 @@ export const ADAPTERS: Adapter[] = [
77
84
} ,
78
85
{
79
86
key : 'cassandra' ,
87
+ protocol : 'cassandra' ,
80
88
name : 'Cassandra' ,
81
89
adapter : CassandraAdapter ,
82
90
defaultPort : 9042 ,
0 commit comments