What is the difference between introspection and reflection?

The Wikipedia article has a pretty decent summary: In computing, type introspection is the ability of a program to examine the type or properties of an object at runtime. Some programming languages possess this capability. Introspection should not be confused with reflection, which goes a step further and is the ability for a program to … Read more

How does Rust implement reflection?

First of all, Rust doesn’t have reflection; reflection implies you can get details about a type at runtime, like the fields, methods, interfaces it implements, etc. You can not do this with Rust. The closest you can get is explicitly implementing (or deriving) a trait that provides this information. Each type gets a TypeId assigned … Read more

How can I get the list of a columns in a table for a SQLite database?

What you’re looking for is called the data dictionary. In sqlite a list of all tables can be found by querying sqlite_master table (or view?) sqlite> create table people (first_name varchar, last_name varchar, email_address varchar); sqlite> select * from sqlite_master; table|people|people|2|CREATE TABLE people (first_name varchar, last_name varchar, email_address varchar) To get column information you can … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)