Skip to content
#

mariadb

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

prisma
petrduda
petrduda commented Nov 23, 2020

Describe the bug

When dropping all remaining routines/events/triggers, the resulting empty list is not replaced accordingly.

To Reproduce

Steps to reproduce the behavior:

  1. Select a database, create a few stored procedures (or events, or triggers, respectively), e.g.:
CREATE FUNCTION `test1`() RETURNS INT(1) NOT DETERMINISTIC NO SQL SQL SECURITY DEFINER RETURN 1; 
CREATE 
abonander
abonander commented Dec 2, 2020

Currently, the macros expect SQLX_OFFLINE to equal "true" (case insensitive) to force offline mode. This is fine, but environment variables that can switch something on or off typically also accept 0 as false and 1 as true.

This should be a relatively easy fix, the code is here: https://github.com/launchbadge/sqlx/blob/master/sqlx-macros/src/query/mod.rs#L40

I would also prefer to use

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.