orm - Using JOOQ in AWS Lambda -
have tried using jooq aws lambda? using same working config have previous project runs on tomcat , transitioned lambda. lambda not getting passed query part. if run standard prepared statement working ok not vpc/access or other infrastructure issue.
jooq code: final street street = dsl.using(configuration).select(street.fields()).from(street) .where(street.address.eq(message.address()) .fetchoneinto(street.class));
i initializing config:
@bean public defaultconfiguration configuration() { defaultconfiguration jooqconfiguration = new defaultconfiguration(); jooqconfiguration.set(connectionprovider()); jooqconfiguration.set(new defaultexecutelistenerprovider(exceptiontransformer())); string sqldialectname = environment.getrequiredproperty("jooq.sql.dialect"); sqldialect dialect = sqldialect.valueof(sqldialectname); jooqconfiguration.set(dialect); return jooqconfiguration; }
my bad, there issue query. jooq works great!
Comments
Post a Comment