エンティティモーデル

エンティティモデルの定義を管理します
今すぐダウンロード

エンティティモーデル ランキングとまとめ

広告

  • Rating:
  • ライセンス:
  • Perl Artistic License
  • 出版社名:
  • Tom Molesworth
  • 出版社のWebサイト:
  • http://search.cpan.org/team/

エンティティモーデル タグ


エンティティモーデル 説明

エンティティモデルの定義を管理します EntityModelは、Perlやその他の言語からバックエンドストレージにアクセスするためのデータストレージ抽象化システム(オブジェクトリレーショナルモデルの形式)を提供するPerlモジュールです。 ISTENTは、モデル定義を行い、データベーステーブル、キャッシュレイヤ、および対応するコード(Perl / C ++ / JS)を生成または更新して、entityModelを使用します。 #derine my $ model = entityModel-> new-> load_from(json => {entity:、primary => {field:、区切り文字:': '}]})。 #postgreSQLスキーマを適用する(オプション、モデルが変更された場合にのみ必要です)$ MODEL->適用( 'PostgreSQL' => {schema => 'datamodel'、host => 'localhost'、user => 'testuser'}) #perlクラスの作成$ model->適用( 'perl' => {namespace => 'entity'、baseclass => 'entityModel :: EntityBase'})。 My $ article :: artity-> create(title => 'テスト記事'、content => 'content') - > done(sub {my $ artical = shift; "IDが" "" " ID;}) - > fail(sub {die ''の作成に失敗しました。;});エンティティ::> find(title => 'テスト記事') - >最初(サブ{My $ Match = Shift; $ match-> title( '修正タイトル'); Die "インスタンスが常にあるはずです$ article-> title eq $ match-> title;});要件: ・Perl


エンティティモーデル 関連ソフトウェア