Skip to content

Commit

Permalink
Renames Session.Builder#systemCatalog() to system()
Browse files Browse the repository at this point in the history
  • Loading branch information
johnedquinn committed Dec 6, 2024
1 parent 0573517 commit 531659d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion partiql-spi/api/partiql-spi.api
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ public final class org/partiql/spi/catalog/Session$Builder {
public final fun namespace (Lorg/partiql/spi/catalog/Namespace;)Lorg/partiql/spi/catalog/Session$Builder;
public final fun namespace ([Ljava/lang/String;)Lorg/partiql/spi/catalog/Session$Builder;
public final fun property (Ljava/lang/String;Ljava/lang/String;)Lorg/partiql/spi/catalog/Session$Builder;
public final fun systemCatalog (Lorg/partiql/spi/catalog/Catalog;)Lorg/partiql/spi/catalog/Session$Builder;
public final fun system (Lorg/partiql/spi/catalog/Catalog;)Lorg/partiql/spi/catalog/Session$Builder;
}

public final class org/partiql/spi/catalog/Session$Companion {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public interface Session {

private var identity: String = "unknown"
private var catalog: String? = null
private var systemCatalogName: String = "\$pql_system"
private var systemCatalogName: String = "\$system"
private var systemCatalog: Catalog = PartiQLSystemCatalog(systemCatalogName)
private var catalogs: Catalogs.Builder = Catalogs.builder()
private var namespace: Namespace = Namespace.empty()
Expand Down Expand Up @@ -103,7 +103,7 @@ public interface Session {
* to the system at hand.
* If this is never invoked, a default system catalog is provided.
*/
public fun systemCatalog(catalog: Catalog): Builder {
public fun system(catalog: Catalog): Builder {
this.systemCatalogName = catalog.getName()
return this
}
Expand Down

0 comments on commit 531659d

Please sign in to comment.