mage
YugabyteDB - the cloud native distributed SQL database for mission-critical applications.
mage · YugabyteDB - the cloud native distributed SQL database for mission-critical applications.
Overview
Usage
Sources:
- Official upstream README
- Official extension control file (mage.control)
- Official extension SQL (mage–1.5.0–1.6.0.sql)
mage — Since AGE is based on the powerful PostgreSQL RDBMS, it is robust and fully featured. Use it when an application needs this specific database capability. Use the pinned upstream revision linked above as the API boundary and test it on the target PostgreSQL build.
Core Workflow
Install the extension in the intended database, run the smallest upstream example above when available, and verify the installed version and returned values before integrating it into application SQL.
Important Objects
mag_catalog.age_graph_stats(agtype)is an extension function and returnsagtype.mag_catalog.age_is_valid_label_name(agtype)is an extension function and returnsboolean.mag_catalog.age_tostring("any")is an extension function and returnsagtype.mag_catalog.agtype_array_to_agtype(agtype[])is an extension function and returnsagtype.mag_catalog.agtype_contained_by_top_level(agtype, agtype)is an extension function and returnsboolean.mag_catalog.agtype_contains_top_level(agtype, agtype)is an extension function and returnsboolean.mag_catalog.agtype_to_json(agtype)is an extension function and returnsjson.mag_catalog.create_elabel(graph_name cstring, label_name cstring)is an extension function and returnsvoid.mag_catalog.create_vlabel(graph_name cstring, label_name cstring)is an extension function and returnsvoid.mag_catalog.graph_exists(graph_name name)is an extension function and returnsagtype.mag_catalog.load_edges_from_file(graph_name name, label_name name, file_path text, load_as_agtype bool default false)is an extension function and returnsvoid.mag_catalog.load_labels_from_file(graph_name name, label_name name, file_path text, id_field_exists bool default true, load_as_agtype bool default false)is an extension function and returnsvoid.mag_catalog.gin_agtype_opsis an extension-defined operator class.
Requirements and Caveats
- The reviewed control file declares default version
1.6.0. - Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.