Schemanã¨ãããRuby製ã®SQLãã¼ãµãã¤ãã£ãã ä¾ æç« ã§èª¬æããããè¦ãã»ããæ©ãã ããã¨ãããã¨ã§ãä¾ãç¨æããã require "scheman" require "yaml" parser = Scheman::Parsers::Mysql.new schema = parser.parse(<<SQL) CREATE TABLE `users` ( `id` INTEGER(11) NOT NULL PRIMARY KEY AUTO INCREMENT, `name` VARCHAR(255) NOT NULL ); SQL puts schema.to_hash.to_yaml æ§æ解æçµæã¯Hash, Array, Symbol, Stringã®çµåãã§è¡¨ç¾ããã (â»å¯èªæ§ã®ããã«YAMLå½¢å¼ã§è¡¨ç¤ºãã) --- - :create_table: :name:
{{#tags}}- {{label}}
{{/tags}}