Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Java type resolver for tenant column type #251

Open
starnowski opened this issue Apr 28, 2022 · 0 comments
Open

Add Java type resolver for tenant column type #251

starnowski opened this issue Apr 28, 2022 · 0 comments

Comments

@starnowski
Copy link
Owner

Add component that should resolve Java type resolver for tenant column type based on regex pattern.

For example:
varchar(255) -> java.lang.String

Integration tests:

Given:

  • create funciton get_current_tenant(T arg)
  • create funciton set_current_tenant(T arg)
    J expectedTenant = // init

When:
Class = component.resolve(T)

Then:
PreparedStatement ps = // Prepared statement that invokes set_current_tenant(T arg) function
ps.setArgument(expectedTenant, 1); // Method should be choose based on Java type
J result = Connection.// get value of current tenant by invoking get_current_tenant(T arg)
Assert.assertEquals(expectedTenant, result);

@starnowski starnowski added this to the r-0.5.4 milestone Apr 28, 2022
@starnowski starnowski modified the milestones: r-0.5.4, r-0.6 Jul 30, 2022
@starnowski starnowski modified the milestones: r-0.6, r-0.7 Dec 20, 2022
@starnowski starnowski removed this from the r-0.7 milestone Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant