All Products
Search
Document Center

PolarDB:ST_ImportGLB

Last Updated:Mar 28, 2026

Imports a GLB file into a database.

Syntax

Syntax 1 — Import from object storage:

boolean ST_ImportGLB(text table_name, text url, text id, text options default '{}');

Syntax 2 — Import from binary content:

boolean ST_ImportGLB(text table_name, bytea content, text id, text options default '{}');

Parameters

ParameterDescription
table_nameThe name of the GLB table and the prefix of the sharded table.
urlThe path to a GLB file stored in an object storage service, such as an Object Storage Service (OSS) bucket. For more information, see Object storage paths.
contentThe binary representation of the GLB file. Use this parameter instead of url to pass the file content directly.
idThe ID of the GLB file.
optionsThe import options. Default value: '{}'. Valid values: schema, flip_y_z, split_meshgeom, split_texture, sfmesh_column, gltf_id_column.

Description

ST_ImportGLB works the same way as ST_ImportGLTF. The options parameter has the same meaning in both functions.

Examples

Import a GLB file from an OSS bucket:

SELECT ST_ImportGLB('test_glb', 'OSS://<ak>:<ak_secret>@oss-cn-beijing-internal.aliyuncs.com/mybucket/path_to_glb.glb', 'my_glb');

---------
t