Skip to content

featurebyte.OnlineStore.create

create(
name: str,
details: Annotated[Union[RedisOnlineStoreDetails, MySQLOnlineStoreDetails]]
) -> OnlineStore

Description

Creates and saves a Online Store object to enable FeatureByte to serve online features. To create an online store, you need to specify the connection details and credentials to use.

Only one online store can be created for a specific configuration details.

Parameters

  • name: str
    Name of the online store.

  • details: Annotated[Union[RedisOnlineStoreDetails, MySQLOnlineStoreDetails]]
    Configuration details to use for the online store.

Returns

  • OnlineStore

Examples

>>> online_store = fb.OnlineStore.create(
...     name="online store",
...     details=fb.MySQLOnlineStoreDetails(
...         host="mysql_host",
...         database="mysql_database",
...         user="mysql_user",
...         password="mysql_password",
...         port=3306,
...     )
... )