• r

    Roy Nard

    2 years ago
    I am looking at the exposed SQL library.. How do I interact with a table that already exists in the database and was created long before Kotlin? I guess I must declare it but ensure that the properties or schema matches perfectly. Is there anyway to ensure that I match the properties of the in this case, MySQL table ?
    r
    s
    6 replies
    Copy to Clipboard
  • Animesh Sahu

    Animesh Sahu

    2 years ago
    Somebody have some idea of how to use sqlite3 with exposed using coroutines? I'm tired of the exception of SQLITE_BUSY 😦
    Animesh Sahu
    tapac
    2 replies
    Copy to Clipboard
  • Animesh Sahu

    Animesh Sahu

    2 years ago
    what is difference between
    suspendedTransactionAsync()
    and
    newSuspendedTransaction()
    i know one of them return Deferred and other the direct value. But i see that both of them suspend at the time of call, i.e. if suspendedTransactionAsync()suspends at the time of call then what is use of
    await()
    on the deferred? Like
    CoroutineScope.async()
    doesn't suspend at the time of call but rather when
    await()
    is called on that right, so what's difference b/w them(transactions)?
    Animesh Sahu
    tapac
    10 replies
    Copy to Clipboard
  • Animesh Sahu

    Animesh Sahu

    2 years ago
    So confused of this library due to slow support and no documentation/not even class definition in package 😞
    Animesh Sahu
    tapac
    2 replies
    Copy to Clipboard
  • Animesh Sahu

    Animesh Sahu

    2 years ago
    I want to get result row of what i am inserting after successful insert how could i do that?
    Animesh Sahu
    tapac
    2 replies
    Copy to Clipboard
  • m

    marstran

    2 years ago
    I saw the R2DBC APIs got to 0.8.0 GA today. Are there any plans to integrate that with Exposed?https://r2dbc.io/2019/12/02/r2dbc-0-8-0-goes-ga
    m
    1 replies
    Copy to Clipboard
  • Brian Carbone

    Brian Carbone

    2 years ago
    you can't use a fixed length char column?
    Brian Carbone
    tapac
    4 replies
    Copy to Clipboard
  • tapac

    tapac

    2 years ago
    Just for the information - we use Exposed at production services for more than a 5 years.
    tapac
    1 replies
    Copy to Clipboard
  • t

    Timur Atakishiev

    2 years ago
    Hi all, I got an expression like
    transaction {
        Restaurants.slice(Restaurants.followers.min(),Restaurants.id)
                .selectAll()
                .groupBy(Restaurants.id)
                .first()
    }
    and I have a simple mapper
    private fun toRestaurantUserName(row: ResultRow) = RestaurantUserNameDto(
            id = row[Restaurants.id],
            numberOfFollowers = row[Restaurants.followers.min()]!!
    )
    my question is when I want to fetch Restaurants.followers.min(), should I use
    row[Restaurants.followers.min()]!!
    these one with double !!, or is it better way to write the code?Thank you
    t
    tapac
    2 replies
    Copy to Clipboard
  • tapac

    tapac

    2 years ago
    Exposed 0.19.3 released with several bug fixes for 0.19.1:https://github.com/JetBrains/Exposed/blob/master/ChangeLog.md#0193
    tapac
    e
    2 replies
    Copy to Clipboard