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

Java知识分享网

        
AI编程,程序员挑战年入30~100万高级指南 - 职业规划
SpringBoot+SpringSecurity+Vue权限系统高级实战课程        

IDEA永久激活

Java微信小程序电商实战课程(SpringBoot+VUe)

     

AI人工智能学习大礼包

     

PyCharm永久激活

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

     

Cursor+Claude AI编程 1天快速上手视频教程

     
当前位置: 主页 > 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())

 

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


锋哥推荐