ignite icon indicating copy to clipboard operation
ignite copied to clipboard

we need go client sdk

Open Linuxlovers opened this issue 1 year ago • 11 comments

We need to use the go language to connect to the gnite database. Could you please support the development of the go client? Thank you

Linuxlovers avatar Apr 15 '24 06:04 Linuxlovers

There is a third-party Ignite client: https://github.com/amsokol/ignite-go-client

Even though it has not been updated for some time, it should still work with latest Ignite versions, because client protocol is backwards-compatible.

ptupitsyn avatar Apr 15 '24 13:04 ptupitsyn

I didn't see any support for transactions in this third-party package. Assuming the transaction statement is as follows BEGIN TRANSACTION;

UPDATE account SET balance=balance -100 WHERE id=1; Update account SET balance=balance+100 WHERE id=2;

COMMIT;

can i directly use c Is it executed using the QuerySQLFields method?

Linuxlovers avatar Apr 16 '24 10:04 Linuxlovers

https://ignite.apache.org/docs/2.15.0/sql-reference/transactions

ptupitsyn avatar Apr 16 '24 11:04 ptupitsyn

@ptupitsyn , @Linuxlovers , transactional SQL was removed since 2.16 (strictly speaking, TRANSACTIONAL_SNAPSHOT atomicity mode was removed).

shishkovilja avatar Apr 18 '24 14:04 shishkovilja

So, after removing the transaction, are there any other usage scenarios for this in memory database?

Linuxlovers avatar Apr 19 '24 08:04 Linuxlovers

are there any other usage scenarios for this in memory database?

  1. It is not only in-memory, you can enable persistence or use third-party storage
  2. All other use cases are available, such as SQL, caching, Compute
  3. There is also a RESTful API
  4. Finally, if something is missing in the Go SDK or RESTful API, you can always implement it as a Java compute task and call that from Go or any other language. Consider Java as our DSL.

ptupitsyn avatar Apr 19 '24 08:04 ptupitsyn

@Linuxlovers a new Go client was just released by a third party: https://gitverse.ru/sbertech/ignite-go-client

No transactions yet, but I hear that they are coming soon.

ptupitsyn avatar Apr 24 '24 08:04 ptupitsyn

I can't register for that platform. Can you please ask them to support SQL and transactions as soon as possible

Linuxlovers avatar May 07 '24 10:05 Linuxlovers

in this third-party client,i can't set key expire time

lyonxh avatar May 14 '24 09:05 lyonxh

none rust sdk too

lyonxh avatar May 14 '24 09:05 lyonxh

may be i can use TiDB

lyonxh avatar May 14 '24 09:05 lyonxh