Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Rohan Sircar
    @rohan-sircar
    I'm hopeful to see scala3 support for slick myself :)
    Seth Tisue
    @SethTisue
    any assistance you can offer on the PR would be welcome
    Aleksey Izmailov
    @izmailoff
    @SethTisue I'll see if I can contribute in any meaningful way
    Seth Tisue
    @SethTisue
    @izmailoff :+1:
    Rohan Sircar
    @rohan-sircar
    take my energy ༼ つ ◕_◕ ༽つ
    Tim Nielens
    @tnielens
    Hello,
    I bumped into an issue with the combination of slick's distinctOn(_.id) and mysql bit(1) data type for a Boolean scala field.
    The distinct slick clause seems to produce a sql query where all queried fields are aggregated with min(...) like this example select min(field1), min(field2), min(myBit1Field) from ... group by id. Unfortunately, that aggregation doesn't play well with mysql's bit(1) which in my case ends up being truein my scala object when the record field in DB is 0x00 (false).
    Is this a known issue?
    Tim Nielens
    @tnielens
    I'm using slick 3.3.3
    nafg
    @nafg
    @SethTisue builds are failing after a long time due to Docker Hub rate limiting. See e.g. https://travis-ci.com/github/slick/slick/jobs/498593710
    nafg
    @nafg
    also it seems like travis only does one build at a time on the repo
    Seth Tisue
    @SethTisue
    @nafg hmm... I know nothing about Docker. can you open a ticket about it? then I'll try to find somebody at Lightbend who has experience with the Travis-CI+Docker combo. maybe there's a Lightbend account we can use. (plus also maybe somebody watching the repo will know something.)

    also it seems like travis only does one build at a time on the repo

    we can live with that, I think...? especially now that my recent branch protection change cut the number of builds per PR from 2 back down to 1

    nafg
    @nafg
    I don't think it did that, I think it just made PRs not be unmergeable
    I think that setting controls mergeability rules, not what builds get triggered when
    Seth Tisue
    @SethTisue
    2 before, 1 after is what I observed
    before I set up the branch protection rules at all, there was only 1, so it only restored the previous status quo
    nafg
    @nafg
    Ok I'm confused. Which builds became triggered or not triggered and why?
    Seth Tisue
    @SethTisue
    Travis-CI lets you build the head commit of the PR, or the result of merging that head commit with the head of the target branch, or both
    for a brief time we were doing both, but not anymore. now we're back to just building the head commit of the PR
    nafg
    @nafg
    but what caused it not to build the merged version?
    Seth Tisue
    @SethTisue
    I unchecked the "branch" checkboxes in the branch protection config, see https://github.com/slick/slick/pull/2210#issuecomment-819837259
    there wasn't really any reason I had checked them to begin with
    nafg
    @nafg
    I know
    Seth Tisue
    @SethTisue
    it surprises me as well that the branch protection rules control the behavior of Travis-CI
    nafg
    @nafg
    But that shouldn't affect which builds are run, only which statuses are required to merge
    When it was checked it wasn't running
    Seth Tisue
    @SethTisue
    ohhhhh
    nafg
    @nafg
    That's why I asked you to uncheck it, because then PRs would be impossible to merge
    Seth Tisue
    @SethTisue
    ah, I see. okay, that sounds right. sorry for my confusion
    nafg
    @nafg
    np
    mjabari
    @mjabari
    I have an id colum with O.AutoInc on it to ignore the value and use the default which is specified in database but unfortunately insertOrUpdate doesn't respect O.AutoInc and I get following error when the id is None
    PSQLException: ERROR: null value in column "id" violates not-null constraint
    nafg
    @nafg
    @mjabari how should insertOrUpdate work if there isn't a PK?
    mjabari
    @mjabari
    @nafg I think insertOrUpdate should insert a new row and as id is PK and specified as O.AutoInc slick should ignore it and let default (which is nextval('sequence')) do the job.
    That 's the behavior I got when I used insert (+=) of slick
    mjabari
    @mjabari
    I'm wondering why insert with insertOrUpdate is different than +=
    nafg
    @nafg
    @mjabari because the whole point of insertOrUpdate is to only insert if it doesn't already exist with a given pk
    rimeh bennjima
    @rimeh-bennjima
    hello @here, I have an existing schema with slick 2.1.0
    def name = column[Option[String]]("NAME", O NotNull)
    I want to upgrade to slick 3.3.2 .
    How can I write the existing column name, and we know that By default everything is not null in slick when column is declared like this column[A]. To make the column nullable you have to declare it as column[Option[A]]?
    nafg
    @nafg
    @rimeh-bennjima what does it mean? If it's NOT NULL then why is it an Option type?
    jeejeeone
    @jeejeeone
    Hello. I'm trying to do multiple writes in a transaction. I have an API for all db actions. Not even sure what to ask, I create some multiple writes with for-comprehension, it writes ok but I am not able to invoke .transactionally for the action. I think the problem is DBIO return type used by the API but I'm confused on how to fix. What should the API return to make transactional combinations of actions possible?
    nafg
    @nafg
    Can you show the code and the error
    Raymond Te Hok
    @rtehok
    hello, I have an issue and asked here, maybe can someone in this forum help me ? maybe I am doing something wrong (probably), or maybe I am misunderstanding the way I am supposed to use slick ?
    jeejeeone
    @jeejeeone
    @nafg There is no error, the problem is that .transactionally method is not available
    Rohan Sircar
    @rohan-sircar
    you need to import profile api
    import profile.api._
    assuming you know how to get it?
    jeejeeone
    @jeejeeone
    Ok thanks. Well no idea but I can work with this.
    Rohan Sircar
    @rohan-sircar
    val profile: JdbcProfile = slick.jdbc.PostgresProfile
    every database backend has it's own version of profile
    jeejeeone
    @jeejeeone
    Alright cool easy fix, it was available already
    Thanks! Though I have to say this was pretty frustrating :D Maybe I miss something in the docs