ORIONIS API REFERENCE

THE ORIONIS API

Build with clarity.

Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.

class documentation

class PrimaryKey: (source)

Constructor: PrimaryKey(*columns)

View In Hierarchy

Describe a primary-key constraint on a table.

Method __init__ Define a primary key constraint with one or more columns.
Instance Variable columns The column names for the primary key.
def __init__(self, *columns: str): (source)

Define a primary key constraint with one or more columns.

Parameters
*columns:tuple of strColumn names that compose the primary key.
Returns
NoneNo return value.
Raises
ValueErrorIf no columns are provided.
columns: tuple[str, ...] = (source)

The column names for the primary key.