GithubHelp home page GithubHelp logo

Comments (6)

piwats avatar piwats commented on June 12, 2024

+1

from spectrum2.

moyamo avatar moyamo commented on June 12, 2024

Do you propose a generic access to the backend database (i.e. can execute any query) or just access to existing spectrum tables?

from spectrum2.

moyamo avatar moyamo commented on June 12, 2024

I don't think much changes are needed in spectrum for transwhat to work without a database. If after a user logs in, something similar to a handleBuddyChangedPayload (with all the Buddy fields filled in) is sent, transwhat should be able to get rid of the MySQL database.

from spectrum2.

moyamo avatar moyamo commented on June 12, 2024

I still want to know what you have in mind. Will the Backend API allow plugins to create and manipulate tables or will it just allow you to query existing tables?

The problem is that just querying and modifying existing tables is not very useful. Spectrum already allows this through buddyChanged, updateBuddy and the like. If you allow the plugin to execute arbitrary SQL queries then the plugin has to worry about compatibility between the different databases. In this case the plugin might as well use the databases directly. If spectrum provides a high-level interface to the database then the type of queries the plugin can make will be limited.

So what will it be?

from spectrum2.

jankaluza avatar jankaluza commented on June 12, 2024

I've done the first part in commit ef1711d.

The backend can send following new option in backend config:

[features]
send_buddies_on_login = 1

And after that, Spectrum will send TYPE_BUDDIES protobuf message after the TYPE_LOGIN message including all the buddies from database.

from spectrum2.

vitalyster avatar vitalyster commented on June 12, 2024

Transwhat support is done in 2.0

from spectrum2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.