<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
		<id>https://wiki.nonip.net/index.php?action=history&amp;feed=atom&amp;title=Unity%2Fsqlite%2FSQLiteUnityKit</id>
		<title>Unity/sqlite/SQLiteUnityKit - 変更履歴</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.nonip.net/index.php?action=history&amp;feed=atom&amp;title=Unity%2Fsqlite%2FSQLiteUnityKit"/>
		<link rel="alternate" type="text/html" href="https://wiki.nonip.net/index.php?title=Unity/sqlite/SQLiteUnityKit&amp;action=history"/>
		<updated>2026-04-19T03:51:43Z</updated>
		<subtitle>このウィキのこのページに関する変更履歴</subtitle>
		<generator>MediaWiki 1.24.2</generator>

	<entry>
		<id>https://wiki.nonip.net/index.php?title=Unity/sqlite/SQLiteUnityKit&amp;diff=10497&amp;oldid=prev</id>
		<title>2020年4月15日 (水) 06:49にAdminによる</title>
		<link rel="alternate" type="text/html" href="https://wiki.nonip.net/index.php?title=Unity/sqlite/SQLiteUnityKit&amp;diff=10497&amp;oldid=prev"/>
				<updated>2020-04-15T06:49:33Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;←前の版&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;2020年4月15日 (水) 06:49時点における版&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;行1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;行1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;sqlliteライブラリ本体DL&lt;/del&gt;==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;sqliteライブラリ本体DL&lt;/ins&gt;==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; git clone https://github.com/Busta117/SQLiteUnityKit.git&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; git clone https://github.com/Busta117/SQLiteUnityKit.git&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;行14:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;行14:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;参考：https://taiyoproject.com/post-482&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;参考：https://taiyoproject.com/post-482&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;プロジェクト内にsqlliteライブラリ設置&lt;/del&gt;==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;プロジェクト内にsqliteライブラリ設置&lt;/ins&gt;==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Sqliteを入れたいUnityプロジェクトのAssetsの下で実行&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Sqliteを入れたいUnityプロジェクトのAssetsの下で実行&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.nonip.net/index.php?title=Unity/sqlite/SQLiteUnityKit&amp;diff=7710&amp;oldid=prev</id>
		<title>Admin: ページの作成:「 ==sqlliteライブラリ本体DL==  git clone https://github.com/Busta117/SQLiteUnityKit.git  ==SQLiteUnityKitの問題点と対応策==  *マルチバイト文字列を...」</title>
		<link rel="alternate" type="text/html" href="https://wiki.nonip.net/index.php?title=Unity/sqlite/SQLiteUnityKit&amp;diff=7710&amp;oldid=prev"/>
				<updated>2019-02-27T17:45:25Z</updated>
		
		<summary type="html">&lt;p&gt;ページの作成:「 ==sqlliteライブラリ本体DL==  git clone https://github.com/Busta117/SQLiteUnityKit.git  ==SQLiteUnityKitの問題点と対応策==  *マルチバイト文字列を...」&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
==sqlliteライブラリ本体DL==&lt;br /&gt;
 git clone https://github.com/Busta117/SQLiteUnityKit.git&lt;br /&gt;
&lt;br /&gt;
==SQLiteUnityKitの問題点と対応策==&lt;br /&gt;
&lt;br /&gt;
*マルチバイト文字列を扱えない&lt;br /&gt;
*アプリの更新時に端末内のDBが初期化される&lt;br /&gt;
*トランザクション管理ができない&lt;br /&gt;
*SQLにバインド処理を行えない&lt;br /&gt;
&lt;br /&gt;
参考：https://fantastic-works.com/archives/406&lt;br /&gt;
&lt;br /&gt;
参考：https://taiyoproject.com/post-482&lt;br /&gt;
&lt;br /&gt;
==プロジェクト内にsqlliteライブラリ設置==&lt;br /&gt;
Sqliteを入れたいUnityプロジェクトのAssetsの下で実行&lt;br /&gt;
&lt;br /&gt;
SqlProjectをプロジェクトの例として行く。&lt;br /&gt;
&lt;br /&gt;
 mkdir -p SqlProject/Assets/Plugin/Android/&lt;br /&gt;
 mkdir -p SqlProject/Assets/Script/&lt;br /&gt;
 mv SQLiteUnityKit/libsqlite3.so SqlProject/Assets/Plugin/Android/&lt;br /&gt;
 mv SQLiteUnityKit/SqliteDatabase.cs SqlProject/Assets/Script/&lt;br /&gt;
 mv SQLiteUnityKit/README.md SqlProject/Assets/SqlREADME.md&lt;br /&gt;
 mv SQLiteUnityKit/DataTable.cs SqlProject/Assets/Script/&lt;br /&gt;
&lt;br /&gt;
==DBようディレクトリをプロジェクト内に設置==&lt;br /&gt;
 mkdir SqlProject/Assets/StreamingAssets&lt;br /&gt;
&lt;br /&gt;
この名前にしておくとエンコードなどされなくなる。&lt;br /&gt;
&lt;br /&gt;
==dbファイル作成==&lt;br /&gt;
 cd SqlProject/Assets/StreamingAssets&lt;br /&gt;
 sqlite3 config.db&lt;br /&gt;
 create table users(id integer, name text, age integer);&lt;br /&gt;
 .exit&lt;br /&gt;
&lt;br /&gt;
==dbへアクセス==&lt;br /&gt;
User.cs&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
using UnityEngine;&lt;br /&gt;
using System.Collections;&lt;br /&gt;
public class User {&lt;br /&gt;
    // Use this for initialization&lt;br /&gt;
    public void Insert() {&lt;br /&gt;
        // Insert&lt;br /&gt;
        SqliteDatabase sqlDB = new SqliteDatabase(&amp;quot;config.db&amp;quot;);&lt;br /&gt;
        string query = &amp;quot;insert into users values(1, 'taro', 25)&amp;quot;;&lt;br /&gt;
        sqlDB.ExecuteNonQuery(query);&lt;br /&gt;
    }&lt;br /&gt;
    public void FindAll() {&lt;br /&gt;
        SqliteDatabase sqlDB = new SqliteDatabase(&amp;quot;sample.db&amp;quot;);&lt;br /&gt;
        // Select&lt;br /&gt;
        string selectQuery = &amp;quot;select * from users&amp;quot;;&lt;br /&gt;
        DataTable dataTable = sqlDB.ExecuteQuery(selectQuery);&lt;br /&gt;
        foreach(DataRow dr in dataTable.Rows){&lt;br /&gt;
            Debug.Log(&amp;quot;id:&amp;quot; + dr[&amp;quot;id&amp;quot;].ToString());&lt;br /&gt;
            Debug.Log(&amp;quot;name:&amp;quot; + (string)dr[&amp;quot;name&amp;quot;]);&lt;br /&gt;
            Debug.Log(&amp;quot;age:&amp;quot; + dr[&amp;quot;age&amp;quot;].ToString());&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Main.cs&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
User user = new User();&lt;br /&gt;
user.Insert();&lt;br /&gt;
user.FindAll();&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==参考==&lt;br /&gt;
UnityでSQLiteを扱う方法&lt;br /&gt;
https://qiita.com/hiroyuki7/items/5335e391c9ed397aee50&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>