Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3614824
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T22:17:51+00:00 2026-05-18T22:17:51+00:00

I was reading the SQueryL documentation on updating and I saw: update(songs)(s => where(s.title

  • 0

I was reading the SQueryL documentation on updating and I saw:

update(songs)(s =>
  where(s.title === "Watermelon Man")
  set(s.title := "The Watermelon Man",
      s.year  := s.year.~ + 1)
)

I had a hard time finding the ~ method from the SQueryL source code and the linked documentation obviously doesn’t tell me what it does either. Does anyone care to explain?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T22:17:52+00:00Added an answer on May 18, 2026 at 10:17 pm

    I recall reading about the tilde operator not too long ago on the Schema Definition Page.
    It is about disambiguating between a primitive and a custom type, although (as I am just beginning to learn Scala) it still sounds a bit vague to me ;). To quote a little piece

    …

    important : in PrimitiveTypes mode there can be ambiguities between numeric operators

    When using org.squeryl.PrimitiveTypeMode, the compiler will treat an expression like the
    one in the next example as a Boolean. The .~ function is needed to tell the compiler that the
    left side is a node of TypedExpressionNode[Int] which will cause the whole expression to be a
    LogicalBoolean which is what the where clause takes :

    …

    Hope that helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Reading about the Dispose pattern , I see the documentation repeatedly refer to cleaning
reading the documentation for java org.w3c.dom.ls it seems as a Element only can be
Reading the Redis documentation on Virtual Memory at: http://redis.io/topics/virtual-memory With regards to vm-max-threads they
Reading the documentation on the changes to UIViewControllers in iOS, I trying to figure
Reading the documentation for the spawn gem it states: By default, spawn will use
Reading msdn documentation for dictionaries it says : Public static (Shared in Visual Basic)
Reading through the CKEditor documentation , I see that they have an option to
Reading this question , I wondered how much time (asymptotically speaking) does it takes
Reading the Jon Skeet book, I have found (some time now) the use of
Reading about the GitHub wikis, I saw that they support several lightweight markup languages

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.