get_schema
Retrieve the complete database schema including vertex, edge, and document types with properties, indexes, and inheritance hierarchy for ArcadeDB Multi-Model DBMS.
Instructions
Get the full schema of a database including types (vertex, edge, document), their properties, indexes, and inheritance hierarchy.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | Yes | The name of the database |
Implementation Reference
- The 'getSchema' implementation in the python binding returns a Schema wrapper around the Java database's schema object.
def schema(self): """ Get the schema manipulation API for this database. The schema API provides type-safe access to schema operations: - Type management (document, vertex, edge types) - Property management (create, drop properties) - Index management (create, drop indexes) Returns: Schema instance for this database Example: >>> # Create a vertex type with properties >>> db.schema.create_vertex_type("User") >>> db.schema.create_property("User", "name", PropertyType.STRING) >>> db.schema.create_property("User", "age", PropertyType.INTEGER) >>> >>> # Create an index >>> db.schema.create_index("User", ["name"], unique=True) >>> >>> # Create edge type >>> db.schema.create_edge_type("Follows") Note: Schema changes are immediately persisted and visible to all database connections. Schema modifications should be done carefully in production environments. """ self._check_not_closed() from .schema import Schema return Schema(self._java_db.getSchema(), self)