PostgreSQLの自動採番をなおす
シーケンスオブジェクトの値の更新
SELECT MAX(id) FROM table;
SELECT nextval('table_id_seq');
SELECT setval('table_id_seq', (SELECT MAX(id) FROM table));
SELECT MAX(id) FROM table;
SELECT nextval('table_id_seq');
SELECT setval('table_id_seq', (SELECT MAX(id) FROM table));
インストール
brew install nodebrew
確認
nodebrew -v
バージョンが表示されればOK。
.zshrcなどに環境変数を追加 vi ~/.zshrc
export PATH=$HOME/.nodebrew/current/bin:$PATH
初期化
nodebrew setup
バージョン指定してnodeをインストールする インストール可能なバージョンを確認
nodebrew ls-remote
nodebrew install-binary <version>
例:
nodebrew install-binary v18.6.0
nodebrew ls
nodebrew use v18.6.0
nodebrew uninstall <version>
例:
…go install github.com/wailsapp/wails/v2/cmd/wails@latest
wails doctor
wails init -n [プロジェクトディレクトリ名] -t [テンプレート名または、url]
wails init -n tamatan -t svelte-ts
現在バグなのか、フロントエンドの初期化がうまく行かないので yarnまたは、npm installを実行する。 (yarnの方がうまく行くような気がする。)
cd tamatan/frontend
yarn
テンプレートは、 リリースのv2.0.0-beta.35に書いてあった
…・コードでの遷移 ・StoryBoardのsegueを使った遷移 ・NavigationControllerを使った遷移
[self presentViewController:移動先ViewController animated:YES completion:nil];
[self performSegueWithIdentifier:@"セグエのID" sender:self];
[self.navigationController pushViewController:移動先ViewController animated:YES];
[self.navigationController popToViewController:viewController animated:YES];
[self.navigationController popViewControllerAnimated:YES];
[self.navigationController popToRootViewControllerAnimated:YES];
※storyboardファイルで ‘identify → StoryBoard ID’の入力が必要
…
[self.navigationController popViewControllerAnimated:YES];
[self.navigationController popToRootViewControllerAnimated:YES];
[self.navigationController popToViewController:UIViewController animated:YES];