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
|
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
646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 | |