TiDB v6.1 Documentation
amount, @RequestParam Integer price) { try { playerService.buyGoods(sellID, buyID, amount, price); } catch (RuntimeException e) { return false; } return true; } } PlayerController uses annotations as resultObject = fn.apply(playerMapperEx); session.commit(); System.out.println("APP: COMMIT;"); } catch (Exception e) { if (e instanceof NotEnoughException) { System.out.printf("APP: ROLLBACK BY LOGIC; commit(); System.out.println("APP: COMMIT;"); } catch (JDBCException e) { System.out.println("APP: ROLLBACK BY JDBC ERROR;"); txn.rollback(); } catch (NotEnoughException e) { System.out.printf("APP:0 码力 | 4487 页 | 84.44 MB | 1 年前3TiDB v6.1 中文手册
@RequestParam Integer price) { try { playerService.buyGoods(sellID, buyID, amount, price); } catch (RuntimeException e) { return false; } return true; } } PlayerController 中使用了尽可能多的注解方式来作为示例 resultObject = fn.apply(playerMapperEx); session.commit(); System.out.println("APP: COMMIT;"); } catch (Exception e) { if (e instanceof NotEnoughException) { System.out.printf("APP: ROLLBACK BY LOGIC; commit(); System.out.println("APP: COMMIT;"); } catch (JDBCException e) { System.out.println("APP: ROLLBACK BY JDBC ERROR;"); txn.rollback(); } catch (NotEnoughException e) { System.out.printf("APP:0 码力 | 3572 页 | 84.36 MB | 1 年前3TiDB v6.5 Documentation
await sequelize.authenticate(); logger.info('Connection has been established successfully.'); } catch (error) { logger.error('Unable to connect to the database:'); logger.error(error); throw error; setInt(2, 230); pstmt.setInt(3, 2); pstmt.addBatch(); pstmt.executeBatch(); connection.commit(); } catch (SQLException e) { e.printStackTrace(); } Due to the default MySQL JDBC Driver settings, you need WHERE `id` = ?"); pstmt.setString(1, "Helen Haruki"); pstmt.setInt(2, 1); pstmt.executeUpdate(); } catch (SQLException e) { e.printStackTrace(); } 4.6.2.3 Use INSERT ON DUPLICATE KEY UPDATE If you need0 码力 | 5282 页 | 99.69 MB | 1 年前3TiDB v7.6 Documentation
await sequelize.authenticate(); logger.info('Connection has been established successfully.'); } catch (error) { logger.error('Unable to connect to the database:'); logger.error(error); throw error; 230); pstmt.setInt(3, 2); pstmt.addBatch(); pstmt.executeBatch(); 362 connection.commit(); } catch (SQLException e) { e.printStackTrace(); } Due to the default MySQL JDBC Driver settings, you need WHERE `id` = ?"); pstmt.setString(1, "Helen Haruki"); pstmt.setInt(2, 1); pstmt.executeUpdate(); } catch (SQLException e) { e.printStackTrace(); } 4.6.2.3 Use INSERT ON DUPLICATE KEY UPDATE If you need0 码力 | 6123 页 | 107.24 MB | 1 年前3TiDB v7.5 Documentation
await sequelize.authenticate(); logger.info('Connection has been established successfully.'); } catch (error) { logger.error('Unable to connect to the database:'); logger.error(error); throw error; setInt(2, 230); pstmt.setInt(3, 2); pstmt.addBatch(); pstmt.executeBatch(); connection.commit(); } catch (SQLException e) { e.printStackTrace(); } Due to the default MySQL JDBC Driver settings, you need WHERE `id` = ?"); pstmt.setString(1, "Helen Haruki"); pstmt.setInt(2, 1); pstmt.executeUpdate(); } catch (SQLException e) { e.printStackTrace(); } 4.6.2.3 Use INSERT ON DUPLICATE KEY UPDATE If you need0 码力 | 6020 页 | 106.82 MB | 1 年前3TiDB v7.1 Documentation
await sequelize.authenticate(); logger.info('Connection has been established successfully.'); } catch (error) { logger.error('Unable to connect to the database:'); logger.error(error); throw error; setInt(2, 230); pstmt.setInt(3, 2); pstmt.addBatch(); pstmt.executeBatch(); connection.commit(); } catch (SQLException e) { e.printStackTrace(); } Due to the default MySQL JDBC Driver settings, you need WHERE `id` = ?"); pstmt.setString(1, "Helen Haruki"); pstmt.setInt(2, 1); pstmt.executeUpdate(); } catch (SQLException e) { e.printStackTrace(); } 4.6.2.3 Use INSERT ON DUPLICATE KEY UPDATE If you need0 码力 | 5716 页 | 104.74 MB | 1 年前3TiDB v8.4 Documentation
await sequelize.authenticate(); logger.info('Connection has been established successfully.'); } catch (error) { logger.error('Unable to connect to the database:'); logger.error(error); throw error; setInt(2, 230); pstmt.setInt(3, 2); pstmt.addBatch(); pstmt.executeBatch(); connection.commit(); } catch (SQLException e) { e.printStackTrace(); } Due to the default MySQL JDBC Driver settings, you need WHERE `id` = ?"); pstmt.setString(1, "Helen Haruki"); pstmt.setInt(2, 1); pstmt.executeUpdate(); } catch (SQLException e) { e.printStackTrace(); } 4.6.2.3 Use INSERT ON DUPLICATE KEY UPDATE If you need0 码力 | 6705 页 | 110.86 MB | 9 月前32.1.4 PingCAP Go runtime related problems in TiDB production environment
introduction about GC ● What is STW(stop the world) exactly? ● What happen when collector can not catch up allocation rate? ● How the garbage recycle interrupt the user program? ○ STW takes too long ○ 25%0 码力 | 56 页 | 50.15 MB | 5 月前3TiDB v8.5 Documentation
await sequelize.authenticate(); logger.info('Connection has been established successfully.'); } catch (error) { logger.error('Unable to connect to the database:'); logger.error(error); throw error; setInt(2, 230); pstmt.setInt(3, 2); pstmt.addBatch(); pstmt.executeBatch(); connection.commit(); } catch (SQLException e) { e.printStackTrace(); } Due to the default MySQL JDBC Driver settings, you need WHERE `id` = ?"); pstmt.setString(1, "Helen Haruki"); pstmt.setInt(2, 1); pstmt.executeUpdate(); } catch (SQLException e) { e.printStackTrace(); } 4.6.2.3 Use INSERT ON DUPLICATE KEY UPDATE If you need0 码力 | 6730 页 | 111.36 MB | 9 月前3TiDB v8.1 Documentation
await sequelize.authenticate(); logger.info('Connection has been established successfully.'); } catch (error) { logger.error('Unable to connect to the database:'); logger.error(error); throw error; 230); pstmt.setInt(3, 2); pstmt.addBatch(); pstmt.executeBatch(); 348 connection.commit(); } catch (SQLException e) { e.printStackTrace(); } Due to the default MySQL JDBC Driver settings, you need WHERE `id` = ?"); pstmt.setString(1, "Helen Haruki"); pstmt.setInt(2, 1); pstmt.executeUpdate(); } catch (SQLException e) { e.printStackTrace(); } 4.6.2.3 Use INSERT ON DUPLICATE KEY UPDATE If you need0 码力 | 6321 页 | 107.46 MB | 1 年前3
共 30 条
- 1
- 2
- 3