Skip to content

Commit 587e936

Browse files
authored
Merge pull request #2747 from dolthub/taylor/schema-name
2 parents 06ed65f + f62ce49 commit 587e936

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

sql/databases.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,8 @@ type TriggerDefinition struct {
218218
// SqlMode holds the SQL_MODE that was in use when this trigger was originally defined. It contains information
219219
// needed for how to parse the trigger's SQL, such as whether ANSI_QUOTES mode is enabled.
220220
SqlMode string
221+
// SchemaName is the name of the schema of the trigger, for databases that support schemas.
222+
SchemaName string
221223
}
222224

223225
// TemporaryTableDatabase is a database that can query the session (which manages the temporary table state) to
@@ -311,6 +313,8 @@ type ViewDefinition struct {
311313
TextDefinition string
312314
CreateViewStatement string
313315
SqlMode string
316+
// SchemaName is the name of the schema of the view, for databases that support schemas.
317+
SchemaName string
314318
}
315319

316320
// GetTableInsensitive implements a case-insensitive map lookup for tables keyed off of the table name.

sql/procedures.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ type StoredProcedureDetails struct {
2727
CreatedAt time.Time // The time that the stored procedure was created.
2828
ModifiedAt time.Time // The time of the last modification to the stored procedure.
2929
SqlMode string // The SQL_MODE when this procedure was defined.
30+
SchemaName string // The name of the schema that this stored procedure belongs to, for databases that support schemas.
3031
}
3132

3233
// ExternalStoredProcedureDetails are the details of an external stored procedure. Compared to standard stored

0 commit comments

Comments
 (0)