Skip to content

Instantly share code, notes, and snippets.

View kelevro's full-sized avatar
🇺🇦

Anton Holovko kelevro

🇺🇦
View GitHub Profile

Isolation (database systems)

  • read uncommited
  • read commited
  • repeatable read
  • serializable

ACID

  • atomicity
  • consistency
  • isolation
  • durability
@kelevro
kelevro / books.md
Last active June 11, 2019 09:46
books table in relation database
book_name authors publisher publisher_zip publisher_city
Eloquent Ruby Olsen R., Fernandez O. Pearson 10001 New York
The Well-Grounded Rubyist David A. Black, Joseph Leo III Manning 11964 New York
# == Schema Information
#
# Table name: ingridients
#
# id :integer not null, primary key
# measurement :integer default(0), not null
# measurement_type :integer default(0), not null
# recipe_id :integer
# created_at :datetime not null
# updated_at :datetime not null
function readURL(input) {
if (input.files && input.files[0]) {
var reader = new FileReader();
reader.onload = function (e) {
$('#blah').attr('src', e.target.result);
}
reader.readAsDataURL(input.files[0]);