Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

we need go client sdk #11313

Open
Linuxlovers opened this issue Apr 15, 2024 · 11 comments
Open

we need go client sdk #11313

Linuxlovers opened this issue Apr 15, 2024 · 11 comments

Comments

@Linuxlovers
Copy link

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

@ptupitsyn
Copy link
Contributor

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.

@Linuxlovers
Copy link
Author

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?

@ptupitsyn
Copy link
Contributor

@shishkovilja
Copy link
Contributor

shishkovilja commented Apr 18, 2024

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

@Linuxlovers
Copy link
Author

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

@ptupitsyn
Copy link
Contributor

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
Copy link
Contributor

@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.

@Linuxlovers
Copy link
Author

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

@lyonxh
Copy link

lyonxh commented May 14, 2024

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

@lyonxh
Copy link

lyonxh commented May 14, 2024

none rust sdk too

@lyonxh
Copy link

lyonxh commented May 14, 2024

may be i can use TiDB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants