I’m using: SWI-Prolog version 9.2.6
I want the code to: load a persistency db type-safely
But what I’m getting is: errors when \u2436 characters are met
My code looks like this:
attach_text_content_db('text_content_db.pl'),
with
:- module(text_content_db,
[ attach_text_content_db/1, % +File
get_text_content/3, % ?User, ?Role
assert_text_content/3 % +User, +Role
]).
:- use_module(library(persistency)).
:- persistent
text_content(keyword:string, sitefrom:atom, texts:list(string)).
attach_text_content_db(File) :-
db_attach(File, []).
%% current_rel(+Name, -Role) is semidet.
get_text_content(Key,SiteFrom,Texts) :-
with_mutex(tc_db, text_content(Key,SiteFrom,Texts)).