Table Schema
synapseclient.table.Schema
¶
Bases: SchemaBase
A Schema is an Entity that defines a set of columns in a table.
ATTRIBUTE | DESCRIPTION |
---|---|
name |
The name for the Table Schema object
|
description |
User readable description of the schema
|
columns |
A list of Column objects or their IDs
|
parent |
The project in Synapse to which this table belongs
|
properties |
A map of Synapse properties
|
annotations |
A map of user defined annotations
|
local_state |
Internal use only
TYPE:
|
Example:
cols = [Column(name='Isotope', columnType='STRING'),
Column(name='Atomic Mass', columnType='INTEGER'),
Column(name='Halflife', columnType='DOUBLE'),
Column(name='Discovered', columnType='DATE')]
schema = syn.store(Schema(name='MyTable', columns=cols, parent=project))
Source code in synapseclient/table.py
675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 |
|