<turbo-stream action="append" target="posts_list"><template>    <div class="postbit" id="335324" data-post-id="335324">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="fuelen" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/fuelen/120/9870_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  fuelen
                      <span class="op-star" title="Thread Starter">
                        <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                      </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>The library design is based on <em><strong>guessing</strong></em> the suitable type by the shape of the parameter. This means there is a chance of an incorrect representation of the parameter. Here are a couple of examples:</p>
<ul>
<li><a href="https://github.com/fuelen/ecto_dev_logger/issues/21" class="inline-onebox" rel="noopener nofollow ugc">Invalid SQL generated for JSON fragment · Issue #21 · fuelen/ecto_dev_logger · GitHub</a></li>
<li><a href="https://github.com/fuelen/ecto_dev_logger/issues/9" class="inline-onebox" rel="noopener nofollow ugc">16 character string converted to UUID · Issue #9 · fuelen/ecto_dev_logger · GitHub</a> (It is possible to fix this by adding some special conditions for UUIDs, and I think I’ll do this eventually <img src="https://forum.elixirforum.com/images/emoji/apple/slightly_smiling_face.png?v=15" title=":slightly_smiling_face:" class="emoji" alt=":slightly_smiling_face:" loading="lazy" width="20" height="20">)</li>
</ul>
<p>To get rid of guessing, we need more low-level information about types, like <code>Postgrex.Extensions.UUID</code>, <code>Postgrex.Extensions.JSONB</code>, etc. But even Ecto doesn’t operate these types as the modules mentioned above are not public<br>
<a href="https://github.com/elixir-ecto/postgrex/blob/c0eb94e3d3538bd52a3a8334ad66d7c243583fea/lib/postgrex/extensions/uuid.ex#L2" class="onebox" target="_blank" rel="noopener nofollow ugc">https://github.com/elixir-ecto/postgrex/blob/c0eb94e3d3538bd52a3a8334ad66d7c243583fea/lib/postgrex/extensions/uuid.ex#L2</a><br>
Moreover, not all database adapters even have similar type representation.</p>
<p>Here is a related discussion <a href="https://groups.google.com/g/elixir-ecto/c/5AwUoaEuq4E/m/J9Kbr9FOBAAJ?pli=1" rel="noopener nofollow ugc">https://groups.google.com/g/elixir-ecto/c/5AwUoaEuq4E/m/J9Kbr9FOBAAJ?pli=1</a></p>
<p>In summary, to have this feature in Ecto, it probably should be implemented on the DB adapter level.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="335324" data-batch-url="/posts/batch_likers">
                        3
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/ecto-devlogger-an-alternative-logger-of-sql-queries-in-development/47075/22">Post #21</a>
	                </div>
	            </div>
              <div id="likers-container-335324" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="335324"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-most-liked cat-most-liked" title="One of the top 3 liked posts in this thread!"></div>
  </section>
</div>
    <div class="postbit" id="336197" data-post-id="336197">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="fuelen" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/fuelen/120/9870_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  fuelen
                      <span class="op-star" title="Thread Starter">
                        <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                      </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Thanks to <a class="mention" href="/u/dkuku" rel="nofollow">@dkuku</a>, we have a new release <code>v0.13.0</code> <img src="https://forum.elixirforum.com/images/emoji/apple/tada.png?v=15" title=":tada:" class="emoji" alt=":tada:" loading="lazy" width="20" height="20"></p>
<p>Finally, we have fixed UUID ambiguity when <code>America/New_York</code> was converted to <code>416d6572-6963-612f-4e65-775f596f726b</code> just because it looks like UUID.</p>
<p>Another nice feature is annotations for numeric enums, so now such values are represented like <code>2/*bar*/</code> instead of just <code>2</code></p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="336197" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/ecto-devlogger-an-alternative-logger-of-sql-queries-in-development/47075/23">Post #22</a>
	                </div>
	            </div>
              <div id="likers-container-336197" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="336197"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #22"></div>
  </section>
</div>
    <div class="postbit" id="373605" data-post-id="373605">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="fuelen" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/fuelen/120/9870_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  fuelen
                      <span class="op-star" title="Thread Starter">
                        <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                      </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>New release <code>v0.15.0</code> <img src="https://forum.elixirforum.com/images/emoji/apple/tada.png?v=15" title=":tada:" class="emoji" alt=":tada:" loading="lazy" width="20" height="20"></p>
<p>PostgreSQL range and multirange types are now supported and render clearly in logs. Geo/PostGIS types also receive proper formatting for more readable points and polygons.<br>
Another useful addition is the option to ignore a single log entry when needed. Dependency updates and documentation polish are included as well.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="373605" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/ecto-devlogger-an-alternative-logger-of-sql-queries-in-development/47075/24">Post #23</a>
	                </div>
	            </div>
              <div id="likers-container-373605" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="373605"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-last-post cat-last-post" title="Last post!"></div>
  </section>
</div>
</template></turbo-stream><turbo-stream action="replace" target="load-more-container"><template><div id="load-more-container" class="load-more-container">
    <span class="all-loaded">— All posts loaded —</span>
</div></template></turbo-stream>