Giter Site home page Giter Site logo

提供插件机制 about gaea HOT 3 OPEN

xiaomi avatar xiaomi commented on May 7, 2024
提供插件机制

from gaea.

Comments (3)

chengaomin avatar chengaomin commented on May 7, 2024 10

MySQL Proxy(官方多年前)通过lua脚本来控制连接转发,主要的函数都是配合MySQL Protocol各个过程的:

* connect_server()     // 接收到Client的连接请求时调用

* read_handshake()   // 读取server发起的handshake信息时调用

* read_auth()               // 读取Client的认证信息时调用

* read_auth_result() // 读取认证结果时调用

* read_query()            // 读取Client的query请求时调用
  • read_query_result() //读取query结果时调用

希望也提供类似功能

from gaea.

dwdcth avatar dwdcth commented on May 7, 2024 8

开放生命周期的HooK和获取租户数据,sql路由的接口
比如,BeforeUserConnect, BeforeSqlRoute,BeforeSqlExecute,AfterSqlRoute,AfterSqlExecute,AfterUserDisconnect.在hook里可以获取租户的用户名,和执行的sql。BeforeSqlExecute,AfterSqlExecute可否提供一个context,方便放一些变量

from gaea.

teckick avatar teckick commented on May 7, 2024

关于插件机制大家有哪些建议, 欢迎留言讨论.

from gaea.

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.