Package ch.so.agi.gretl.internal.duckdb
Record Class PostgresTargetSpec
java.lang.Object
java.lang.Record
ch.so.agi.gretl.internal.duckdb.PostgresTargetSpec
- All Implemented Interfaces:
DuckDbTargetSpec
public record PostgresTargetSpec(String alias, DatabaseSpec database)
extends Record
implements DuckDbTargetSpec
-
Constructor Summary
ConstructorsConstructorDescriptionPostgresTargetSpec(String alias, DatabaseSpec database) Creates an instance of aPostgresTargetSpecrecord class. -
Method Summary
Modifier and TypeMethodDescriptionalias()Returns the value of thealiasrecord component.database()Returns the value of thedatabaserecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PostgresTargetSpec
Creates an instance of aPostgresTargetSpecrecord class.- Parameters:
alias- the value for thealiasrecord componentdatabase- the value for thedatabaserecord component
-
-
Method Details
-
requiredExtensions
- Specified by:
requiredExtensionsin interfaceDuckDbTargetSpec
-
inputSignature
- Specified by:
inputSignaturein interfaceDuckDbTargetSpec
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
alias
Returns the value of thealiasrecord component.- Specified by:
aliasin interfaceDuckDbTargetSpec- Returns:
- the value of the
aliasrecord component
-
database
Returns the value of thedatabaserecord component.- Returns:
- the value of the
databaserecord component
-