git » sdk » commit 567d6b5

Hide on cpp for now

author Stephen Paul Weber
2026-11-09 21:35:13 UTC
committer Stephen Paul Weber
2026-11-09 21:35:13 UTC
parent 1879d687c053b45dcc9a2d2f847f6f8046d2d8d5

Hide on cpp for now

We can't represent this type there well

borogove/persistence/Sqlite.hx +5 -1

diff --git a/borogove/persistence/Sqlite.hx b/borogove/persistence/Sqlite.hx
index 96ee603..fd1474b 100644
--- a/borogove/persistence/Sqlite.hx
+++ b/borogove/persistence/Sqlite.hx
@@ -56,7 +56,11 @@ class Sqlite implements Persistence implements KeyValueStore {
 	final media: MediaStore;
 	final storeMessagesSerialized = new AsyncLock();
 
-	public static function prepare(q: { sql: String, ?params: Array<Dynamic> }): String {
+	#if js
+		public
+	#else
+		@:allow(borogove)
+	#end static function prepare(q: { sql: String, ?params: Array<Dynamic> }): String {
 		return ~/\?/gm.map(q.sql, f -> {
 			var p = (q.params ?? []).shift();
 			return switch (Type.typeof(p)) {