Skip to content
#

mariadb

Here are 1,718 public repositories matching this topic...

prisma
Ressy66
Ressy66 commented Dec 7, 2020

Describe the bug

in a database, clicking on SQL , there is no ability to right click copy/paste clipboard stuff

To Reproduce

Steps to reproduce the behavior:

  1. Go to '...' any database
  2. Click on '....' SQL
  3. try paste into or copy content from right click

Expected behavior

copy to and paste from

Server configuration

  • Operating system: linux slackware 14
abonander
abonander commented Nov 16, 2020

In my experience, far and away the primary reason to use DatabaseError::downcast_ref() is to check the constraint name. It would be nice not to have to downcast, though:

https://github.com/launchbadge/sqlx/blob/master/sqlx-core/src/error.rs#L146

 pub trait DatabaseError: ... {
    // existing methods omitted

    /// Returns the name of the constraint that triggered the error, if
boris-turk
boris-turk commented Oct 25, 2020

Hi,

is it possible to define enum mappings WITHOUT using attributes, maybe with some kind of fluent API? The only possibility I see right now is to use the MapValue attribute:

public enum Gender
{
	[MapValue("M")] Male,
	[MapValue("F")] Female,
	[MapValue("U")] Unknown,
	[MapValue("O")] Other,
}

But I don't like this approach (see my longer explanation below). Thank you in

Improve this page

Add a description, image, and links to the mariadb topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the mariadb topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.