Skip to content

Commit db8b992

Browse files
authored
Change visibility for inheritance (#683)
* Change visibilty for inheritance This is for SqlDelight to allow PostgreSql dialect to have access for indexing element types Fix nameType to INDEX from TABLE - this is likely incorrect * Update CHANGELOG.md
1 parent 0121554 commit db8b992

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Unreleased
44

55
- Fix ResultColumnMixin - add table reference for QueryResult https://github.com/sqldelight/sql-psi/pull/687
6+
- Change visibility on CreateIndexElementType, CreateIndexElementType https://github.com/sqldelight/sql-psi/pull/683
67
- In-development snapshots are now published to the Central Portal Snapshots repository at https://central.sonatype.com/repository/maven-snapshots/.
78
- Fix unwanted environment log warnings https://github.com/sqldelight/sql-psi/pull/679
89

core/src/main/kotlin/com/alecstrong/sql/psi/core/psi/mixins/CreateIndexMixin.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ internal abstract class CreateIndexMixin(
5555
}
5656
}
5757

58-
internal class CreateIndexElementType(
58+
open class CreateIndexElementType(
5959
name: String,
6060
) : SqlSchemaContributorElementType<SqlCreateIndexStmt>(name, SqlCreateIndexStmt::class.java) {
61-
override fun nameType() = SqlTypes.TABLE_NAME
61+
override fun nameType() = SqlTypes.INDEX_NAME
6262
override fun createPsi(stub: SchemaContributorStub) = SqlCreateIndexStmtImpl(stub, this)
6363
}

core/src/main/kotlin/com/alecstrong/sql/psi/core/psi/mixins/CreateViewMixin.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ internal abstract class CreateViewMixin(
6565
}
6666
}
6767

68-
internal class CreateViewElementType(name: String) :
68+
open class CreateViewElementType(name: String) :
6969
SqlSchemaContributorElementType<TableElement>(name, TableElement::class.java) {
7070
override fun nameType() = SqlTypes.VIEW_NAME
7171
override fun createPsi(stub: SchemaContributorStub) = SqlCreateViewStmtImpl(stub, this)

0 commit comments

Comments
 (0)