DB
ã©ã³ãã³ã°åå ä¸ããã°ã©ãã³ã° åªçã®ä¾ UUID 㨠GUID C# ã® GUID ã®çæ NanoID TODO åè ç¹ã« SQL ãªã©ã§ãå©ç¨ããã¦ãã¼ã¯ãªæ¡çªï¼åãã¼ã¿ã«çªå·ãå²ãå½ã¦ãããã»ã¹ï¼ã§ããããã ID ãå©ç¨ãããã¨ãããã¾ãã ä¸è¬çã«ã¯ï¼åç´ãª DB ã§ã¯ï¼priâ¦
対å¦ï¼ï¼ãã¼ã¿ãã¼ã¹ ãããã¤ãã¼ãå¤æ´ãã å¤æ´ç¹ï¼ï¼åæå EF 6 ã®åæå EFcore å¤æ´ç¹ï¼ï¼åæå®ãä¸å¯§ã«ãã å¤æ´ç¹ï¼ï¼ä½¿ç¨ããåå空éã«æ³¨æ åè Planetscale ãå©ç¨ãã¦ããã®ã§ãããããæ¥çªç¶ãä½ããã¦ããªãã®ã«åæ¥ã¾ã§åä½ãã¦ããèªä½â¦
åæå SELECT INSERT UPDATE ãµã³ãã« åè PlanetScale (MySQL äºæ) ã®åºæ¬ç㪠DML (select, insert, update) ã C# ã®ç°å¢ã§å®è¡ãã¦ã¿ããä»åã¯ãEntity Framework ãä»ãã¦ãã¼ã¿æä½ããã¦ã¿ãã ãªããEF ã使ããªãããæ¹ã¯ãã£ã¡ PlanetScale - â¦
SELECT INSERT UPDATE Transaction & Insert ãã¾ãï¼ æ¥ä»ãåå¾ãã ãã¾ãï¼ ãµã³ãã« åè PlanetScale (MySQL äºæ) ã®åºæ¬ç㪠DML (select, insert, update) ã C# ã®ç°å¢ã§å®è¡ãã¦ã¿ãã æ¥ç¶æååã®ãã©ã¡ã¼ã¿ã¼ã¯ãNuGet ãããDotNetEnvãã使â¦
Branches ã® development/production Navicat åè PlanetScale (MySQL äºæ) 㨠navicat ããã¹ãæ¥ç¶ããæ©ä¼ããã£ãã®ã§ããã®å 容ãã¡ã¢ã ç¹ã«çç±ããªããã° Arctype ãæ¨å¥¨ã¿ããã§ãã planetscale.com - connection-strings Planetscale 㯠MySQL â¦
ã¯ããã« PlanetScale ã¯ã¤ãã¯ã¹ã¿ã¼ãã¬ã¤ã Overview PlanetScale ã¢ããªã±ã¼ã·ã§ã³ ããã·ã¥ãã¼ãï¼ãã©ã¦ã¶ï¼ã«ããæä½ ã¢ã«ã¦ã³ããä½æãã ãã¼ã¿ãã¼ã¹ãä½æãã ãã¼ã¿ãã¼ã¹ã«ã¹ãã¼ãã追å ãã ãã¼ã¿ãæ¿å ¥ãã ãã¼ã¿ãã¼ã¹ã®ãã©ã³ããæ¬â¦
Heroku Postgres ãæå¹å navicat ã®è¨å® ãã¼ãã«ã®ãµã³ãã« åè Heroku Postgres 㨠navicat ããã¹ãæ¥ç¶ããæ©ä¼ããã£ãã®ã§ããã®å 容ãã¡ã¢ã Heroku Free Plan çãã RDBMS ã§ãç¡æã§ä½¿ããã¯ã©ã¦ããµã¼ãã¹ã§ããè¡æ°ã®å¶éãå³ããã®ã§ãã¹ãâ¦
SQLCipher ã®ãã¹ã¯ã¼ã SQLCipher ã«ãªã¹ã¹ã¡ã®ãã¹ã¯ã¼ãå½¢å¼ ããã·ã¥åããä»çµã¿ã®ä¾ salt ã®çæ ããã·ã¥åããããã®ã¯ã©ã¹ï¼ãµã³ãã«ï¼ ãã¹ã ãµã³ãã« åè ååã¾ã§ã®è¨äºã§ãSQLCipher ã使ã£ã¦æå·åãã SQLite ã®ä½¿ãæ¹ã«ã¤ãã¦èª¬æããã¾ãâ¦
SQLCipher ç°å¢æ§ç¯ WSL ã®ç°å¢æºå OpenSSL sqlite3.c ã®ã³ãã¼ ã³ã³ãã¤ã©ã¼ (NDK) ã®æºå ã³ã³ãã¤ã« æå·åã«å¯¾å¿ãã¦ããããã§ãã¯ããè¦ç¹ ãã¾ã ãããã° åè ååè¨äºã§ Unity ã§ã¯ã Windows ãã©ãããã©ã¼ã åãã® SQLCipher DLL ãã¡ã¤ã«ã®ä½â¦
ãã®è¨äºã¯ãSQLite ã«æå·åæ©è½ãå ãããSQLCipherããï¼ããªã¼ã§ï¼Unity (Windows) åã ã« DLL ãã³ã³ãã¤ã«ããæ¹æ³ãè¨é²ãããã®ã§ãã SQLiteUnityKit ç¨ã® SQLCipher ãç¨æããã«ã¯ ç°å¢è¨å® OpenSSL ã®ã¤ã³ã¹ãã¼ã« SQLCipher ã®ãªãã¸ããªã¼ãâ¦
Unity 㧠SQLite ã使ãä¾ã¨ãã¦ãSQLiteUnityKitããå©ç¨ããããã¸ã§ã¯ãã®ç°å¢æ§ç¯ã¾ã§ã¯ãåã®è¨äºã§èª¬æãã¾ããã SQLite ä»åã¯ãã®ç¶ãã§ãåºæ¬ç㪠SQL æãæ¸ãã¦ã¿ã¦ãã¡ããã¨å®è¡ã§ãããããã¹ããã¦ã¿ã¾ããã ã¹ã¯ãªããã®ä¾ ãã¹ã ãã¿ã³â¦
ãUnity Android ç°å¢ã«ããã SQLite ã®ä½¿ãæ¹ã¨åæåã®åºæ¬ãè¨äºã§ãæ¸ããããªãã£ãè£è¶³çå 容ã®è¨äºã§ãã è£è¶³ï¼ DLL ãã¡ã¤ã« 対å¿ãããæ°ã®ãã§ã㯠è£è¶³ï¼ so ãã¡ã¤ã« 対å¿ãããæ°ã®ãã§ã㯠aar ãã¡ã¤ã«ä¸èº«ããã§ã㯠ãããã° åè SQLiteâ¦
ãã®è¨äºã¯ãUnity 㧠SQLite ãå©ç¨ããããã« Standalone/Android 端æ«ã§ SQLite DB ãã¡ã¤ã«ãå©ç¨ã§ããç°å¢æ§ç¯ãã¾ã¨ãããã®ã§ãã éçºç°å¢ããã¹ãç°å¢ ç°å¢æºå SQLite ãã©ã°ã¤ã³ ãã¡ã¤ã«ã®èª¬æ ãã©ã°ã¤ã³ ãã¡ã¤ã«ã®ãã¦ã³ãã¼ã DB ãã©ã¦ã¶â¦