ds_types.anubis 1.9 KB
/*
 * Created by PyramIDE.
 * User: フランスのトトロ aka (David RENÉ) 
 * Date: 07/02/2017
 * Time: 23:05
 * © Calexium 
 */

read densaku_lib/types/densaku.anubis

public define List(DS_Type)  calexium_lib_types_description =
  [
//  public type DB_id:
//    none,
//    db_id(Int value).
    ds_type("DB_id", [
      enum("none", comment("no database Primary Key ID")),
      alternative("db_id", [
        component( int, "value", comment("Integer value of the Primary Key ID"))
      ])
    ]),

// public type DB_datetime:
//   db_datetime(String datetime). //Date and time in ISO8601 format "YYYY-MM-DD hh:mm:ss"
    ds_type("DB_datetime", [
      alternative("db_datetime", [
        component(string, "datetime", comment("Date and time in ISO8601 format \"YYYY-MM-DD hh:mm:ss\""))
      ])
   ]),
   
// public type DB_date:
//   db_date(String date).        //Date in ISO8601 format "YYYY-MM-DD"
    ds_type("DB_date", [
      alternative("db_date", [
        component(string, "date", comment("Date and time in ISO8601 format \"YYYY-MM-DD\""))
      ])
   ]),
   
// public type DB_time:
//   db_time(String time).        //Time in ISO8601 format "hh:mm:ss"
    ds_type("DB_time", [
      alternative("db_time", [
        component(string, "time", comment("Date and time in ISO8601 format \"hh:mm:ss\""))
      ])
   ]),
  
// public type DB_integer:
//   db_integer(Int value).
// calexium_lib/database/db_types.anubis
    ds_type("DB_integer", [
      alternative("db_integer", [
        component(int, "value", comment("Integer from datatase"))
      ])
   ]),

//  public type MIME:
//   mime(String        type,
//        String        sybtype,
//        List(String)  file_extensions).
// library/web/mime.anubis
    ds_type("MIME", [
      alternative("mime", [
        component(string, "type"),
        component(string, "subtype"),
        component(list, string, "file_extensions")
      ])
    ]),
    
  ]
.