Methods for introspecting code in a multi-tenant environment

US11727017B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-11727017-B2
Application numberUS-202016940867-A
CountryUS
Kind codeB2
Filing dateJul 28, 2020
Priority dateJul 28, 2020
Publication dateAug 15, 2023
Grant dateAug 15, 2023

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

A method and system for code introspection in a multi-tenant architecture. The method includes receiving a query for code introspection from an entity, retrieving context for the entity that sent the query, retrieving raw code information based on the query, filtering the raw code information based on the context, and returning the filtered code information.

First claim

Opening claim text (preview).

What is claimed is: 1. A method for code introspection in a multi-tenant architecture, the method comprising: receiving from an entity a structured query language (SQL) query for a database that facilitates code introspection, wherein the database stores symbol table data, in an SQL queryable format, generated as part of compiling code for the multi-tenant architecture; retrieving context for the entity that sent the query; retrieving information, from the database based on the SQL query, regarding the symbol table data; filtering the information based on the context; and returning the filtered information. 2. The method of claim 1 , wherein the entity is a program executing a function that sends the query. 3. The method of claim 1 , wherein the entity is a user submitting the query via a command line interface. 4. The method of claim 1 , wherein the context defines permissions for a user, organization, and tenant of the multi-tenant architecture. 5. The method of claim 1 , wherein the filtering removes one or more portions of the information that the entity lacks permissions to access. 6. The method of claim 1 , wherein the information is a symbol table generated by the compiler of the multi-tenant architecture. 7. The method of claim 1 , wherein the information is an abstract syntax tree generated by the compiler of the multi-tenant architecture. 8. A non-transitory machine-readable storage medium that provides instructions that, if executed by a processor, will cause said processor to perform operations for code introspection in a multi-tenant architecture, the operations comprising: receiving from an entity a structured query language (SQL) query for a database that facilitates code introspection, wherein the database stores symbol table data, in an SQL queryable format, generated as part of compiling code for the multi-tenant architecture; retrieving context for the entity that sent the query; retrieving information, from the database based on the SQL query, regarding the symbol table data; filtering the information based on the context; and returning the filtered information. 9. The non-transitory machine-readable storage medium of claim 8 , wherein the entity is a program executing a function that sends the query. 10. The non-transitory machine-readable storage medium of claim 8 , wherein the entity is a user submitting the query via a command line interface. 11. The non-transitory machine-readable storage medium of claim 8 , wherein the context defines permissions for a user, organization, and tenant of the multi-tenant architecture. 12. The non-transitory machine-readable storage medium of claim 8 , wherein the filtering removes one or more portions of the information that the entity lacks permissions to access. 13. The non-transitory machine-readable storage medium of claim 8 , wherein the information is a symbol table generated by the compiler of the multi-tenant architecture. 14. The non-transitory machine-readable storage medium of claim 8 , wherein the information is an abstract syntax tree generated by the compiler of the multi-tenant architecture. 15. A computing device to execute a method for code introspection in a multi-tenant architecture, the computing device comprising: a non-transitory machine-readable storage structure to store a database that stores information that was generated by a compiler of the multi-tenant architecture and that relates to compilation processes performed by the compiler, and a code introspection service; and a processor coupled to the non-transitory machine-readable storage structure, the processor to execute the code introspection service, the code introspection service to: receive from an entity a structured query language (SQL) query for a database that facilitates code introspection, wherein the database stores symbol table data, in an SQL queryable format, generated as part of compiling code for the multi-tenant architecture; retrieve context for the entity that sent the query; retrieving information, from the database based on the SQL query, regarding the symbol table data; filter the information based on the context; and return the filtered information. 16. The computing device of claim 15 , wherein the entity is a program executing a function that sends the query. 17. The computing device of claim 15 , wherein the entity is a user submitting the query via a command line interface. 18. The computing device of claim 15 , wherein the context defines permissions for a user, organization, and tenant of the multi-tenant architecture. 19. The computing device of claim 15 , wherein the filtering removes one or more portions of the information that the entity lacks permissions to access. 20. The computing device of claim 15 , wherein the information is a symbol table generated by the compiler of the multi-tenant architecture. 21. The computing device of claim 15 , wherein the information is an abstract syntax tree generated by the compiler of the multi-tenant architecture.

Assignees

Inventors

Classifications

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US11727017B2 cover?
A method and system for code introspection in a multi-tenant architecture. The method includes receiving a query for code introspection from an entity, retrieving context for the entity that sent the query, retrieving raw code information based on the query, filtering the raw code information based on the context, and returning the filtered code information.
Who is the assignee on this patent?
Salesforce Inc
What technology area does this patent fall under?
Primary CPC classification G06F16/24575. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Aug 15 2023 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 12 related publications on this page (citations in our corpus or others sharing the same primary CPC).