package app import ( "fmt" "github.com/seaweedfs/seaweedfs/weed/admin/dash" "github.com/seaweedfs/seaweedfs/weed/s3api/s3tables" ) templ S3TablesBuckets(data dash.S3TablesBucketsData) {
Each table bucket is an Iceberg catalog. Connect clients to:
http://localhost:{ fmt.Sprintf("%d", data.IcebergPort) }/v1
| Name | Owner | ARN | Iceberg Endpoint | Created | Actions |
|---|---|---|---|---|---|
| { bucket.Name } | { bucket.OwnerAccountID } | { bucket.ARN } | /v1/{ bucket.Name }/namespaces |
{ bucket.CreatedAt.Format("2006-01-02 15:04") } | |
No table buckets foundCreate your first S3 Tables bucket to get started. |
|||||
{ `INSTALL iceberg;
LOAD iceberg;
CREATE SECRET (
TYPE ICEBERG,
ENDPOINT 'http://localhost:` + fmt.Sprintf("%d", data.IcebergPort) + `',
SCOPE 's3://my-table-bucket/'
);
SELECT * FROM iceberg_scan('s3://my-table-bucket/my-namespace/my-table');` }
{ `from pyiceberg.catalog import load_catalog
catalog = load_catalog(
name="seaweedfs",
**{
"type": "rest",
"uri": "http://localhost:` + fmt.Sprintf("%d", data.IcebergPort) + `",
}
)
namespaces = catalog.list_namespaces()` }