Database and Connection#

featherstore.connection.connect(connection_string)[source]#

Connects to a database.

Parameters:

connection_string (str) – Path to the database directory

featherstore.connection.disconnect()[source]#

Disconnects from the current database.

featherstore.connection.create_database(path, *, errors='raise', connect=True)[source]#

Creates a new database.

Parameters:
  • path (str) – Where to create the database.

  • errors (str, optional) – Whether or not to raise an error if the database directory already exist. Can be either raise or ignore, ignore tries to create a database in existing directory, by default raise

  • connect (bool) – Whether or not to connect to the created database, by default True

featherstore.connection.current_db()[source]#

Fetches the active database.

Returns:

The current database directory

Return type:

str

featherstore.connection.is_connected()[source]#

Checks if FeatherStore is connected to a database.

featherstore.connection.database_exists(path)[source]#
class featherstore.connection.Connection(*args, **kwargs)[source]#

Bases: object

classmethod disconnect()[source]#
classmethod location()[source]#
classmethod is_connected()[source]#