Finitio數(shù)據(jù)語言
Finitio(之前名叫 Q)是一種數(shù)據(jù)語言,目前僅限于數(shù)據(jù)定義語言。
示例代碼:
Temp = <celsius> Real( f | f >= 33.0 and f <= 45.0 )
{
patient : {
id : Uuid,
name : String( s | s.size > 0 ),
dob : Date( d | alive: d.year > 1890 ),
},
symptoms : [ String( s | s.size > 0 ) ],
temperature : Temp
}評論
圖片
表情
