Java知识分享网 - 轻松学习从此开始!    

Java知识分享网

Java1234官方群25:java1234官方群17
Java1234官方群25:838462530
        
SpringBoot+SpringSecurity+Vue+ElementPlus权限系统实战课程 震撼发布        

最新Java全栈就业实战课程(免费)

springcloud分布式电商秒杀实战课程

IDEA永久激活

66套java实战课程无套路领取

锋哥开始收Java学员啦!

锋哥开始收Java学员啦!
当前位置: 主页 > Java文档 > Java基础相关 >

R2DBC_Paluch_Folien PDF 下载


分享到:
时间:2020-06-28 15:19来源:http://www.java1234.com 作者:小锋  侵权举报
R2DBC_Paluch_Folien PDF 下载
失效链接处理
R2DBC_Paluch_Folien PDF 下载

本站整理下载:
 
相关截图:
 
主要内容:


Driver SPI - Connection
Publisher<Void> beginTransaction() 
Publisher<Void> close() 
Publisher<Void> commitTransaction() 
 Batch createBatch() 
Publisher<Void> createSavepoint(String name) 
 Statement createStatement(String sql) 
Publisher<Void> releaseSavepoint(String name) 
Publisher<Void> rollbackTransaction() 
Publisher<Void> rollbackTransactionToSavepoint(String name) 
Publisher<Void> setTransactionIsolationLevel(IsolationLevel isolationLevel)
Driver SPI - Statement
 Statement add() 
 Statement bind(Object identifier, Object value) 
 Statement bind(int index, Object value) 
 Statement bind(int index, <primitive types> value) 
 Statement bindNull(Object identifier, Class<?> type) 
 Statement bindNull(int index, Class<?> type) 
 Statement returnGeneratedValues(String… columnNames) 
Publisher<Result> execute() 
Driver SPI - Result and Row
Publisher<Integer> getRowsUpdated() 
 Publisher<T> map(BiFunction<Row, RowMetadata, ? extends T> f) 
 T get(Object identifier, Class<T> type); 
Object get(Object identifier); 
Simple Select
Publisher<Object> values = connectionFactory.create() 
 .flatMapMany(conn -> 
 conn.createStatement("SELECT value FROM test") 
 .execute() 
 .flatMap(result -> 
 result.map((row, metadata) -> row.get("value"))))
Simple Select
Publisher<String> values = connectionFactory.create() 
 .flatMapMany(conn -> 
 conn.createStatement("SELECT value FROM test") 
 .execute() 
 .flatMap(result -> 
 result.map((row, metadata) -> row.get("value", 
 String.class))))
Simple Prepared Insert
Publisher<Result> results = connectionFactory.create() 
 .flatMapMany(conn -> 
 conn.createStatement("INSERT INTO test VALUES($1, $2)") 
 .bind("$1", 100).bind("$2", 200).add() 
 .bind("$1", 300).bind("$2", 400).execute())

 

------分隔线----------------------------

锋哥公众号


锋哥微信


关注公众号
【Java资料站】
回复 666
获取 
66套java
从菜鸡到大神
项目实战课程

锋哥推荐