beneroth changed the topic of #picolisp to: PicoLisp language | The scalpel of software development | Channel Log: https://libera.irclog.whitequark.org/picolisp | Check www.picolisp.com for more information
beneroth has quit [Quit: Leaving]
seninha has quit [Quit: Leaving]
rob_w has joined #picolisp
theruran has quit [Quit: Connection closed for inactivity]
msavoritias has joined #picolisp
chexum has quit [*.net *.split]
chexum has joined #picolisp
beneroth has joined #picolisp
seninha has joined #picolisp
rob_w has quit [Read error: Connection reset by peer]
msavoritias has quit [Remote host closed the connection]
abu[m] has quit [Quit: Bridge terminating on SIGTERM]
abu[m] has joined #picolisp
zaWanderer has joined #picolisp
<zaWanderer> greetings!
<abu[m]> Cheers zaWanderer!
<zaWanderer> I have a question regarding +E/R.
<zaWanderer> How to ensure uniqueness of two rel of one Entity?
<zaWanderer> ex. (class +Person +Entity) (rel firstName (+String)) (rel lastName (+String))
<zaWanderer> how to say that this combination is a Key to some relationship on +Person?
<abu[m]> There is no automatic way. You can check it either in a 'mis>' method or write a custom 'check>' method
<abu[m]> mis> is for the relatiin(s), check> for the entity class
<abu[m]> You can combine two keys with +Aux
<abu[m]> This creates a common index
<beneroth> keep in mind, that firstname + lastname doesn't need to be unique in the real world
<beneroth> multiple people in real world might have the exact same name.
<beneroth> maybe not in your database, depending on the context/use case
<zaWanderer> correct. This is just an example
<beneroth> T
<abu[m]> zaWanderer, do you need examples for +Aux ?
<abu[m]> There are some public
<zaWanderer> yes, please. The one in the (doc '+Aux) was not easy to grasp for me
<abu[m]> yeah
<abu[m]> wiki is the one at picolisp.com
<abu[m]> and osm is picolisp.com/osm
<abu[m]> or, an isolated example: http://pb1n.de/?58da27
<abu[m]> This means that (gp dat ansp) form a common index
<beneroth> common index = list of the property values is used as the indexing value
<beneroth> best to understand if you create a few examples and then go inspect {0} and the index tree
<beneroth> afk
<abu[m]> cu beneroth!
<zaWanderer> Thanks abu, I will give it a spin
<abu[m]> btw, the login to osm is user "osm" and password "osm"
<abu[m]> An article about that is https://picolisp.com/wiki/?osmgeodata
<abu[m]> Maybe the article is a bit outdated though
seninha has quit [Remote host closed the connection]
zaWanderer has quit [Remote host closed the connection]
zaWanderer has joined #picolisp
zaWanderer has quit [Ping timeout: 265 seconds]
zaWanderer has joined #picolisp
zaWanderer has quit [Ping timeout: 240 seconds]
zaWanderer has joined #picolisp
zaWanderer has quit [Ping timeout: 276 seconds]
zaWanderer has joined #picolisp
zaWanderer has quit [Read error: Connection reset by peer]
theruran has joined #picolisp
beneroth has quit [Remote host closed the connection]
beneroth has joined #picolisp
seninha has joined #picolisp
seninha has quit [Remote host closed the connection]
seninha has joined #picolisp
aw- has quit [Quit: Leaving.]
aw- has joined #picolisp